Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/toshikinakamura0412/raycast_mapping_ros

ROS implementation of Ray Casting Update Algorithm for 2D Mapping
https://github.com/toshikinakamura0412/raycast_mapping_ros

cpp local-map local-mapping mapping raycast raycasting robotics ros ros-noetic

Last synced: about 2 months ago
JSON representation

ROS implementation of Ray Casting Update Algorithm for 2D Mapping

Awesome Lists containing this project

README

        

# raycast_mapping_ros

![Build Status](https://github.com/ToshikiNakamura0412/raycast_mapping_ros/workflows/build/badge.svg)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)

ROS implementation of Ray Casting Update Algorithm for 2D Mapping



## Environment
- Ubuntu 20.04
- ROS Noetic

## Install and Build
```
# clone repository
cd /path/to/your/catkin_ws/src
git clone https://github.com/ToshikiNakamura0412/raycast_mapping_ros.git

# build
cd /path/to/your/catkin_ws
rosdep install -riy --from-paths src --rosdistro noetic # Install dependencies
catkin build raycast_mapping_ros -DCMAKE_BUILD_TYPE=Release # Release build is recommended
```

## How to use
```
roslaunch raycast_mapping_ros raycast_mapping.launch
```

## Running the demo
```
# clone repository
cd /path/to/your/catkin_ws/src
git clone https://github.com/ToshikiNakamura0412/scan_to_pcl_ros.git
git clone -b noetic-devel https://github.com/ROBOTIS-GIT/turtlebot3_msgs.git
git clone -b noetic-devel https://github.com/ROBOTIS-GIT/turtlebot3.git
git clone -b noetic-devel https://github.com/ROBOTIS-GIT/turtlebot3_simulations.git

# build
cd /path/to/your/catkin_ws
rosdep install -riy --from-paths src --rosdistro noetic
catkin build -DCMAKE_BUILD_TYPE=Release

# run demo
export TURTLEBOT3_MODEL=burger
roslaunch raycast_mapping_ros test.launch
```

## Node I/O
![Node I/O](images/node_io.png)

## Nodes
### raycast_mapping
#### Published Topics
- /local_map (`nav_msgs/OccupancyGrid`)
- Local map data

#### Subscribed Topics
- /cloud (`sensor_msgs/PointCloud2`)
- Input point cloud data

#### Parameters
- ~\/frame_id (string, default: `base_footprint`):

The frame id of the local map
- ~\/map_reso (float, default: `0.05` [m/cell]):

The resolution of the map
- ~\/map_size (float, default: `10.0` [m]):

The size of the map
- ~\/yaw_reso (float, default: `0.087` [rad]):

The resolution of the yaw angle for ray casting

## References
- https://myenigma.hatenablog.com/entry/20140714/1405343128