Synchronise ROS with Simulink
2 次查看(过去 30 天)
显示 更早的评论
Hello,
is there any possibility to synchronise ROS and Simulink with the ROS time?
Thanks!
0 个评论
采纳的回答
Sebastian Castro
2015-10-26
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 个评论
Sebastian Castro
2015-10-27
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.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Publishers and Subscribers 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!