利用zed相机为rtabmap_ros录制rosbag包及其使用

 1,录制rosbag包

rosbag record /zed_node/rgb/image_rect_color /zed_node/rgb/camera_info /zed_node/depth/depth_registered /zed_node/depth/camera_info /zed_node/odom /tf /tf_static /zed_node/pose

2,写launch文件


     "zed_node_name"                default="zed_node" />
    
    "$(find rtabmap_ros)/launch/rtabmap.launch">
      "rtabmap_args"                value="--delete_db_on_start" />
      "use_sim_time"                value="true"/>
      "rgb_topic"                   value="/$(arg zed_node_name)/rgb/image_rect_color" />
      "depth_topic"                 value="/$(arg zed_node_name)/depth/depth_registered" />
      "camera_info_topic"           value="/$(arg zed_node_name)/rgb/camera_info" />
      "depth_camera_info_topic"     value="/$(arg zed_node_name)/depth/camera_info" />
      "odom_topic"                  value="/$(arg zed_node_name)/odom" />

      "frame_id"                    value="base_link" />
      "approx_sync"                 value="true" />
      "visual_odometry"             value="false" />
      "rviz"                        value="false" />
    

 

你可能感兴趣的:(利用zed相机为rtabmap_ros录制rosbag包及其使用)