Skip to content
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

90 degree turn #12875

Closed
rhitam01 opened this issue Apr 21, 2024 · 3 comments
Closed

90 degree turn #12875

rhitam01 opened this issue Apr 21, 2024 · 3 comments
Labels

Comments

@rhitam01
Copy link

So i am buidling a rover and i have an intel realsense imu dept camera, which is mounted infront of it, now i want to change the direction of the rover turning left or right which is 90 degree turn, how do i calcukate the perticular turn?

@MartyG-RealSense
Copy link
Collaborator

Hi @rhitam01 Horizontal left-right turn of the IMU is called yaw. The gyro yaw is represented in the RealSense coordinate system by 'y'.

image

#4391 (comment) has a Python script for retrieving gyro x, y and z values.

The RealSense SDK's rs-motion example provides C++ code for accessing the gyro value.

https://github.com/IntelRealSense/librealsense/blob/master/examples/motion/rs-motion.cpp#L137-L140

It sounds from your question that you would like to know how to make the rover turn left or right though. The IMU will be turned by the rover (rather than the rover being turned by the IMU), since the IMU is mounted to the rover and so will be moved in whatever direction the rover turns in. So the rover turn must come first before the IMU values are changed by the turn - the IMU cannot make the rover turn.

@MartyG-RealSense
Copy link
Collaborator

Hi @rhitam01 Do you require further assistance with this case, please? Thanks!

@MartyG-RealSense
Copy link
Collaborator

Case closed due to no further comments received.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants