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

sendTransform and StampedTransform

asked 2018-07-13 13:16:34 -0500

RyanPoint gravatar image

updated 2018-07-13 16:27:51 -0500

I saw on one wiki says -- "sendTransform and StampedTransform have opposite ordering of parent and child". Does that mean if in StampedTransform, parent is a, child is b, then the transform get broadcast with parent as b, child as a and we can only do transform from b->a in listener? wiki link: http://wiki.ros.org/tf/Tutorials/Writ... The sentence is in section 1.2's bottom

edit retag flag offensive close merge delete

Comments

Can you please update your question with links to the wiki pages that you're referring to?

jayess gravatar image jayess  ( 2018-07-13 15:15:11 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2018-07-14 04:59:18 -0500

The phrase you mention in the wiki is only referring to the parameter orders for the respective functions. The parent is still the parent and the child is still the child.

On a side note, all valid transforms can be inverted. So if you know the transform from a->b you can always work out the transform from b->a as well.

edit flag offensive delete link more

Comments

May you explain in Setting up your robot using tf, which defined a transform base_link->base_laser with translation (0.1, 0.0, 0.2), why does transform laser point (1.0, 0.2, 0.0) to base_link result in (1.10, 0.20, 0.20) not (0.9,0.2,-0.2)?

RyanPoint gravatar image RyanPoint  ( 2018-07-14 10:00:33 -0500 )edit

If we just look at the X values. base_link->base_laser with translation (0.1) means that the base_laser frame is origin is at 0.1m in the base_link frame. So a point at 1m in the base_laser frame will be at 1.1m in the base_link frame. Hope this makes sense.

PeteBlackerThe3rd gravatar image PeteBlackerThe3rd  ( 2018-07-14 11:01:59 -0500 )edit

Question Tools

2 followers

Stats

Asked: 2018-07-13 13:16:34 -0500

Seen: 391 times

Last updated: Jul 14 '18