-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Motion Estimation #3053
Motion Estimation #3053
Conversation
Hi there! A thought...I do not understand the need for the multiplication with 0.5 in process_gyro(). I do not need to do this in my sample. Maybe you have something strange in the time stamps? Or are you missing frames/using wrong frames? I have not compiled your code and tested it however. Seems strange that you need it however. In my test I used another method for getting the accel angles (cos instead of atan2). I have thought of testing that before, nice to see that you did that for me. :) Another thing, would it be possible for you to add the mesh file to git, i.e. "d435.obj" that you used to generate the d435.h? That would be nice for us to use in other projects/samples as well. |
Sure, I'll upload the obj files tomorrow. They are based our official CAD models from realsense.intel.com, but I did some post-processing in Blender to get the vertex count down to something embeddable, so I hope you will find it useful. |
Thanks! I had totally missed that you have released STEP-files of the cameras...I will check them out as well! |
Hi @GruffyPuffy, while testing the code and adjusting the angles I noticed that multiplying by 0.5 gives the accurate movement of the physical camera. I haven't researched it enough to say why exactly it is needed but I can take a closer look when I get the chance. |
Hi @AnnaRomanov, I did not see this in my test code so I would suspect something is wrong in your sample (I might have missed it however...so do not count on it!). If there are trouble in the library (and/or firmware) I think that we should issue a ticket for it here. These values really should return the expected angle velocity (rad/s) and it is important that it works to be able to use it in a real application. |
Hi @GruffyPuffy, after checking it once again with the camera I see that you are correct and there is no need for the multiplying. It was there due to a previous bug and I forgot to remove it, my apologies. I updated the code to the correct version now. Thank you for pointing this out! |
Let's rebase on top of 2.18 and use |
Example of calculating camera's rotation angle using IMU data, and visualizing the result using a camera 3D model.
![](https://raw.githubusercontent.com/wiki/IntelRealSense/librealsense/res/imu.gif)
Based on work by @GruffyPuffy.