felixdivo / ros2-easy-test

A Python test framework for ROS2 allowing simple and expressive assertions based on message interactions.
https://ros2-easy-test.readthedocs.io
MIT License
15 stars 5 forks source link

Add simple methods to modify the ROS time #10

Open felixdivo opened 1 year ago

felixdivo commented 1 year ago

Useful features would be:

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

felixdivo commented 1 year ago

Useful resources:

Timple commented 6 months ago

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