ROS Answers: Open Source Q&A Forum - RSS feedhttps://answers.ros.org/questions/Open source question and answer forum written in Python and DjangoenROS Answers is licensed under Creative Commons Attribution 3.0Thu, 15 Nov 2012 09:14:49 -0600Can I plot Euler angles in rxbag?https://answers.ros.org/question/48417/can-i-plot-euler-angles-in-rxbag/I would like to use rxbag to plot the yaw angle I obtain from a localization algorithm, however the orientation in geometry_msgs::PoseStamped (and most other messages) is given in quaternions. Is it possible to somehow convert that to directly to Euler angles to plot them in the GUI?Thu, 15 Nov 2012 05:31:21 -0600https://answers.ros.org/question/48417/can-i-plot-euler-angles-in-rxbag/Answer by Thomas D for <p>I would like to use rxbag to plot the yaw angle I obtain from a localization algorithm, however the orientation in geometry_msgs::PoseStamped (and most other messages) is given in quaternions. Is it possible to somehow convert that to directly to Euler angles to plot them in the GUI?</p>
https://answers.ros.org/question/48417/can-i-plot-euler-angles-in-rxbag/?answer=48426#post-id-48426You can use the script listed at [this answer](http://answers.ros.org/question/11545/plotprint-rpy-from-quaternion/#17106) to subscribe to quaternions that are published from your bag file, convert them to Euler angles, and then republish as RPY in NWU coordinates. You can then plot your Euler angles with rxplot. Use the same node multiple times while remapping topics and you can visualize Euler angles from multiple sources simultaneously.Thu, 15 Nov 2012 08:46:40 -0600https://answers.ros.org/question/48417/can-i-plot-euler-angles-in-rxbag/?answer=48426#post-id-48426Comment by georgebrindeiro for <p>You can use the script listed at <a href="http://answers.ros.org/question/11545/plotprint-rpy-from-quaternion/#17106">this answer</a> to subscribe to quaternions that are published from your bag file, convert them to Euler angles, and then republish as RPY in NWU coordinates. You can then plot your Euler angles with rxplot. Use the same node multiple times while remapping topics and you can visualize Euler angles from multiple sources simultaneously.</p>
https://answers.ros.org/question/48417/can-i-plot-euler-angles-in-rxbag/?comment=48428#post-id-48428many thanks!Thu, 15 Nov 2012 09:14:49 -0600https://answers.ros.org/question/48417/can-i-plot-euler-angles-in-rxbag/?comment=48428#post-id-48428