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

How can I build a tf which is required by gampping?

asked 2015-12-22 05:58:46 -0500

Bill Gates gravatar image

updated 2015-12-22 06:40:45 -0500

I finished base_link → odom tf like this


But in another required tf transform, it reads

(the frame attached to incoming scans) → base_link usually a fixed value, broadcast periodically by a robot_state_publisher, or a tf static_transform_publisher.

( )

I can not understand how to build tf: scan→ base_link , and depthimagine_to_laserscan(I use kinect) do not provide any tf Transform.

And tf transforms in Turtlebot like this:

                  |               |              | 
    camera_depth_frame     camera_link   camera_rgb_optical_frame

So, how can I combine scan data to base_link and broadcast this tf like turtlebot?

Some keywords like "camera_depth_frame", "camera_link"... Broadcasting them direct without any define or export?

And my kinect is fixed on the underpan, does it need a URDF file, or just use static_transform_publisher is fine?


edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted

answered 2015-12-22 06:18:29 -0500

Procópio gravatar image

you can simply use a static_transform_publisher to build scan→ base_link tf.

edit flag offensive delete link more


But some keywords like "camera_depth_frame", "camera_link"... Broadcasting them direct without any define or export? I set "false" as a default for "publish_tf" in ".../freenect_launch.launch". Thanks.

Bill Gates gravatar image Bill Gates  ( 2015-12-22 06:30:51 -0500 )edit

I am not sure I understand your question, but you can also use a static_transform_publisher to create a tf between your base_link and the kinect (following the example you posted, that would be "base_link -> camera_rgb_frame".

Procópio gravatar image Procópio  ( 2015-12-22 06:36:48 -0500 )edit

Thank you, let me give it a try.

Bill Gates gravatar image Bill Gates  ( 2015-12-22 06:39:08 -0500 )edit

i too am currently working on the same. I used the following command to provide a static transformation between the two $ rosrun tf static_transform_publisher -0.27 0.0 0.6 0.0 0.0 0.0 base_link camera_link 100

sar1994 gravatar image sar1994  ( 2015-12-23 12:21:44 -0500 )edit

Question Tools


Asked: 2015-12-22 05:58:46 -0500

Seen: 421 times

Last updated: Dec 23 '15