Skip to content

ROS 1 and ROS 2 node that converts sensor_msgs/PointCloud2 LIDAR data to nav_msgs/OccupancyGrid 2D map data based on intensity and / or height. 🤖

License

Notifications You must be signed in to change notification settings

Team-ROBIT/pointcloud_to_grid

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pointcloud_to_grid ROS package

This package converts sensor_msgs/PointCloud2 LIDAR data to nav_msgs/OccupancyGrid 2D map data based on intensity and / or height.

Build

cd ~/catkin_ws/src 
git clone https://github.com/jkk-research/pointcloud_to_grid  -b ros1
catkin build pointcloud_to_grid

Don't foget to source ~/catkin_ws/devel/setup.bash. Note: catkin tools is recommended, but catkin_make also works.

Features

  • Few dependencies (ROS and PCL mainly) ROS installation
  • Simple as possible
  • Fast

Conventions & definitions

Getting started

Issue the following commands to start roscore, download and play sample data, and start the algorithm with visualization.

In a new terminal start roscore:

roscore

In a new terminal go to your bag folder (e.g. ~/Downloads):

cd ~/Downloads

Download a sample rosbag (~3,3 GB) :

wget https://laesze-my.sharepoint.com/:u:/g/personal/herno_o365_sze_hu/EYl_ahy5pgBBhNHt5ZkiBikBoy_j_x95E96rDtTsxueB_A?download=1 -O leaf-2021-04-23-campus.bag

Play rosbag:

rosbag play -l ~/Downloads/leaf-2021-04-23-campus.bag

Start the algorithm in a new terminal :

roslaunch pointcloud_to_grid demo.launch

Start the visualization in a new terminal :

roslaunch pointcloud_to_grid rviz.launch

Related solutions

Cite & paper

If you use any of this code please consider citing TODO:

About

ROS 1 and ROS 2 node that converts sensor_msgs/PointCloud2 LIDAR data to nav_msgs/OccupancyGrid 2D map data based on intensity and / or height. 🤖

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 71.6%
  • CMake 15.5%
  • Python 12.9%