GithubHelp home page GithubHelp logo

st_gazebo_perfect_map_generator's Introduction

Gazebo perfect map generator

This package can generate perfect maps of a world, which in term can be loaded to /map using the map_server package

Credits

This package was based on the code presented here:

https://bitbucket.org/brawner/collision_map_creator_plugin

Which is described here:

http://gazebosim.org/wiki/Tutorials/1.9/custom_messages

Usage

Make sure that you at this line at the end of your .world file (before </world>):

<plugin filename="libcollision_map_creator.so" name="collision_map_creator"/>

Start world

Then start the gazebo world:

roslaunch st_gazebo_perfect_map_generator start_world.launch world_name:=<full path to map>

For example:

roslaunch st_gazebo_perfect_map_generator start_world.launch world_name:=$(rospack find st_gazebo)/worlds/willowgarage.world

Generate theperfect map files

Example:

roslaunch st_gazebo_perfect_map_generator generate_map.launch map_name:=willowgarage_perfect save_folder:=$(rospack find st_gazebo_perfect_map_generator)/maps xmin:=-25 xmax:=45 ymin:=-30 ymax:=45 scan_height:=10 resolution:=0.05

Tip: xmin is left and ymin is bottom in the resulting image, so use that to finetune the border values.

Load generated map

Example:

rosrun map_server map_server $(rospack find st_gazebo_perfect_map_generator)/maps/willowgarage_perfect.yaml

Use the map with an non-default robot pose

Example: you spawn your robot at 6,-16 for willowgarage.world, you should update willowgarage_perfect.yaml manually:

Change this original line:

origin: [-25.000000, -30.000000, 0.000000]

To:

origin: [-31, -14, 0.000000]

st_gazebo_perfect_map_generator's People

Contributors

flyinskybtx avatar

Stargazers

 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.