Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot display with rviz2 point cloud when launching camera.launch.py #659

Closed
DanieleMarchisotti opened this issue Feb 4, 2025 · 2 comments
Labels
bug Something isn't working

Comments

@DanieleMarchisotti
Copy link

Describe the bug
I cannot display point cloud with rviz2 when launching camera.launch.py.

ros2 launch depthai_ros_driver camera.launch.py

I get the following error:

[point_cloud_xyzrgb_node]: New subscription discovered on topic '/oak/points', requesting incompatible QoS. No messages will be sent to it. Last incompatible policy: RELIABILITY_QOS_POLICY

then if I change HistoryPolicy and ReliabilityPolicy to "System Default" and "Best Effort" respectively on rviz2, I get the following:

Message Filter dropping message: frame 'oak_rgb_camera_optical_frame' at time 1738687835.953 for reason 'discarding message because the queue is full'

This is my camera.yaml file:

/**:
  ros__parameters:
    camera:
      i_enable_imu: true
      i_enable_ir: true
      i_nn_type: spatial
      i_pipeline_type: RGBD
      i_enable_sync: true
    right:
      i_publish_topic: true
    left:
      i_publish_topic: true
    nn:
      i_nn_config_path: depthai_ros_driver/mobilenet
    pipeline_gen:
      i_enable_sync: true
    imu:
      i_enable_rotation: true
      i_get_base_device_timestamp: true
    rgb:
      i_publish_topic: true
    stereo:
      i_publish_topic: true
      i_synced: true

However, it seems that with ros2 topic echo /oak/points it is possible to see the list of points of the point cloud.
Is it correct? How can I see the point cloud with camera.launch.py?

@DanieleMarchisotti DanieleMarchisotti added the bug Something isn't working label Feb 4, 2025
@DanieleMarchisotti DanieleMarchisotti changed the title Cannot display with rviz2 point cloud when launching camera.launch.py (RELIABILITY_QOS_POLICY) Cannot display with rviz2 point cloud when launching camera.launch.py Feb 4, 2025
@Serafadam
Copy link
Collaborator

Hi, this is most likely caused by using default base frame in Rviz (or using one that is not connected to OAK model), you need to change it to one of the oak frames, they will be available in the dropdown menu.

@DanieleMarchisotti
Copy link
Author

You are right, now it works. Closing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants