Can I create a ROS2 service server in Simulink?

1 回表示 (過去 30 日間)
MathWorks Support Team
MathWorks Support Team 2023 年 5 月 29 日
回答済み: MathWorks Support Team 2023 年 5 月 29 日
I found the 'ros2svcserver' function in MATLAB, but couldn't find an equivalent Simulink block.
Is there any way to create a ROS service server in Simulink? (R2023a)

採用された回答

MathWorks Support Team
MathWorks Support Team 2023 年 5 月 29 日
Currently, we are providing only Service Client block, not a Service Server block for ROS2 in Simulink.
https://www.mathworks.com/help/ros/ref/callserviceros2.html
As workarounds, you can use 'ros2svcserver' in MATLAB, or implement similar behavior by using ROS publisher/subscriber and its 'isNew' port.

その他の回答 (0 件)

カテゴリ

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

タグ

タグが未入力です。

製品


リリース

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by