This project relies on ROS Toolbox functionality to provide basic integration of Simulink® targets, with focus on Simulink Real-Time™ and Speedgoat®, into ROS/ROS2 networks via message serialization. The project leverages existing API from the ROS Toolbox in some MATLAB® System blocks to process ROS/ROS2 messages over UDP or Serial communication.
The project contains a small set of Serialize and De-Serialize blocks in a library together with some simple model examples.
Requires MATLAB release R2020b or newer.
- MATLAB
- Simulink
- ROS Toolbox
- Instrument Control Toolbox™ (optional)
- Simulink Real-Time (optional)
- Start the Simulink project
ROSMessageSerializer.prj
. - ROS/ROS2 (De-)Serializer blocks will be added to the Simulink library, available via the library browser or the Simulink block search.
- Open any Simulink model example located in the
examples
folder and get familiar with different set-ups.
To learn how to use this in testing workflows, see the included examples.
The license is available in the License file within this repository.
Copyright 2022 The MathWorks, Inc.