ROS2 one shot timer (python)
Hi, I'm trying to achieve a simple one shot timer function that is restarted each time with a different interval (for some playback function), but do not find any information about how to achieve that. Timer does not take any oneshot flag anymore, and It seems that no sleep function has been implemented yet, in case I'd like to replace my timer by a while loop.
Cannot use other python sleep functions, since I'd like to use the simulated time function (I know, i'm asking a lot).
Is there a proper way to achieve that ?
NB: I've found the create_jump_callback but I'm not exactly sure what it is supposed to be used for.
All the best,
NB2 : some forum messages mention Duration as well, but the only duration I found had no sleep method either