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

[BUG]: Framerate of gazebo camera is 1Hz #23

Open
marc-hanheide opened this issue Feb 24, 2024 · 4 comments
Open

[BUG]: Framerate of gazebo camera is 1Hz #23

marc-hanheide opened this issue Feb 24, 2024 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@marc-hanheide
Copy link
Member

Description of the bug

The framerate is 1Hz only!

I'm surprised by this comment:

<!-- Keep this zero, update_rate in the parent <sensor> tag
will control the frame rate. -->
<updateRate>0.0</updateRate>

This does not appear to be working. Any of you @LeonardoGuevara, @jondave , @pulver22 encountered this as well?

Steps To Reproduce

run simulation and run ros2 topic hz /limo/depth_camera_link/image_raw

Additional Information

No response

@marc-hanheide marc-hanheide added the bug Something isn't working label Feb 24, 2024
@jondave
Copy link

jondave commented Feb 24, 2024

I assume from the comment it takes the frame rate from the <sensor> tag above this where the rate is 30 Hz <update_rate>30.0</update_rate>?

<update_rate>30.0</update_rate>

@marc-hanheide
Copy link
Member Author

I assume from the comment it takes the frame rate from the <sensor> tag above this where the rate is 30 Hz <update_rate>30.0</update_rate>?

<update_rate>30.0</update_rate>

Well... that appears to be the theory. But the frequency I measure is 1Hz (or rather 0.9997 Hz to be precise). Is it 30 for you?

@LeonardoGuevara
Copy link
Collaborator

I also encounter that issue. For some reason when I run ">> ros2 topic hz /limo/depth_camera_link/image_raw" nothing is printed, but I can see the image is being published in rviz, and also can see that the messages are received more or less every second (~1Hz). I am not using GPU image, could be that the reason?

@marc-hanheide
Copy link
Member Author

no,. nothing to do with GPU. If you check the Ros parameter you seem it's set to 1Hz and when I set it to 30.it publishes at 30. Just a configuration issue.

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

3 participants