Ask Your Question

How to get rotaion matrix or quaternion?

asked 2014-11-23 11:19:11 -0500

karen0603 gravatar image

Hello all, I am doing some arm planning about my robot. I have a point B(x2,y2,z2) in space where I want the end-effector A(x1,y1,z1) to go.

In my opinion, I had better get the quaternion of point B first, then get the IK using point B and quaternion, after that I can use arm_navigation_msgs::GetMotionPlan to do a plan.

but I am unsure how to produce the quaternions.

or any other good method to plan end-effector from A to B?

Thanks in advance.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2014-11-23 12:42:40 -0500

Bhargav gravatar image

updated 2014-11-23 13:44:27 -0500

tfoote gravatar image

May be this link will be helpful. You will have to use createquaternion function in tf namespace.

edit flag offensive delete link more


Thank you very much, I will try.

karen0603 gravatar image karen0603  ( 2014-11-23 13:03:21 -0500 )edit

I saw function:
static tf::Quaternion tf::createQuaternionFromRPY ( double roll, double pitch, double yaw
) [inline, static] I need first get roll, pitch, yaw, do you think there is a function in ROS which I can get roll, pitch ,yaw? Thank you

karen0603 gravatar image karen0603  ( 2014-11-23 13:10:31 -0500 )edit

Thanks for your answer. This link text is helpful. I have to get roll,pitch,yaw at the point B first, and then use the function what you have suggested to get quaternion.

karen0603 gravatar image karen0603  ( 2014-11-23 20:51:49 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2014-11-23 11:19:11 -0500

Seen: 182 times

Last updated: Nov 23 '14