- Sample time of the model
- Size of the message data.
- Number of publishers in the model
simulink ros2 generated node rate
7 ビュー (過去 30 日間)
古いコメントを表示
Hi all,
I'm using ROS toolbox with matlab 2022a, ros2 foxy and cyclonedds rmw all on ubuntu 20.04.
I created a simple publisher node model within Simulink which publish some message each iteration.
When I generate ros2 node from the Simulink model I set my model's solver type as fix-step with some fixed-time step, which I assume to be the working frequency of the generated ros2 node.
After the node is generated I run it but the publish rate is way faster than I set on the fixed-time step configuration of the model.
Am I missing some settings of the code-generation that controls the working rate of the node?
Thanks,
Iftach.
3 件のコメント
回答 (1 件)
Jagadeesh Konakalla
2022 年 11 月 4 日
It seem that this issue will be solved with the new updates of 2022b, especially the loop rate conrtol with ROS2 Time object.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Specialized Messages についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!