Create pgm map from Gazebo world file for ROS localization
Tested on Ubuntu 20.04, ROS Noetic, Boost 1.71.0
Tested on Ubuntu 18.04, ROS Melodic, Boost 1.65.1
Tested on Ubuntu 16.04, ROS Kinetic, Boost 1.58.0
Note: Install protobuf-compiler and source setup.bash in the ROS folder before running catkin_make if they haven't been done.
- Create a catkin workspace
- Clone the package to the src folder
catkin_makeand sourcedevel/setup.bash
- Add your world file to world folder
- Add this line at the end of the world file, before
</world>tag:<plugin filename="libcollision_map_creator.so" name="collision_map_creator"/>
- Open a terminal, run gzerver with the map file
gzserver src/pgm_map_creator/world/<map file> - Open another terminal, launch the request_publisher node
roslaunch pgm_map_creator request_publisher.launch - Wait for the plugin to generate map. It will be located in the map folder
Currently, please update the argument value in launch/request_publisher.launch file.