luxonis / depthai-ros

Official ROS Driver for DepthAI Sensors.
MIT License
260 stars 189 forks source link

ros2 jazzy turtlebot4 has not depth topics #630

Open orangelee89 opened 3 days ago

orangelee89 commented 3 days ago

ros2 : jazzy device : oakd-pro-w

when I run ros2 launch turtlebot4_bringup lite.launch.py or ros2 launch turtlebot4_bringup oakd.launch.py I got topics without depth

image

in the ttbot4 launch file

but wen I run ros2 launch turtlebot4_bringup oakd_example.launch.py

ros2 launch depthai_examples stereo_inertial_node.launch.py I'm able to get depth topic

image
Serafadam commented 3 days ago

Hi, those two launch files (ros2 launch turtlebot4_bringup lite.launch.py and ros2 launch turtlebot4_bringup oakd.launch.py) use config files that have only rgb pipeline type enabled (links here and here respectively), to enable depth topics you would need to modify the pipeline_type parameter to, for example RGBD. More information on pipeline types can be found here ros2 launch turtlebot4_bringup oakd_example.launch.py launches rgb_stereo_node, which is a premade example pipeline, not the default driver.

orangelee89 commented 2 days ago

so basically, what I have to do is change i_pipeline_type: RGB to i_pipeline_type: RGBD in turtlebot4_bringup/config/oakd_pro.yaml?

orangelee89 commented 2 days ago

since I change turtlebot4_bringup/config/oakd_pro.yaml as below

image

I got the result like:

image