This small toolset allows to integrate SLAM solution provided by VoxelMap with HDMapping. This repository contains ROS 1 workspace that :
- submodule to tested revision of VoxelMap
- a converter that listens to topics advertised from odometry node and save data in format compatible with HDMapping.
sudo apt install -y nlohmann-json3-devClone the repo
mkdir -p /test_ws/src
cd /test_ws/src
git clone https://github.com/marcinmatecki/VoxelMap-to-HDMapping.git --recursive
cd ..
catkin_makePrepare recorded bag with estimated odometry:
In first terminal record bag:
rosbag record /cloud_registered /aft_mapped_to_initand start odometry:
cd /test_ws/
source ./devel/setup.sh # adjust to used shell
roslaunch voxel_map mapping_velodyne.launch
rosbag play *.bag --clockcd /test_ws/
source ./devel/setup.sh # adjust to used shell
rosrun voxel-to-hdmapping listener <recorded_bag> <output_dir>Download the dataset from GitHub - ConSLAM or directly from this Google Drive link. Then, download sequence2.
rosbag record /cloud_registered /aft_mapped_to_initcd /test_ws/
source ./install/setup.sh # adjust to used shell
roslaunch voxel_map mapping_velodyne.launch
rosbag play {path_to_bag} --clock pp_points/synced2rgb:=/velodyne_pointsIn the terminal where the ros record is, interrupt the recording by CTRL+C
Do it also in ros launch terminal by CTRL+C.cd /test_ws/
source ./install/setup.sh # adjust to used shell
rosrun voxel-to-hdmapping listener <recorded_bag> <output_dir>