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

tf rotation before translation?

asked 2013-12-19 16:11:48 -0500

jys gravatar image

updated 2014-10-07 12:22:04 -0500

paulbovbel gravatar image

I cannot find any documentation on convention used by tf.

$ rosrun tf tf_echo /map /odom
At time 1263248513.809
- Translation: [2.398, 6.783, 0.000]
- Rotation: in Quaternion [0.000, 0.000, -0.707, 0.707]
in RPY [0.000, -0.000, -1.570]
  1. For translation value and rotation quaternion value, is translation happening in original frame and then rotation happens? Or, does it rotate first and then the translation happens? What is the convention used by tf system?

  2. Which RPY convention is RPY using?

Thanks.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2013-12-19 17:18:26 -0500

tfoote gravatar image

updated 2014-10-07 12:17:51 -0500

ROS coordinate frame conventions are defined here: http://wiki.ros.org/geometry/Coordina...

And the API methods are also documented such as here: http://docs.ros.org/hydro/api/tf/html...

1) It will translate first.

2) RPY is Fixed Axis XYZ

edit flag offensive delete link more

Comments

Could you please tell how to rotate before translating in one frame broadcast?

hc gravatar image hc  ( 2016-08-19 07:30:20 -0500 )edit
1

Create separate rotation and translation transforms and compose them, then broadcast the composed tf. E.g. in c++: my_tf = my_translation * my_rotation;

Ed Venator gravatar image Ed Venator  ( 2017-11-01 19:12:25 -0500 )edit
1

Any way to do this in Python?

GXY gravatar image GXY  ( 2019-12-07 11:55:51 -0500 )edit

Question Tools

2 followers

Stats

Asked: 2013-12-19 16:11:48 -0500

Seen: 3,442 times

Last updated: Oct 07 '14