フィルターのクリア

How to improve ROS subscriber and publisher rate in Simulink

3 ビュー (過去 30 日間)
Zi Huang
Zi Huang 2020 年 2 月 5 日
回答済み: Pranav Murali 2020 年 3 月 20 日
I have three Subsriber-Publisher pairs in my simulink program. I noticed each Subsriber-Publiser pair took around at least 5 ms (much slower than I expected) processing time. So, it requries at least 15 ms for proicessing just the subscribing and publishing tasks with three Subsriber-Publiser pairs. This make my Simulink imposible to run at 100 Hz (I have real-time pacer on). Is there a way to work around this?

回答 (1 件)

Pranav Murali
Pranav Murali 2020 年 3 月 20 日
Hi Zi,
I see that you are creating three publisher-subscriber pairs on ROS and they take more time to process than the desired working time of the model. Generally, it shouldn’t take that long. To analyze what is causing the delay, I’ll require more information. If possible, please share your model or provide information regarding the message types, topics and any other processing block/s being used.

カテゴリ

Help Center および File ExchangeROS 2 Network Access in Simulink についてさらに検索

製品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by