We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I have been having an issue with the quaternions being output by the um7 driver.
Specifically when I have the tf_ned_to_enu flag set to true, the quaternions appear to rotate about the wrong axes when I visualize in rviz.
I believe this is due to the conversion happening around line 220 of main.cpp:
`
imu_msg.orientation.w = r.quat.get_scaled(2); imu_msg.orientation.x = r.quat.get_scaled(1); imu_msg.orientation.y = -r.quat.get_scaled(3); imu_msg.orientation.z = r.quat.get_scaled(0);
Correct me if I am wrong but I believe the correct transformation to get enu coordinates with the IMU facing x forward would be:
imu_msg.orientation.w = r.quat.get_scaled(0); //w_old imu_msg.orientation.x = r.quat.get_scaled(1); //x_old imu_msg.orientation.y = -r.quat.get_scaled(2); //-y_old imu_msg.orientation.z = -r.quat.get_scaled(3); //-z_old
Atleast when I use this transformation the axes in rviz appear to rotate in the correct direction about the correct axes.
Not sure if I am missing something else here but perhaps this was a math error?
Thanks
The text was updated successfully, but these errors were encountered:
I implemented rdockterjr's proposed solution and it's giving me the right orientation for REP105.
Sorry, something went wrong.
It's still there.
Thanks for the fix rdockterjr.
tf ned to enu · Issue #13 · ros-drivers/um7
zastrix
No branches or pull requests
I have been having an issue with the quaternions being output by the um7 driver.
Specifically when I have the tf_ned_to_enu flag set to true, the quaternions appear to rotate about the wrong axes when I visualize in rviz.
I believe this is due to the conversion happening around line 220 of main.cpp:
`
`
Correct me if I am wrong but I believe the correct transformation to get enu coordinates with the IMU facing x forward would be:
`
`
Atleast when I use this transformation the axes in rviz appear to rotate in the correct direction about the correct axes.
Not sure if I am missing something else here but perhaps this was a math error?
Thanks
The text was updated successfully, but these errors were encountered: