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

Simulation runs faster than camera framerate #455

Closed
EmmanuelMess opened this issue Aug 15, 2024 · 4 comments
Closed

Simulation runs faster than camera framerate #455

EmmanuelMess opened this issue Aug 15, 2024 · 4 comments

Comments

@EmmanuelMess
Copy link

I am running a gazebo plugin for simulating the Intel Realsense D435i. When I record a rosbag, the rate of frames is ridicoulously low (3.5Hz). By reducing the real_time_update_rate to 10 I can get something similar to 30Hz (what it should be), but I want to set the simulation so that everything runs as slow as needed to keep the framerate at some specified value.

Plugin code: https://github.com/m-tartari/realsense_gazebo_plugin/tree/49ab134fa517280bb8393e715173dc631ccc2557

Similar to #332

@EmmanuelMess EmmanuelMess changed the title Slow simulation until cameras provide correct FPS Simulation runs faster then camera framerate Aug 15, 2024
@EmmanuelMess EmmanuelMess changed the title Simulation runs faster then camera framerate Simulation runs faster than camera framerate Aug 15, 2024
@EmmanuelMess
Copy link
Author

EmmanuelMess commented Aug 15, 2024

Workaround is to lower real_time_update_rate until the framerate reaches 30fps.

@azeey
Copy link
Contributor

azeey commented Aug 15, 2024

Based on your use of realsense_gazebo_plugin, it sounds like you're using Gazebo-classic. This repo is for the new Gazebo. Can you confirm?

@EmmanuelMess
Copy link
Author

Based on your use of realsense_gazebo_plugin, it sounds like you're using Gazebo-classic. This repo is for the new Gazebo. Can you confirm?

I'm using gazebo classic. Where is the repo for that version?

@azeey
Copy link
Contributor

azeey commented Aug 15, 2024

https://github.com/gazebosim/gazebo-classic. I will mention that Gazebo-classic will be EOL in January, 2025 and there's minimal maintenance going on right now. I encourage you to switch to modern Gazebo (see https://gazebosim.org/docs/latest/migrating_gazebo_classic_ros2_packages/)

@azeey azeey closed this as not planned Won't fix, can't repro, duplicate, stale Aug 15, 2024
@github-project-automation github-project-automation bot moved this from Inbox to Done in Core development Aug 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

2 participants