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!