Giter VIP home page Giter VIP logo

g-mapping's Introduction

G-mapping-Readme

Introduction

G-mapping is a ROS-compatible mapping tool designed for robotic applications. The following steps outline the setup process for utilizing G-mapping with an RPLidar sensor.

Prerequisites

Before starting, ensure you have the necessary permissions for the RPLidar sensor's port. Run the following command to grant permission:

bash

sudo chmod 666 /dev/ttyUSB0

Replace /dev/ttyUSB0 with the correct port based on your system.

Launching RPLidar

Navigate to your ROS workspace directory. In the provided example:

bash

cd ~/richard/src/rplidar_ros/launch/

Launch the RPLidar node using the appropriate launch file. In this case, we use rplidar.launch:

bash

roslaunch rplidar.launch

Ensure the RPLidar initializes successfully and note the assigned serial port.

Initializing fake odom

Run the fake_odom_pub.py script to publish the fake odometry node from lidar: <--only use when your using lidar as for odometry data-->

bash

rosrun fake_odom_pub.py

To provide a static transform using the rosrun tf command:

bash

rosrun tf static_transform_publisher 0 0 0 0 0 0 odom base_link 80

Launching G-mapping

Open a new terminal and navigate to the ROS workspace directory:

bash

cd ~/richard/src/G_MAPPING

Finally, launch G-mapping using the appropriate launch file, for instance:

bash

roslaunch gmapping_map.launch

Launching Map Saver

To save the map run the following command:

bash

rosrun map_server map_saver -f map

Ensure the sequence is followed meticulously for accurate mapping results. Refer to the ROS documentation or community forums for troubleshooting or additional information.

Additional Notes

Make sure to replace /dev/ttyUSB0 with the correct port assigned to your RPLidar. Adjust file paths based on your ROS workspace structure. Consult RPLidar and G-mapping documentation for further customization and troubleshooting.

g-mapping's People

Contributors

albertrichard080 avatar

Watchers

 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.