Can I create a ROS2 service server in Simulink?

2 次查看(过去 30 天)
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
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 CenterFile Exchange 中查找有关 ROS 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