Closed ashBabu closed 1 year ago
A bit more info. Launching the realsense camera as
include_rs_cam = IncludeLaunchDescription(
PythonLaunchDescriptionSource(
os.path.join(get_package_share_directory('realsense2_camera'), 'launch', 'rs_launch.py')),
launch_arguments={
"align_depth.enable": "true",
"depth_module.profile": "640x480x30",
"unite_imu_method": "2", # for linear_interpolation
"enable_gyro": "true",
"enable_accel": "true",
}.items()
)
ld.add_action(include_rs_cam)
include_container = ComposableNodeContainer(
name='pointcloud_from_depth', # pointcloud.enable = true in rs_launch.py won't produce pointcloud in Pi
namespace='',
package='rclcpp_components',
executable='component_container',
composable_node_descriptions=[
ComposableNode(
package='rtabmap_util',
plugin='rtabmap_util::PointCloudXYZ',
name='points_xyz_rt',
remappings=[
("depth/image", "/camera/depth/image_rect_raw"),
("depth/camera_info", "/camera/depth/camera_info"),
("cloud", "/camera/depth/color/points")
],
parameters=[
{"decimation": 4},
{"voxel_size": 0.05},
{"approx_sync": True}
]
),
],
output='screen',
)
ld.add_action(include_container)
A rosbag of all the topics is available at rosbag
icp_odometry
will run poorly or not at all with D435i's point cloud because it is a stereo camera. I'll suggest to look at the D435i examples here: https://github.com/introlab/rtabmap_ros/tree/ros2/rtabmap_examples/launch
Thank you @matlabbe. Closing this
Hi, I am on Ubuntu 22.04, ROS Humble and installed Rtabmap from apt. I have a realsense D435i camera with which I would like to do pointcloud odometry. Reading through the docs, I gather that ICP odometry is the way forward. I am assuming that if I use ICP odometry, I dont have to provide any RGB topics (is this correct?)
The launch file is
I get this error
What am I doing wrong?