Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rtabmap-ros not working as rtabmap with visual odometry. #853

Closed
brayanpa opened this issue Dec 14, 2022 · 1 comment
Closed

Rtabmap-ros not working as rtabmap with visual odometry. #853

brayanpa opened this issue Dec 14, 2022 · 1 comment

Comments

@brayanpa
Copy link

Hi @matlabbe, I continue testing rtabmap and rgbd_odometry on ROS Galactic. I have odometry working correctly thanks to your feedback at #851 . But I don't get a good result when mapping. I think it's because when I turn off the IR emitter, the depth image becomes very bad as shown the images below.

IR Emitter ON IR Emitter OFF
image image

On the other hand, if I launch rtabmap without ROS and configure the sensor driver as shown in the following image.

image

Keeping all the default configurations, odometry and rtabmap work perfectly. Even though the realsense has the IR emitter active.

If you could answer some questions I would really appreciate it.

What is the difference between odometry with ROS and without ROS?
Why does it affect so much to enable the IR emitter in ROS and without ROS it does not affect?
How can I configure rtabmap-ros to work as well as rtabmap?

@matlabbe
Copy link
Member

matlabbe commented Dec 15, 2022

How did you launch with ros? Did you try this one? https://github.com/introlab/rtabmap_ros/blob/ros2/launch/ros2/realsense_d435i_infra.launch.py

ros2 launch realsense2_camera rs_launch.py enable_gyro:=true enable_accel:=true unite_imu_method:=1 enable_infra1:=true enable_infra2:=true enable_sync:=true

ros2 param set /camera/camera depth_module.emitter_enabled 0

ros2 launch rtabmap_ros realsense_d435i_infra.launch.py

The standalone uses RGB + Depth as default, it is why you don't need to disable the emitter. However, even with the standalone, I prefer using IR-Depth mode with IR emitter off:
2022-12-14_19-55

But yes, indeed the depth image is less dense with emitter off, but VSLAM should be fine as it won't extract features on blank walls anyway.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants