This package converts bag containing type autoware_auto_msg to autoware_msg.
- create ros2 workspace for converter (ex. $HOME/ros_ws/converter)
- clone this repository into converter workspace
- clone dependency repos
- 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
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
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
convert the tutorial bag file.
Conversion is not necessary because the bag has been uploaded already changed to autoware_msg since 6/7/2024