Synchronise ROS with Simulink
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
JR
am 26 Okt. 2015
Kommentiert: Sebastian Castro
am 27 Okt. 2015
Hello,
is there any possibility to synchronise ROS and Simulink with the ROS time?
Thanks!
0 Kommentare
Akzeptierte Antwort
Sebastian Castro
am 26 Okt. 2015
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
2 Kommentare
Sebastian Castro
am 27 Okt. 2015
I see.
Well, you could subscribe to the /clock topic and grab the times from there (or otherwise grab them from the timestamp data of any other message coming in).
You can use that in a Triggered Subsystem. This subsystem will execute only when its control signal is triggered; for example, when the ROS clock time exceeds some value.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Publishers and Subscribers finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!