I need a way to match Simulink time to ROS time for my co-simulation. The joystick commands I send via Simulink match ROS time in real-time exactly, but the Simulink clock time is of course important for all kinds of timing in the model. I don’t think the model is too large or complex to be slowing everything down since when I run it using a Simulink plant model, everything is super fast. Now I wish to simulate a few things that need precise time matching.
Could you please help me to figure out why the ROS model is slow? And perhaps how to solve this issue?