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

What's the difference between "laser" and "scan" of tf

asked 2017-02-16 21:47:14 -0500

Bill5785 gravatar image
 <node pkg="tf" type="static_transform_publisher" name="base_link_to_laser" 
        args="0.0 0.0 0.0 0.0 0.0 0.0 /base_link /laser 50">
 </node>

When I write the above. I'm not clear about the names of tf frames, especially for the "laser". Is this argument always like this even if my sensor topic is "/scan" ? Does it mean the frame name is given by a name space and it has no relation to topic names?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2017-02-17 02:38:43 -0500

Humpelstilzchen gravatar image

Short: Yes, there is no direct relation.

Long: There are two things to distinguish here:

  1. The name of the laserscan topic, which e.g. for amcl and gmapping defaults to "scan".

  2. The tf-frame in which your laser publishes. This is the value of the field "frame_id" in the header of your "scan"-topic. Usually this is what you named your sensor in your urdf-file and has to reflect the position of the laserscanner on your robot. E.g. your laserscanner can have an offset of 1m to your base_link. With a tf transform this offset is automatically added to all scan data.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2017-02-16 21:47:14 -0500

Seen: 701 times

Last updated: Feb 17 '17