Closed JohannesPankert closed 4 months ago
Hi Johannes, I had a similar issue with an OAK camera. Nvidia EES Node needs images from left and right camera with same timestamp. You can configure depthai-ros to publish rectified synchronised left and right images. This is the config I used for a OAK-D-Pro_W POE camera:
/oak: ros__parameters: camera: i_ip: '192.168.24.81' i_enable_ir: false i_pipeline_type: Depth i_nn_type: none left: i_fps: 20.0 i_resolution: 400P right: i_fps: 20.0 i_resolution: 400P stereo: i_publish_synced_rect_pair: true i_output_disparity: true
i_publish_synced_rect_pair is the important part. Published images will have same timestamp and will be rectified.
Hope this helps
Thank you for the help.
I tried to launch the camera with your parameters but the disparity node is still not producing results. How exactly is your pipeline setup? You take the rectified images from the camera, convert them to RGB, resize them and feed them into the disparity node? Are there any particular flags you had to set in the nvidia launchfiles?
I changed ImageConverter.cpp of depth_bridge to change output images to RGB.
I run camera.launch.py with the parameter I sent you. I also added a mapping to the launch file because EES awaits images on the right topic: remappings=[('/oak/left/image_rect', '/left/image_rect'), ('/oak/right/image_rect', '/right/image_rect'), ('/oak/left/camera_info', '/left/camera_info'), ('/oak/right/camera_info', '/right/camera_info')]
Check with rviz or ros2 topic echo if images are published on the right topics
run EES (I changed no parameters) ros2 launch isaac_ros_ess isaac_ros_ess.launch.py engine_file_path:=${ISAAC_ROS_WS}/isaac_ros_assets/models/dnn_stereo_disparity/dnn_stereo_disparity_v4.0.0/ess.engine threshold:=0.0
Images will be resized to EES required size automatically, so no need for that. Also no need for recitfying because the published images are already rectified.
Thank you very much for your help. I got things to work with your parameters and figured out what was wrong with my setup.
I had the parameters left.i_publish_topic: true
and right.i_publish_topic: true
set which caused double publishing of both raw and rectified camera info messages on the /left/camera_info
and /right/camera_info
topics.
For future readers: Make sure that those parameters are set to false to only get the rectified camera_info messages.
Hello
I am trying to get the stereo matching node to work with my Oak-D Pro camera. I followed the example of the Realsense launchfile.
The preprocessing steps with the nvidia nodes (mono2rgb, rectify, resize) all seem to work correctly.
The disparity node does not publish disparity images though. I both tried the node with live images and with a ros2 bag that I recorded. I modified the rosbag to make sure that the left and right images and their camera_info messages are time synced correctly.
The disparity node works with the example rosbag provided in
isaac_ros_assets/isaac_ros_ess/rosbags/ess_rosbag
This is the output of the disparity node with log level debug: It looks like it does receive the images but there is no error message or other indication on why it does not produce the disparity image.
Do you have any ideas what else I can try to get this to work?