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

Need to publish data at slower rate #25

Closed
mkreddy477 opened this issue Jan 9, 2019 · 2 comments
Closed

Need to publish data at slower rate #25

mkreddy477 opened this issue Jan 9, 2019 · 2 comments
Labels
question Further information is requested

Comments

@mkreddy477
Copy link

Hello,

I am working on application where my subscriber is pretty slow.
I want to publish the topic at lower rates.
Is there a way to do that?

Thanks and regards,
Murali

@fabianoboril
Copy link
Collaborator

Hi,
the ROS bridge simply provides all data that CARLA provides. Currently there is a PR in CARLA that allows sensors to use a different frequency than the main simulation core:
carla-simulator/carla#1116

Besides, why not dropping old messages on the subscriber side? Your callback could just fill a queue with the data that is relevant for you, and than do the processing? Or another solution is to use multithreaded spinning, to process incoming data in parallel (http://wiki.ros.org/roscpp/Overview/Callbacks%20and%20Spinning)

@fabianoboril fabianoboril added the question Further information is requested label Jan 11, 2019
@fpasch
Copy link
Contributor

fpasch commented Apr 17, 2019

carla-simulator/carla#1116 is merged. Therefore I close this issue.

@fpasch fpasch closed this as completed Apr 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants