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

Add simple methods to modify the ROS time #10

Open
felixdivo opened this issue Apr 10, 2023 · 2 comments
Open

Add simple methods to modify the ROS time #10

felixdivo opened this issue Apr 10, 2023 · 2 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@felixdivo
Copy link
Owner

Useful features would be:

  • skipping ahead (given a time difference)
  • skipping back is probably less useful in most scenarios
  • setting the time to a concrete value
  • waiting for a specific duration/until a certain time point

It would probably be easiest to add them to the env.

@felixdivo felixdivo added enhancement New feature or request help wanted Extra attention is needed labels Apr 10, 2023
@Timple
Copy link
Contributor

Timple commented Feb 27, 2024

As interface perhaps some setters?

env.time_set(0)
assert node_initalized
env.time_set(18)
assert timeout_behavior

env.time_jump(8.0)  # seconds

env.time_rate(10)  # Runs clock 10x as fast

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants