Ask Your Question
0

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

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

Bill Gates gravatar image

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

I finished base_link → odom tf like this

    map
     |
   odom
     |
 base_link

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.

( http://wiki.ros.org/gmapping )

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:

                                 map
                                  |
                                odom
                                  |
                              base_link
                                  |
                  ---------camera_rgb_frame-------
                  |               |              | 
    camera_depth_frame     camera_link   camera_rgb_optical_frame
                  |
    camera_depth_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?

Sincerely

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
0

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

Procópio gravatar image

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

edit flag offensive delete link more

Comments

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 imageBill Gates ( 2015-12-22 06:30:51 -0600 )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 imageProcópio ( 2015-12-22 06:36:48 -0600 )edit

Thank you, let me give it a try.

Bill Gates gravatar imageBill Gates ( 2015-12-22 06:39:08 -0600 )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 imagesar1994 ( 2015-12-23 12:21:44 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

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

Seen: 286 times

Last updated: Dec 23 '15