Skip to content
This repository has been archived by the owner on Aug 6, 2024. It is now read-only.

hayato-m126/autoware_msg_bag_converter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

autoware_msg_bag_converter

This package converts bag containing type autoware_auto_msg to autoware_msg.

preparation

  1. create ros2 workspace for converter (ex. $HOME/ros_ws/converter)
  2. clone this repository into converter workspace
  3. clone dependency repos
  4. build converter workspace

Example command is below.

mkdir -p $HOME/ros_ws/converter/src
cd $HOME/ros_ws/converter/src
git clone https://github.com/autowarefoundation/autoware_msg_bag_converter.git
cd autoware_msg_bag_converter
vcs import .. < dependency.repos
cd $HOME/ros_ws/converter
colcon build --symlink-install --cmake-args -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_BUILD_TYPE=Release

Optional

If you want to use mcap format bags, you need to install the mcap package in advance.

sudo apt install ros-humble-rosbag2-storage-mcap

usage

cd $HOME/ros_ws/converter
source install/setup.bash
cd src/autoware_msg_bag_converter/autoware_msg_bag_converter

# convert one bag
python3 main.py ${input_bag} ${output_bag}

# convert multi bags in directory
python3 main.py ${input_bag_dir} ${output_bag_dir} -d

demo

convert the tutorial bag file. Conversion is not necessary because the bag has been uploaded already changed to autoware_msg since 6/7/2024

demo

Releases

No releases published

Packages

No packages published