Closed michelgokan closed 4 days ago
Alright, I think I figured out the issue!
/camera
to /camera/camera
in the example files.realsense_d435i_color.launch.py
file is too resource-heavy to run on a Raspberry Pi. It takes a few minutes before something appears on the screen. On the other hand, the realsense_d435i_stereo.launch.py
file produces faster and better results (and without the 5-second warning).I believe the 5-second warning occurs due to the overall computational intensity of RTAB-Map when processing color data.
You may not have needed to rebuild the full package. You can copy/paste the launch file from github or from the installed one on the computer, then modify the launch and start it directly with ros2 launch my_modified_realsense_d435i_stereo.launch.py
.
Note sure why there is so much difference between color and stereo modes, they should run fairly the same, unless there is some synchronization issues or topic latency difference. Comparison on my desktop computer:
ros2 launch rtabmap_examples realsense_d435i_color.launch.py
[rgbd_odometry-2] [INFO] [1727657321.475066553] [rgbd_odometry]: Odom: quality=230, std dev=0.006382m|0.017944rad, update time=0.034914s delay=0.075090s
[rgbd_odometry-2] [INFO] [1727657321.544284506] [rgbd_odometry]: Odom: quality=239, std dev=0.006054m|0.021189rad, update time=0.034261s delay=0.077593s
ros2 launch rtabmap_examples realsense_d435i_stereo.launch.py
[stereo_odometry-2] [INFO] [1727657276.020022049] [stereo_odometry]: Odom: quality=257, std dev=0.019710m|0.022810rad, update time=0.049626s delay=0.083757s
[stereo_odometry-2] [INFO] [1727657276.085717890] [stereo_odometry]: Odom: quality=278, std dev=0.021567m|0.020040rad, update time=0.048890s delay=0.082494s
It is actually slower on stereo mode (because we need to compute the stereo correspondences).
I'm trying to run rtabmap_ros with ROS2 Jazzy using my Intel RealSense D435i following this example. My setup is Ubuntu 24.04 running on a Raspberry Pi 5 8GB.
Here is the command:
Here is the output:
Here is the topic list while above is running:
Here is the output of
hz
command:As you can see, the main error is
rtabmap: Did not receive data since 5 seconds!
I tried run nodes separately and played with different combinations for several hours.
Any ideas what's wrong?
I can confirm that the camera is functioning properly, and
realsense-viewer
successfully displays the output. Additionally, when I manually add the camera in RViz, both depth and RGB data/images are visible.