Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Map to Gazebo World

This is a naive python script which takes in a nav_msgs/OccupancyGrid style map described by a YAML file and converts it to a gazebo world. This is not the most efficient or fastest way to do so, but it is simple to run.

Usage

You can run the python file in the src directory using:

python map_to_world.py <PATH_TO_YAML_FILE> <DESIRED_NAME_OF_WORLD>.sdf

This will save the gazebo world as DESIRED_NAME_OF_WORLD.sdf which you can then use in a gazebo simulator.

Requirements

This was developed using python version 3.11.1 and tested in Gazebo 11. I do not know if this sdf structure is compatible with other versions of Gazebo.

You will need pyyaml, numpy, opencv-python, and argparse to run this script.

About

This is a script that takes in a 2d map and outputs a file that describes a 3d gazebo world

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages