is there any possibility to synchronise ROS and Simulink with the ROS time?
Thanks!
Best Answer
What exactly do you mean by this?
There's areal-time pacer block on the File Exchange, which is very common for Simulink-ROS desktop applications.
This block will essentially slow down your Simulink model using your host CPU clock; otherwise, Simulink will just run as fast as it can. Hopefully that was your problem and I understood it correctly?
It is not possible to read data out of ROS 2 bag databases using R2020b. There is a lot of focus on ROS 2 now though, so keep an eye on future releases for this feature.
EDIT: Sorry, the above is for MATLAB -- didn't notice your Simulink tag. You can download this block which slows down your model to the same "soft" (CPU clock) real-time.
Best Answer