You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am running mapping with rtabmap-ros against realsense topics depth aligned and rgb, and imu. Mapping seems to work ok live, but does not work when we do it against a recorded rosbag. And we really need to run mapping from a recorded bag.
I am using the suggestions from rtabmap github issue 1071 but or it does not run or I get the following error message: rgbd_odometry-1] [ERROR] [1733444410.557515875] [rtabmap.rgbd_odometry]: Could not transform IMU msg from frame "camera_imu_optical_frame" to frame "camera_link", TF not available at time 1733442584.769126
Launching realsense topics with the following command: ros2 launch realsense2_camera rs_launch.py initial_reset:=true enable_gyro:=true enable_accel:=true unite_imu_method:=2 enable_sync:=true align_depth.enable:=true rgb_camera.color_profile:="848,480,30" publish_tf:=false
Recording rosbag with the command: ros2 bag record /camera/camera/color/image_raw /camera/camera/aligned_depth_to_color/image_raw /rtabmap/imu /tf /tf_static
Playing rosbag with: ros2 bag play rosbag_file --remap /tf_static:=/tf
Hi @jsreveal In Intel's D435i SLAM guide for ROS1 and rtabmap_ros, when playing back a recorded bag they advise setting a parameter called use_sim_time to true and adding a --clock parameter to the bag play command.
Issue Description
Hi guys,
I am running mapping with rtabmap-ros against realsense topics depth aligned and rgb, and imu. Mapping seems to work ok live, but does not work when we do it against a recorded rosbag. And we really need to run mapping from a recorded bag.
I am using the suggestions from rtabmap github issue 1071 but or it does not run or I get the following error message:
rgbd_odometry-1] [ERROR] [1733444410.557515875] [rtabmap.rgbd_odometry]: Could not transform IMU msg from frame "camera_imu_optical_frame" to frame "camera_link", TF not available at time 1733442584.769126
Launching realsense topics with the following command:
ros2 launch realsense2_camera rs_launch.py initial_reset:=true enable_gyro:=true enable_accel:=true unite_imu_method:=2 enable_sync:=true align_depth.enable:=true rgb_camera.color_profile:="848,480,30" publish_tf:=false
Filtering imu data with:
ros2 run imu_filter_madgwick imu_filter_madgwick_node --ros-args --remap /imu/data_raw:=/camera/camera/imu --remap /imu/data:=/rtabmap/imu --ros-args -p use_mag:=false -p publish_tf:=false
Recording rosbag with the command:
ros2 bag record /camera/camera/color/image_raw /camera/camera/aligned_depth_to_color/image_raw /rtabmap/imu /tf /tf_static
Playing rosbag with:
ros2 bag play rosbag_file --remap /tf_static:=/tf
Running rtabmap with:
ros2 launch rtabmap_launch rtabmap.launch.py args:="-d" rgb_topic:=/camera/camera/color/image_raw depth_topic:=/camera/camera/aligned_depth_to_color/image_raw camera_info_topic:=/camera/camera/color/camera_info frame_id:=camera_link wait_imu_to_init:=true imu_topic:="/rtabmap/imu"
Output of the bag info:
Other approaches attempted without success:
The text was updated successfully, but these errors were encountered: