Ask Your Question

octomap_server, velodyne_driver, and rviz

asked 2017-02-03 20:46:23 -0500

prosello gravatar image

We are attempting to use rviz to visualize an Octomap from octomap_server created from a Velodyne sensor stream. We subscribed octomap_server to the velodyne_driver PointCloud2 stream by remapping the "velodyne_points" topic to "cloud_in" in the launch file of velodyne_points (in velodyne_pointcloud/launch/cloud_nodelet.launch). However, no octomap is being created. We can visualize the "cloud_in" topic in rviz as the correct velodyne pointcloud, but the occupied_cells_vis MarkerArray topic published by octomap does not display anything in rviz. We also tried remapping the topics in the octomap launch file.

In rviz we can see a warning saying "Fixed Frame: No tf data. Actual error: Fixed Frame [velodyne] does not exist". We do invoke rviz with "-f velodyne". We are not sure if this could be causing the problem.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2017-02-05 09:36:51 -0500

Hi There, it sounds like the frame that the octomap is being broadcast in doesn't have a published transformation into the velodyne frame.

You can use the command :

rosrun tf view_frames

to create a pdf file that will show you all the coordinate frames and the transformation that are being published between them.

You can find the frameId of the 'occupied_cells_vis' topic using this comman :

rostopic echo occupied_cells_vis

This will probably spit a huge amount of data onto the console, but if you cancel it and scroll up through sooner or later you will find a header section that will include the frameId. When you've found this frameId you can then set the 'Fixed Frame' option under 'Global Options' in Rviz to this frameId then you should be able to visualise this topic.

Alternatively you can change the frame that octomap is publishing it's maps in or create a static transform publisher to link the velodyne and octomap frames together.

Hope this helps.

edit flag offensive delete link more



rosrun tf view_frames

produces a pdf file that says "No tf data received", and

rostopic echo occupied_cells_vis

doesn't spit anything to the console :(

prosello gravatar image prosello  ( 2017-02-06 19:55:35 -0500 )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



Asked: 2017-02-03 20:46:23 -0500

Seen: 556 times

Last updated: Feb 05 '17