Can I create a ROS2 service server in Simulink?
1 view (last 30 days)
Show older comments
MathWorks Support Team
on 29 May 2023
Answered: MathWorks Support Team
on 29 May 2023
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)
Accepted Answer
MathWorks Support Team
on 29 May 2023
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 Comments
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!