Creating a 2D map in rviz with a Gazebo Robot in .sdf

asked 2018-10-31 10:37:25 -0500

TrickyDoe gravatar image

Hi guys, thanks so much for the help!!!

I have built a robot (equipped with a hokuyo laser) and some obstacles in ROS Gazebo. I am trying to get it to avoid these obstacles using rviz, but I'm not getting any readings in rviz. All tutorials I have seen use the .urdf format, and I'm using Melodic on Ubuntu 18.04 which creates .sdf files instead.

How can I get a 2D map of the laser readings in rviz?

edit retag flag offensive close merge delete

Comments

and I'm using Melodic on Ubuntu 18.04 which creates .sdf files instead.

I don't believe that is true.

.sdf is the Simulation Description Format, which is a format used by Gazebo. .urdf is the Unified Robot Description Format, used by a lot of ROS nodes.

Melodic still uses URDF.

gvdhoorn gravatar image gvdhoorn  ( 2018-10-31 15:35:58 -0500 )edit