Question: write a ROS Node that converts Quaternion representations to Euler angle representations. Create a new ROS package called quat _ to _ euler . Implement
write a ROS Node that converts Quaternion representations to Euler angle representations.
Create a new ROS package called quattoeuler
Implement a subscriber that takes Quaternions as inputs. Use the Quaternionmsg message type.
Tip: Your subscriber callback function will have the following argument: const geometrymsgs::Quaternion::ConstPtr& msg if you are using C
Implement the conversion formulas from the wiki page above.
Do not forget to check the CMakeLists configurations necessary to build your code.
Launch your Node.
Publish your Node using the terminal.
Your Node should print the resulting Euler angles to the terminal.
TIP: you can use the command below:
rostopic pub YOURTOPICNAME geometrymsgsQuaternion PRESS TAB TWICE TO AUTOCOMPLETE THE ARGUMENTS dont forget to leave an empty space after Quaternion before pressing tab
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
