Download the dataset from Bunker DVI Dataset
This small toolset allows to integrate SLAM solution provided by dlo with HDMapping. This repository contains ROS 1 workspace that :
- submodule to tested revision of dlo
- 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/DLO-to-hdmapping.git --recursive
cd ..
catkin_makePrepare recorded bag with estimated odometry:
In first terminal record bag:
rosbag record /robot/dlo/odom_node/odom /robot/dlo/odom_node/pointcloud/keyframeand start odometry:
cd /test_ws/
source ./devel/setup.sh # adjust to used shell
roslaunch direct_lidar_odometry dlo.launch pointcloud_topic:=<pc_topic_name> imu_topic:=<imu_topic_name>
rosbag play <path_to_rosbag>cd /test_ws/
source ./devel/setup.sh # adjust to used shell
rosrun dlo-to-hdmapping listener <recorded_bag> <output_dir>rosbag record /robot/dlo/odom_node/odom /robot/dlo/odom_node/pointcloud/keyframe -O {your_directory_for_the_recorded_bag}cd /test_ws/
source ./install/setup.sh # adjust to used shell
roslaunch direct_lidar_odometry dlo.launch pointcloud_topic:=/pp_points/synced2rgb imu_topic:=/imu/data
rosbag play <path_to_rosbag>In 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 dlo-to-hdmapping listener <recorded_bag> <output_dir>