很多文章都是先source ros1 然后source ros2,再play bag
source /opt/ros/noetic/setup.bash
source /opt/ros/foxy/setup.bash
ros2 bag play -s rosbag_v2 kitti_raw00.bag
但实测会出问题:
为使ros1和ros2的bag一直互通
sudo apt update
sudo apt install ros-foxy-ros1-bridge ros-foxy-ros1-rosbag-storage-vendorsudo apt install -y lib