Errors occur when run Tutorial for Visual SLAM Using a RealSense Camera with Integrated IMU

Operating System Ubuntu 22.04

GPU Information: 3080ti Laptop

Camera Intel realsense D435i

I just only installed isaac ros visual SLAM version 3.2 which supports for Humble , not downloaded Isaac Sim

I installed RealSense firmware version 5.13.0.50, librealsense SDK version 2.55.1 and realsense-ros driver version 4.51.1-isaac (following Isaac ROS RealSense Setup — isaac_ros_docs documentation)

What I’ve Tried Running in Docker

ros2 launch isaac_ros_visual_slam isaac_ros_visual_slam_realsense.launch.py [terminal 1]

rviz2 -d $(ros2 pkg prefix isaac_ros_visual_slam --share)/rviz/default.cfg.rviz [terminal 2

Related Issues

Then this error occurs:

Rviz2 occurs:

Can anyone help me to fix it ? If you need more information to fix, tell me !

Thank you for posting this. Could you post a full log error file? The snapshot of the terminal is rather limited. Thanks.

Hi @khaitv.2k3! Since this issue is more related to Isaac ROS, I moved your topic to Isaac ROS forum.

Also could you please provide more details on the error? In the screenshot of isaac_ros_visual_slam log, I don’t see any error.

Hello @khaitv.2k3,

If you could provide the log file instead of a screenshot, it would be easier for us to assist you.
I didn’t see the error in your screenshot, but the log indicates that
Δt = current_frame_timestamp – previous_frame_timestamp is above the threshold.
Visual SLAM relies on regular, dense measurements, large time gaps mean it can’t reliably integrate motion, which can cause resets or degraded performance.

You can quickly inspect the timestamps:

  • For images:

    ros2 topic echo /stereo_camera/left/image_rect --field header.stamp
    
  • For IMU:

    ros2 topic echo /imu --field header.stamp
    

Look at the difference between consecutive stamps. If you ever see gaps much larger than the expected frame period (e.g. >100–200 ms for a 30 Hz camera), that’s exactly what Visual SLAM is complaining about.

Additionally, one possible adjustment you could do is to lower the RealSense resolution or set the FPS to 30 to stabilize the pipeline first, and ensure the IMU is properly configured.

Hello @zhengwang ,

Here is my full log when I run.

‘‘‘

/workspaces/isaac_ros-dev$ ros2 launch isaac_ros_visual_slam isaac_ros_visual_slam_realsense.launch.py
[INFO] [launch]: All log files can be found below /home/admin/.ros/log/2026-01-15-11-27-50-952759-salmond-OMEN-by-HP-Laptop-17-ck1xxx-2370
[INFO] [launch]: Default logging verbosity is set to INFO
[INFO] [component_container-1]: process started with pid [2382]
[INFO] [realsense2_camera_node-2]: process started with pid [2384]
[realsense2_camera_node-2] [INFO] [1768451271.175787052] [camera.camera]: RealSense ROS v4.51.1
[realsense2_camera_node-2] [INFO] [1768451271.175862593] [camera.camera]: Built with LibRealSense v2.55.1
[realsense2_camera_node-2] [INFO] [1768451271.175872576] [camera.camera]: Running with LibRealSense v2.55.1
[component_container-1] [INFO] [1768451271.283938382] [visual_slam_launch_container]: Load Library: /workspaces/isaac_ros-dev/install/isaac_ros_visual_slam/lib/libvisual_slam_node.so
[realsense2_camera_node-2] [INFO] [1768451271.346014394] [camera.camera]: Device with serial number 336222070126 was found.
[realsense2_camera_node-2]
[realsense2_camera_node-2] [INFO] [1768451271.346146319] [camera.camera]: Device with physical ID 2-1-2 was found.
[realsense2_camera_node-2] [INFO] [1768451271.346166974] [camera.camera]: Device with name Intel RealSense D435I was found.
[realsense2_camera_node-2] [INFO] [1768451271.347032420] [camera.camera]: Device with port number 2-1 was found.
[realsense2_camera_node-2] [INFO] [1768451271.347145563] [camera.camera]: Device USB type: 3.2
[realsense2_camera_node-2] [INFO] [1768451271.351178838] [camera.camera]: getParameters…
[realsense2_camera_node-2] [INFO] [1768451271.351501874] [camera.camera]: JSON file is not provided
[realsense2_camera_node-2] [INFO] [1768451271.351514169] [camera.camera]: Device Name: Intel RealSense D435I
[realsense2_camera_node-2] [INFO] [1768451271.351520056] [camera.camera]: Device Serial No: 336222070126
[realsense2_camera_node-2] [INFO] [1768451271.351524503] [camera.camera]: Device physical port: 2-1-2
[realsense2_camera_node-2] [INFO] [1768451271.351528938] [camera.camera]: Device FW version: 5.13.0.50
[realsense2_camera_node-2] [INFO] [1768451271.351532736] [camera.camera]: Device Product ID: 0x0B3A
[realsense2_camera_node-2] [INFO] [1768451271.351536296] [camera.camera]: Sync Mode: Off
[component_container-1] [INFO] [1768451271.482790833] [visual_slam_launch_container]: Found class: rclcpp_components::NodeFactoryTemplatenvidia::isaac_ros::visual_slam::VisualSlamNode
[component_container-1] [INFO] [1768451271.482834042] [visual_slam_launch_container]: Instantiate class: rclcpp_components::NodeFactoryTemplatenvidia::isaac_ros::visual_slam::VisualSlamNode
[component_container-1] [INFO] [1768451271.501814877] [NitrosContext]: [NitrosContext] Loading extension: gxf/lib/std/libgxf_std.so
[component_container-1] [INFO] [1768451271.502875277] [NitrosContext]: [NitrosContext] Loading extension: gxf/lib/libgxf_isaac_gxf_helpers.so
[component_container-1] [INFO] [1768451271.505055154] [NitrosContext]: [NitrosContext] Loading extension: gxf/lib/libgxf_isaac_sight.so
[component_container-1] [INFO] [1768451271.507692868] [NitrosContext]: [NitrosContext] Loading extension: gxf/lib/libgxf_isaac_atlas.so
[component_container-1] 2026-01-15 11:27:51.513 WARN external/com_nvidia_gxf/gxf/std/program.cpp@538: No GXF scheduler specified.
[component_container-1] [INFO] [1768451271.513274042] [NitrosContext]: [NitrosContext] Loading extension: gxf/lib/multimedia/libgxf_multimedia.so
[component_container-1] [INFO] [1768451271.518609165] [visual_slam_node.ManagedNitrosSubscriber]: Starting Managed Nitros Subscriber
[component_container-1] [INFO] [1768451271.519896007] [visual_slam_node.ManagedNitrosSubscriber]: Starting Managed Nitros Subscriber
[component_container-1] [INFO] [1768451271.535957875] [visual_slam_node]: cuVSLAM version: 12.6
[component_container-1] [INFO] [1768451271.676496390] [visual_slam_node]: Time taken by CUVSLAM_WarmUpGPU(): 0.140500
[INFO] [launch_ros.actions.load_composable_nodes]: Loaded node ‘/visual_slam_node’ in container ‘/visual_slam_launch_container’
[realsense2_camera_node-2] [WARN] [1768451271.856231100] [camera.camera]: re-enable the stream for the change to take effect.
[realsense2_camera_node-2] [WARN] [1768451271.959917259] [camera.camera]: re-enable the stream for the change to take effect.
[realsense2_camera_node-2] [INFO] [1768451271.964268316] [camera.camera]: Stopping Sensor: Stereo Module
[realsense2_camera_node-2] [INFO] [1768451272.009285099] [camera.camera]: Starting Sensor: Stereo Module
[realsense2_camera_node-2] [INFO] [1768451272.017002335] [camera.camera]: Open profile: stream_type: Infra(1), Format: Y8, Width: 640, Height: 360, FPS: 90
[realsense2_camera_node-2] [INFO] [1768451272.017055373] [camera.camera]: Open profile: stream_type: Infra(2), Format: Y8, Width: 640, Height: 360, FPS: 90
[realsense2_camera_node-2] [INFO] [1768451272.017089579] [camera.camera]: Stopping Sensor: Motion Module
[realsense2_camera_node-2] [INFO] [1768451272.051597715] [camera.camera]: Starting Sensor: Motion Module
[realsense2_camera_node-2] [INFO] [1768451272.326900152] [camera.camera]: Open profile: stream_type: Accel(0)Format: MOTION_XYZ32F, FPS: 200
[realsense2_camera_node-2] [INFO] [1768451272.327033711] [camera.camera]: Open profile: stream_type: Gyro(0)Format: MOTION_XYZ32F, FPS: 200
[realsense2_camera_node-2] [INFO] [1768451272.355743992] [camera.camera]: RealSense Node Is Up!
[realsense2_camera_node-2] [WARN] [1768451272.355792802] [camera.camera]:
[component_container-1] [INFO] [1768451272.527058772] [visual_slam_node]: Initializing cuVSLAM.
[component_container-1] [INFO] [1768451272.527177239] [visual_slam_node]: Use use_gpu: true
[component_container-1] [INFO] [1768451272.527183740] [visual_slam_node]: Enable IMU Fusion: true
[component_container-1] [INFO] [1768451272.527187374] [visual_slam_node]: gyroscope_noise_density: 0.000244
[component_container-1] [INFO] [1768451272.527192225] [visual_slam_node]: gyroscope_random_walk: 0.000019
[component_container-1] [INFO] [1768451272.527196230] [visual_slam_node]: accelerometer_noise_density: 0.001862
[component_container-1] [INFO] [1768451272.527200338] [visual_slam_node]: accelerometer_random_walk: 0.003000
[component_container-1] [INFO] [1768451272.527204012] [visual_slam_node]: frequency: 200.000000
[component_container-1] [INFO] [1768451274.474868849] [visual_slam_node]: Time taken by CUVSLAM_CreateTracker(): 1.947660
[component_container-1] [INFO] [1768451274.475059369] [visual_slam_node]: cuVSLAM tracker was successfully initialized.
[component_container-1] [WARN] [1768451274.612442061] [visual_slam_node]: Delta between current and previous frame [133.781760 ms] is above threshold [34.000000 ms]

‘‘‘

I just want to fix line Delta between….

Hi @vchuang ,

As your solution to modify realsense with 30 fps frequency, I open realsense-viewer and see it’s 30fps. Do I need to modify another file ? If yes, which file I should modify next ?

From the log you provided, the warning occurs right after RealSense stops/starts the stereo module and after CUVSLAM_CreateTracker() completes.
This suggests that the first frame pair after startup is late, resulting in a single large delta. If you only see this warning once or a few times at startup, and tracking or odometry work correctly afterwards, it’s safe to ignore. It simply indicates that the first couple of frames were delayed during sensor initialization.