Loading 2D raw data
Hello, I've obtained a 2D map from another development environment, how could I load/display/manipulate (in gazebo/rviz) this set of 2D points. Thank you.
ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
Hello, I've obtained a 2D map from another development environment, how could I load/display/manipulate (in gazebo/rviz) this set of 2D points. Thank you.
I think the simplest way is to write your map to a .pgm file. I guess a simple program can do it. It has to map the occupied points to black pixels (value=0), the free points to white pixels (254) and unknown points to gray pixels (205).
Then you can use the map_server package to publish it to rviz with the command: rosrun map_server map_server mymap.pgm
If you set the fixed frame as "/map" in rviz, you should see your map.
Hope this helps,
Guido
Asked: 2011-03-31 01:03:45 -0500
Seen: 2,836 times
Last updated: Mar 31 '11
Nav2d_karto mapper doesn't build a map [closed]
robot_localization Map, Odom, and drift.
the relationship between slam and (static)map
How to create map with gmapping
Any tutorials for ros large map frameworks?
How to visualize an existed map in rviz2?