tf::Quaternion::getAngleShortestPath() or getAngle()?

asked 2019-07-25 22:38:22 -0600

jxl gravatar image

updated 2019-07-25 22:41:56 -0600

Hi, when get axis-angle from tf::quaternion, which API should we use? what are difference between them? For example:

tf::Quaternion q; 
tf::Vector3 axis = q.getAxis();
double angle_shortest = q.getAngleShortestPath();
double angle = q. getAngle();
tf::Vector3 t;
tf::Vector3 t_rotated = t.rotate(axis, angle)  or
tf::Vector3 t_rotated = t.rotate(axis, angle_shortest) ?
edit retag flag offensive close merge delete