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

[ROS2] The Image frame rate half of the CameraInfo frame rate #176

Open
b4795 opened this issue Oct 17, 2020 · 1 comment
Open

[ROS2] The Image frame rate half of the CameraInfo frame rate #176

b4795 opened this issue Oct 17, 2020 · 1 comment

Comments

@b4795
Copy link

b4795 commented Oct 17, 2020

Steps to reproduce:

Publish Image and CameraInfo using CameraPublisher.

Observed & Expected:

Image frame rate (as measured by ros2 topic hz) is around 8. Expected: equal to the CameraInfo frame rate.
CameraInfo frame rate (as measured by ros2 topic hz) is around 16. Expected: equal to the Image frame rate.

Questions:

Could it be that any other Image fails to be published?
Could it be an issue with ros2 topic hz?

@EwingKang
Copy link

I've also encountered this issue. Check this issue: ros2/ros2cli#871
I workaround it by modifying the QoS setting directly in the installed location /opt/ros/iron/lib/python3.10/site-packages/ros2topic/verb/hz.py. By changing the qos profile line to rclpy.qos.qos_profile_parameters, it is possible for ros2 topic hz to report correct frequency.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants