ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Skeletal tracker?

asked 2012-01-31 23:18:47 -0500

Kamal gravatar image

I was trying to use the skeletal tracker under openni_kinect and i noticed that it publishes translation and rotation values. But the rotation is represented by w,x,y,z; what do these represent? Also in case of translation, which variable represents depth, which one for height and which one for left-right?

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
2

answered 2012-02-01 07:29:26 -0500

michikarg gravatar image

The rotation is represented as a quaternion which has values in a non-readable format. You can use tf to convert between quaternions and euler angles ( e.g. tf::Quaternion createQuaternionFromRPY(double roll,double pitch,double yaw) ).

What do you mean by height and left-right? What joint are you referring to?

edit flag offensive delete link more

Comments

If camera is the origin, then what are the three axes directed along (for any joint) ?
Kamal gravatar image Kamal  ( 2012-02-02 05:42:33 -0500 )edit
You can get the three axes by converting to euler angles using tf ... The euler angles represen the rotations around x,y and z axis.
michikarg gravatar image michikarg  ( 2012-02-02 05:45:33 -0500 )edit
In Python you can e.g. use: euler_angles = euler_from_quaternion([x,y,z,w]) ... the angles are in rad. Check: http://www.ros.org/doc/api/tf/html/namespacetf_1_1transformations.html for the API
michikarg gravatar image michikarg  ( 2012-02-02 05:47:08 -0500 )edit
This helped... Thanks a lot !!
Kamal gravatar image Kamal  ( 2012-02-02 06:08:28 -0500 )edit
1

answered 2012-01-31 23:36:04 -0500

You can find the answers to your questions in REP103 - Standard Units of Measure and Coordinate Conventions.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2012-01-31 23:18:47 -0500

Seen: 695 times

Last updated: Feb 01 '12