ROS2 subscribe IsNew output remains true even if no new messages are received

2 ビュー (過去 30 日間)
Callum
Callum 2023 年 2 月 23 日
コメント済み: Callum 2023 年 2 月 27 日
I am running a 2021b code generated simulink model in ubuntu and need to use the IsNew funcionality of the ROS2 subscribe blocks.
However, I am finding that intially the IsNew output is false, but as soon as a message is received on the topic, the output goes True and stays True even if no more messages are received. I have tried with different QoS settings with no change in behaviour.
Has anyone else run into this issue and has a solution/workaround?
Thanks

採用された回答

Josh Chen
Josh Chen 2023 年 2 月 24 日
Hello Callum,
This is a known issue in 2021b and earlier version of MATLAB. Please update your MATLAB to at least 2021b Update 4 from this Error bug report link and try to generate code again.
Best,
Josh

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSpecialized Messages についてさらに検索

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by