- Please draw the following plot using Eigen::Quaterniond(w x y z) and tf::Quaternion(x y z w) in rviz.
- Be aware of the directions of arrows. Pointing from A to B implies the transformation from A to B.
- In the first figure, vector AB is rotated by 90 degree about the z axis and vector BC is rotated by 60 degree about the z axis, and generate the output vector AC.
- In the second figure, vectors BA and CA are the inputs to generate output vector BC.
roscore
rosrun HW7 tf_cf1 or tf_cf2 .... tf_cf4
rosrun rviz
- Please check the code in the src for reference.
- Eigen::Quaterniond(w x y z) and tf::Quaternion(x y z w)
- Install c++ 11(https://reurl.cc/E7ZN0g)
- Install Eigne3 sudo apt-get install libeigen3-dev