Giter Site home page Giter Site logo

Rotation issue about rsvfx HOT 8 OPEN

keijiro avatar keijiro commented on August 23, 2024
Rotation issue

from rsvfx.

Comments (8)

keijiro avatar keijiro commented on August 23, 2024

Could you attach a screenshot or video that explains what's happening on your side? I'm not sure if the "camera" means the RealSense camera (physical device) or a Unity Camera component.

from rsvfx.

amir989 avatar amir989 commented on August 23, 2024

physical devise. sorry i should have been more clear!

Here is a video. if you look at the blue object, you will see it will completely moves to the left in the world when i physically rotate the sensor. I hope this help!

from rsvfx.

keijiro avatar keijiro commented on August 23, 2024

Thanks for the video. Which device are you using? I only tested it with a D415 + T265 combo.

from rsvfx.

amir989 avatar amir989 commented on August 23, 2024

Im using D435i + T265.

I just figured out that Intel's sample also has same problem. I move my mouse to the corner of the blue mattress the second time im rotating the camera. and you can see the mattress moving in space when i rotate the camera. I still think the problem is in camera image rotation. if you look at the right corner, you will see that the image is rotating when im rotating the camera. like the blue mattress turning to left. this should NOT happen. if you look at any other platforms, like Tango, ARCore or ARKit. no matter how you rotate the camera, the camera image should'nt rotate. so the mattress should still look up!

Let me know what you think!

from rsvfx.

keijiro avatar keijiro commented on August 23, 2024

this should NOT happen

This should happen because D4xx is just a depth camera. If you rotate the camera, the image should ratote.

My Capture.unity transforms camera-space point cloud into the world space using the positional data given from T265. I adjusted it with D415 to reduce the error as much as possible, but it still drifts when rotating the camera. I guess that it become worse when using other cameras like D435i.

from rsvfx.

amir989 avatar amir989 commented on August 23, 2024

I'm not an expert in this. could you please explain what do you mean by adjusting the tracking with the D camera? is it more than translating the points to the Unity world?

I was looking at Tango API for transferring points to Unity world. I couldn't understand what is the m_unityWorldTStartService * startServiceTDevice part. I thought sharing this with you. Maybe it can help!!

Also, thanks again for your time and your amazing demos.

from rsvfx.

keijiro avatar keijiro commented on August 23, 2024

I'm not an expert in this. could you please explain what do you mean by adjusting the tracking with the D camera? is it more than translating the points to the Unity world?

It's just translating the points, but it's important how you do it. I determined the variables based on Intel's datasheet and a 3D-printed custom bracket (see below).

https://www.tinkercad.com/things/6ZrIcJwBqyC-realsense-t265-and-d415-mount-ver-2

I think you have to re-adjust these variables if you're using different devices.

I was looking at Tango API for transferring points to Unity world. I couldn't understand what is the m_unityWorldTStartService * startServiceTDevice part. I thought sharing this with you. Maybe it can help!!

Sorry, that's not relevant to the topic.

from rsvfx.

amir989 avatar amir989 commented on August 23, 2024

Alright, ill see if i can find a way to fix this. it would be helpful if you can share a video from your demo with your sensor while you are rotating your camera in z axis. I'm just interested to see how much offset your sensor has!

from rsvfx.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.