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

How to publish sensor msgs and clock messages at a rate higher than 10Hz? #67

Open
aditi741997 opened this issue Oct 13, 2020 · 1 comment

Comments

@aditi741997
Copy link

Hello

I am using stage_ros along with navigation2d for p3at. [http://wiki.ros.org/nav2d/Tutorials ] It works fine with the default world parameters of running stage at 10Hz.
I want to publish sensor and clock messages faster than the default of 10Hz (i.e. interval_sim = interval_real = 100ms), I see that the data is published once every worldCallback, which is called with period interval_sim.

When I try to reduce interval_Real or interval_sim, the stage_ros+nav2d simulation stops working - the nav2d module is sometimes not able to find the robot on the map.

I tried adding speedup=2 in the world file, causing the smulation to run at twice the rate, but the sensor&clock is still published at 10Hz (since interval_sim = 100ms).

It'd be great if you could help figure out how to publish sensor,clock data faster, with or without running simulation faster than real time.

@jara001
Copy link

jara001 commented Apr 19, 2023

For anyone interested; just use, e.g., interval_sim 50 inside the world file. In sets the period for both sensors and sim clock.

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