ROS 2 Node Generation and Deployment
Generate C/C++ and CUDA code for ROS 2 nodes and deploy to local and remote
hardware
ROS Toolbox enables you to generate C++ and CUDA® code for ROS 2 nodes, and deploy them to local or remote device targets. For MATLAB® code that contains ROS 2 interfaces, you can generate C++ code and deploy them as ROS nodes using MATLAB Coder™ (See Generate a Standalone ROS Node from MATLAB). For Simulink® models, you can generate C++ code using Simulink Coder (See Generate a Standalone ROS 2 Node from Simulink) or optimized CUDA code using GPU Coder™, and deploy them as ROS 2 nodes.
Functions
Topics
Deploy ROS 2 Nodes from MATLAB
- Configure MATLAB Coder for ROS 2 Node Generation
Configure MATLAB Coder configuration object for customizing ROS 2 Node generation.
Deploy CUDA optimized ROS 2 Nodes from MATLAB
- Generate CUDA ROS and CUDA ROS 2 Nodes Using MATLAB Coder and GPU Coder
Configure MATLAB® Coder™ software to generate and build CUDA® ROS and CUDA® ROS 2 nodes from a MATLAB function.
Deploy ROS 2 Nodes from Simulink
- Generate a Standalone ROS 2 Node from Simulink
This example shows you how to generate and build a standalone ROS 2 node from a Simulink® model. - Generate Code to Manually Deploy a ROS 2 Node from Simulink
This example shows you how to generate C++ code from a Simulink® model to deploy as a standalone ROS 2 node.
Deploy CUDA optimized ROS 2 Nodes from Simulink
- Generate CUDA ROS 2 Node from Simulink
Configure Simulink® Coder™ to generate and build a CUDA® ROS 2 node from a Simulink model.
Applications
- Automated Parking Valet with ROS 2 in Simulink
This example shows how to distribute the Automated Parking Valet application among various nodes in a ROS 2 network in Simulink® and deploy them as standalone ROS 2 nodes.