Skip to content

MapsHD/benchmark-RESPLE-to-HDMapping

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

resple-converter

Dependencies

sudo apt install -y nlohmann-json3-dev

Intended use

This small toolset allows to integrate SLAM solution provided by resple with HDMapping. This repository contains ROS 2 workspace that :

  • submodule to tested revision of RESPLE
  • a converter that listens to topics advertised from odometry node and save data in format compatible with HDMapping.

Building

Clone the repo

mkdir -p /test_ws/src
cd /test_ws/src
git clone https://github.com/marcinmatecki/resple-to-hdmapping.git --recursive
cd ..
colcon build

Usage - data SLAM:

Prepare recorded bag with estimated odometry:

In first terminal record bag:

ros2 bag record /current_scan /odometry

and start odometry:

cd /test_ws/
source ./install/setup.sh # adjust to used shell
ros2 launch resple resple_eee_02.launch.py
ros2 bag play 

Usage - conversion:

cd /test_ws/
source ./install/setup.sh # adjust to used shell
ros2 run resple-to-hdmapping listener <recorded_bag> <output_dir>

Example:

Download the dataset from NTU-VIRAL For this example, download eee_03.

Convert(If it's a ROS1 .bag file):

rosbags-convert --src {your_downloaded_bag} --dst {desired_destination_for_the_converted_bag}

Record the bag file:

ros2 bag record /current_scan /odometry -o {your_directory_for_the_recorded_bag}

RESPLE Launch:

cd /test_ws/
source ./install/setup.sh # adjust to used shell
ros2 launch resple resple_eee_02.launch.py
ros2 bag play {path_to_bag}

During the record (if you want to stop recording earlier) / after finishing the bag:

In the terminal where the ros record is, interrupt the recording by CTRL+C
Do it also in ros launch terminal by CTRL+C.

Usage - Conversion (ROS bag to HDMapping, after recording stops):

cd /test_ws/
source ./install/setup.sh # adjust to used shell
ros2 run resple-to-hdmapping listener <recorded_bag> <output_dir>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 93.6%
  • CMake 6.4%