Git Product home page Git Product logo

pgm_map_creator's Introduction

pgm_map_creator

Create pgm map from Gazebo world file for ROS localization

Environment

Tested on Ubuntu 16.04, ROS Kinetic, Boost 1.58, Protocol Buffers v2.6.1

Install Protocol Buffers v2.6.1

  • Download the zip file
  • Remove the previous protocol buffer version
  • $ cd /usr/local/include/google
  • $ sudo rm -rf protobuf
  • Download the zip file of Protocol Buffers v2.6.1
  • Follow the installations given here:
    1. $ ./autogen.sh

    2. $ ./configure

    3. $ make

    4. $ make check

    5. $ sudo make install

    6. $ sudo ldconfig

Usage

Add the package to your workspace

  1. Create a catkin workspace / Open the catkin workspace
  2. Clone the package to the src folder
  3. Comment the following lines in CMakeLists.txt in the msgs folder of pgm_map_creator and save it.(Edit it using gedit)
    #${PROTOBUF_IMPORT_DIRS}/vector2d.proto
    #${PROTOBUF_IMPORT_DIRS}/header.proto
    #${PROTOBUF_IMPORT_DIRS}/time.proto
  1. catkin_make and source devel/setup.bash

Add the map and insert the plugin

  1. Add your world file to world folder in the pgm_map_creator folder
  2. 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

  1. Run gazebo /home/jit/catkin_ws/src/pgm_map_creator/world/<map file> with full path to the map and check if it opens correctly. If yes, the close it and follow the next steps.
  2. Run source devel/setup.bash in the following terminals before running the next commands to setup the environment variables
  3. Open a terminal, run gzerver with the map file (Enter the entire path to the map file) gzserver /home/jit/catkin_ws/src/pgm_map_creator/world/<map file>
  4. Open another terminal, launch the request_publisher node roslaunch pgm_map_creator request_publisher.launch
  5. Wait for the plugin to generate map. Track the progress in the gzserver terminal. It will be located in the map folder

Map Properties

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

Acknowledgements

Gazebo Custom Messages Gazebo Perfect Map Generator

pgm_map_creator's People

Contributors

abhiojha8 avatar dwijaybane avatar huuanhhuynguyen avatar hyfan1116 avatar jatinmayekar avatar sudkul avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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.