ROS Action Client Block

版本 1.0.4 (268.0 KB) 作者: SMEAC
Demonstration of Setting up a ROS Action Client Block in Simulink
81.0 次下载
更新时间 2019/12/8

查看许可证

This Small Model shows how to setup Simulink Publisher and Subscribers in the correct format in order to be able to properlz communicate with a ROS Action Server.

In order to use the model, the following steps need to be performed:
1. Move the motion_controller directory into your ROS Catkin Workspace and compile with catkin build or catkin_make.
2. Add the motion_controller messages (motion_controller.action) to the matlab custom messages, using:
https://de.mathworks.com/help/ros/ug/ros-custom-message-support.html
3. Start up the motion_controller robot simulator in a linux terminal or Windows Sub-system for Linux Terminal with:
> rosrun motion_controller motion_controller_test_simulator
4. Start up the motion_controller action server with:
> rosrun motion_controller motion_controller
5. Start the Matlab Simulink Model, and see the robot move to the action goal.

Note: Presently the waitForServer Command is not working, and is commented out. Anyone who has suggestions on an efficient way to code this is much appreciated.

引用格式

SMEAC (2024). ROS Action Client Block (https://www.mathworks.com/matlabcentral/fileexchange/73602-ros-action-client-block), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R2018b
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 ROS Network Access in Simulink 的更多信息

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.0.4

Additional Stateflow Model showing use of Block external to Stateflow

1.0.3

Added Goal Cancel input to block

1.0.2

Add comment to waitForServer

1.0.1

All files did not upload

1.0.0