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

Visualization / Transforms with rosbridge and erratic [closed]

asked 2012-08-16 03:51:56 -0600

updated 2012-08-16 04:55:59 -0600

joq gravatar image

I'm trying to create a website that displays the current progress of a robot (in this case erratic) running SLAM. With rosbridge I've been able to set up the subscriptions that I need, I think and I can draw all of the data in a similar way that rviz does.

The trouble is that each topic I've subscribed to has a lot of fields and I'm not sure how to get the transforms from each frame to line up when visualizing the slam map, the senses obstacles and the robot.

The topics of interest are:


Obviously it makes sense that the topics under /move_base_node/local_costmap are in the same frame, but obviously /map is not.

Do I need to use tf to accomplish this? I couldn't find a tutorial for this kind of thing.

Any help or direction is greatly appreciated.

edit retag flag offensive reopen merge delete

Closed for the following reason duplicate question by skiesel
close date 2013-10-11 04:42:29


This was my solution in the end

skiesel gravatar image skiesel  ( 2012-08-22 09:08:18 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2012-08-16 05:00:22 -0600

joq gravatar image

Yes, you need tf.

In the Header of each topic there is a frame_id, naming the frame of reference for each message. This command should show the origins of each frame (assuming they are being published correctly somewhere).

$ rosrun tf tf_monitor

Rviz should be able to display your data in some appropriate frame of reference (probably /map).

edit flag offensive delete link more

Question Tools


Asked: 2012-08-16 03:51:56 -0600

Seen: 651 times

Last updated: Aug 16 '12