Skip to content

Create pgm map from Gazebo world file for ROS localization

License

Notifications You must be signed in to change notification settings

eliabntt/pgm_map_creator

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pgm_map_creator

Create pgm map from Gazebo world file for ROS localization

Environment

Tested on Ubuntu 18.04, ROS Melodic, Boost 1.65

Usage

Add the package to your workspace

  1. Create a catkin workspace
  2. Clone the package to the src folder
  3. catkin build pgm_map_creator and source devel/setup.bash

Add the map and insert the plugin

  1. Add this line at the end of the world file, before </world> tag: <plugin filename="libcollision_map_creator.so" name="collision_map_creator"/>

Create the pgm map file

1a. Open a terminal, run gzerver with the map file gzserver src/pgm_map_creator/world/<map file> 1b. Launch the world file normally 2. Open another terminal, launch the request_publisher node roslaunch pgm_map_creator request_publisher.launch 3. Wait for the plugin to generate map. It will be located in the map folder

Map Properties

Currently, please update the argument value in launch/request_publisher.launch file.

Edits

You can edit the map in an external software like GIMP.

Todo

  • generation of the YAML file
  • options through command line

About

Create pgm map from Gazebo world file for ROS localization

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 52.1%
  • CMake 47.9%