Skip to content

Latest commit

 

History

History

remap_rosbag2

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

remap_rosbag2

  • This is a shell script to remove unnecessary topic at rosbag2 playing.

Confirmed environment

  • Ubuntu 20.04 LTS, ROS Galactic
  • Ubuntu 22.04 LTS, ROS Humble

Get Started

    1. Write Unnecessary topic in TOPIC_LIST
# Record topic with regular expressions
PERCEPTION_TOPIC=$(ros2 bag info $FILE_NAME | awk '{print $2}' | grep --regexp="/perception/*")

# topic list
TOPIC_LIST=(
/perception/object_recognition/detection/objects
/perception/object_recognition/tracking/objects
/perception/object_recognition/objects
)
    1. Add execution permission
chmod a+x remap_rosbag2.sh
    1. Execute script
./remap_rosbag2.sh file.db3