Bash
mkdir -p ~/ros2_ws/src cd ~/ros2_ws/src
Bash git clone -b ubuntu24 https://github.com/ai-robot-class/ros2_kitti_publishers.git
Bash cd ~/ros2_ws rosdep install -i –from-path src –rosdistro $ROS_DISTRO -y colcon build –symlink-install source install/setup.bash
注意: 检查 ros2_kitti_publishers 中的配置文件或 Launch 文件,确保 dataset_path 指向你存放数据的文件夹。
启动数据发布器:
Bash ros2 launch kitti_nbv_provider kitti_publisher.launch.py 启动 RViz2 可视化(显示点云):
Bash rviz2 -d src/ros2_kitti_publishers/rviz/default.rviz 启动 rqt 图像查看器:
Bash rqt
README.md