luxonis / depthai-ros

Official ROS Driver for DepthAI Sensors.
MIT License
251 stars 185 forks source link

OAK-D PRO don't have depth topic #570

Open Ragnar7982 opened 1 month ago

Ragnar7982 commented 1 month ago

Hello, I'm using Turtlebot4 and OAK-D PRO, OS is Ubuntu22.04 and ROS2-humble, when I call ros2 topic list, the camera only have these topic: /oakd/rgb/preview/camera_info /oakd/rgb/preview/image_raw /oakd/rgb/preview/image_raw/compressed /oakd/rgb/preview/image_raw/compressedDepth /oakd/rgb/preview/image_raw/theora

Is there any NOT compressedDepth topic? Because I wanna use RTAB-map, so is there any settings can change to depth(not compressed)? Thank you.

Serafadam commented 1 month ago

Hi, this can be the result of your config file, more specifically pipeline type. You can find more on pipeline types here

Ragnar7982 commented 1 month ago

@Serafadam Hello, thanks for replying fast. When I run camera.launch.py, it shows: [component_container-1] [ERROR] [1722860415.251114816] [oak]: No available devices [component_container-1] [INFO] [1722860415.251352386] [oak]: No ip/mxid specified, connecting to the next available device. Is there any way can fix this?

Serafadam commented 1 month ago

Hi, I think it would be best if you go through the steps described in our bug report template. You can also check this page for general information regarding connectivity issues

Ragnar7982 commented 1 month ago

Hello, sorry for the late reply, so after I connect to laptop the camera works find(USB3.0),but why it's wrong with rtabmap, all of settings are default, and I run: ros2 launch depthai_ros_driver rtabmap.launch .py, but it feels so lagging, and it shows very weird, do you know where might be the problem? Screenshot from 2024-08-07 15-18-02

Serafadam commented 1 month ago

Hi, based on this image I think it is related to odometry losing track of features, this can be cause by fast movements or exposure changes, you can retrigger the odometry via ROS service or RTABMap's GUI. Regarding latency, it is probably related to ROS2 DDS, you can find some more information on improving the latency here

Ragnar7982 commented 1 month ago

Thanks for replying fast, but I run visualized_pointcloud.py( default setting), which is in depthai_ros_driver, it shows like this, I am wondering if it's camera problems? This is far: Screenshot from 2024-08-07 19-03-50 This is close: Screenshot from 2024-08-07 19-08-07 These are actually similar to rtabmap, can you tell me where might be the problems? Thank you

Ragnar7982 commented 1 month ago

@Serafadam Did you ever try rtabmap with oak-d pro camera before? If you did it do you mind let me see your parameters? Thank you.