MATLAB: Synchronise ROS with Simulink

Robotics System Toolboxrossimulinksynchronise

Hello,
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 a real-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?
- Sebastian