-
Notifications
You must be signed in to change notification settings - Fork 103
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
Receive Euler angle instead of quaternion angle from Vicon bridge package #15
Comments
Why would you do that? Why can't you directly convert a quaternion to euler angles directly in your application, for example by using Eigen? |
Hi friend, |
I still don't see why you want to implement the conversion between quaternion and euler angles directly in this repo. You can use the same timestamp and convert the quaternion to euler angles in the callback function of your drone, when you receive ad odometry message from vicon for example ... or am I missing something else? |
Hi Marco, |
Like Marco, I don't really understand why you cannot convert to Euler angles after the vicon_bridge. However, you need to modify the process_frames function in vicon_bridge.cpp. The msvcbridge has a function getSegmentEulerXYZ that you could use instead of getSegmentQuaternion. Hope it helps. |
Hi kdhansen, |
Well, just go ahead and advertise another topic with the Euler angles. E.g. use Eigen as Marco pointed out. Here is an example: http://stackoverflow.com/questions/31589901/euler-to-quaternion-quaternion-to-euler-using-eigen Best of luck |
@zer1988 I think the error Nevertheless, since converting a quaternion to euler angles is so easy with Eigen, I'd still do it after the vicon_bridge. |
Hi every body,
I would like to know that what i have to edit inside vicon bridge packet so that I receive the Euler angles ( roll, pitch and yaw) instead of quaternion angles ( x, y,z, w).
Thanks
The text was updated successfully, but these errors were encountered: