Closed an99990 closed 2 years ago
You should use --param
instead of --remap
for parameters:
$ ros2 run rtabmap_ros rgbd_odometry \
rgb/image:=/zed2/zed_node/left/image_rect_color \
depth/image:=/zed2/zed_node/depth/depth_registered \
rgb/camera_info:=/zed2/zed_node/left/camera_info \
--ros-args --param frame_id:=zed2_left_camera_frame
[WARN] [1667764026.123013186] [rcl]: Found remap rule 'rgb/image:=/zed2/zed_node/left/image_rect_color'. This syntax is deprecated. Use '--ros-args --remap rgb/image:=/zed2/zed_node/left/image_rect_color' instead.
[WARN] [1667764026.123112036] [rcl]: Found remap rule 'depth/image:=/zed2/zed_node/depth/depth_registered'. This syntax is deprecated. Use '--ros-args --remap depth/image:=/zed2/zed_node/depth/depth_registered' instead.
[WARN] [1667764026.123163347] [rcl]: Found remap rule 'rgb/camera_info:=/zed2/zed_node/left/camera_info'. This syntax is deprecated. Use '--ros-args --remap rgb/camera_info:=/zed2/zed_node/left/camera_info' instead.
[WARN] [1667764026.189717679] [rcl]: Found remap rule 'rgb/image:=/zed2/zed_node/left/image_rect_color'. This syntax is deprecated. Use '--ros-args --remap rgb/image:=/zed2/zed_node/left/image_rect_color' instead.
[WARN] [1667764026.189865928] [rcl]: Found remap rule 'depth/image:=/zed2/zed_node/depth/depth_registered'. This syntax is deprecated. Use '--ros-args --remap depth/image:=/zed2/zed_node/depth/depth_registered' instead.
[WARN] [1667764026.189900014] [rcl]: Found remap rule 'rgb/camera_info:=/zed2/zed_node/left/camera_info'. This syntax is deprecated. Use '--ros-args --remap rgb/camera_info:=/zed2/zed_node/left/camera_info' instead.
[INFO] [1667764026.240477883] [rgbd_odometry]: Odometry: frame_id = zed2_left_camera_frame
[INFO] [1667764026.240556619] [rgbd_odometry]: Odometry: odom_frame_id = odom
[INFO] [1667764026.240572450] [rgbd_odometry]: Odometry: publish_tf = true
[INFO] [1667764026.240583046] [rgbd_odometry]: Odometry: wait_for_transform = 0.100000
[INFO] [1667764026.240634398] [rgbd_odometry]: Odometry: initial_pose = xyz=0.000000,0.000000,0.000000 rpy=0.000000,-0.000000,0.000000
[INFO] [1667764026.240648201] [rgbd_odometry]: Odometry: ground_truth_frame_id =
[INFO] [1667764026.240656744] [rgbd_odometry]: Odometry: ground_truth_base_frame_id = zed2_left_camera_frame
[INFO] [1667764026.240664907] [rgbd_odometry]: Odometry: config_path =
[INFO] [1667764026.240672922] [rgbd_odometry]: Odometry: publish_null_when_lost = true
[INFO] [1667764026.240683068] [rgbd_odometry]: Odometry: guess_frame_id =
[INFO] [1667764026.240692374] [rgbd_odometry]: Odometry: guess_min_translation = 0.000000
[INFO] [1667764026.240702596] [rgbd_odometry]: Odometry: guess_min_rotation = 0.000000
[INFO] [1667764026.240715827] [rgbd_odometry]: Odometry: guess_min_time = 0.000000
[INFO] [1667764026.240726038] [rgbd_odometry]: Odometry: expected_update_rate = 0.000000 Hz
[INFO] [1667764026.240736543] [rgbd_odometry]: Odometry: max_update_rate = 0.000000 Hz
[INFO] [1667764026.240746263] [rgbd_odometry]: Odometry: wait_imu_to_init = false
[INFO] [1667764026.240801377] [rgbd_odometry]: Odometry: stereoParams_=0 visParams_=1 icpParams_=0
[INFO] [1667764026.248221057] [rgbd_odometry]: RGBDOdometry: approx_sync = true
[INFO] [1667764026.248239643] [rgbd_odometry]: RGBDOdometry: approx_sync_max_interval = 0.000000
[INFO] [1667764026.248249790] [rgbd_odometry]: RGBDOdometry: queue_size = 5
[INFO] [1667764026.248259615] [rgbd_odometry]: RGBDOdometry: qos = 0
[INFO] [1667764026.248266317] [rgbd_odometry]: RGBDOdometry: qos_camera_info = 0
[INFO] [1667764026.248274343] [rgbd_odometry]: RGBDOdometry: subscribe_rgbd = false
[INFO] [1667764026.248281685] [rgbd_odometry]: RGBDOdometry: rgbd_cameras = 1
[INFO] [1667764026.248288224] [rgbd_odometry]: RGBDOdometry: keep_color = fals
Hi, Im currently having issues with TF, and hope someone will be able to answer me. I am launching the visual odometry alone in order to fuse it with some wheel odometry with robot_localization. For some reason even when i remap the frmae_id topic, it still goes back to base_link.
command line :
ros2 run rtabmap_ros rgbd_odometry rgb/image:=/zed2/zed_node/left/image_rect_color depth/image:=/zed2/zed_node/depth/depth_registered rgb/camera_info:=/zed2/zed_node/left/camera_info --ros-args --remap frame_id:=zed2_left_camera_frame
output
Anyone has any idea why it does that ? I provided my launch file here as well.
thank you