ROS 2 Standard Node Generation and Deployment
Standard nodes are the most basic type of ROS 2 nodes. They are easy to implement and have these characteristics:
- They operate independently and run in their own process. 
- They have their own - mainfunction.
- They are deployed as executables along with their C++ code packages. 
Because standard nodes run in independent processes, they may require higher computational resources and have more inter-process communication overhead time. If you are looking for a more computationally efficient way of managing a ROS 2 application with a large number of nodes, consider using ROS 2 component nodes. For more information about generating and deploying ROS 2 component nodes, see ROS 2 Component Node Generation and Deployment.
You can generate ROS 2 standard nodes from both MATLAB® and Simulink®. You can also generate CUDA® optimized code for the standard ROS 2 nodes from both MATLAB and Simulink.
Note
Deployment of ROS 2 nodes requires transfer of files to the target ROS 2 device through an SSH connection. Ensure that OpenSSH is installed on the target ROS 2 device before deployment.
Functions
Topics
Generate and Deploy ROS 2 Standard Nodes from MATLAB
- Generate Standalone ROS 2 Node from MATLAB Function
 Generate C++ code for a standalone ROS 2 node from a MATLAB function.
- Configure MATLAB Coder for ROS 2 Node Generation
 Configure MATLAB Coder™ configuration object for customizing ROS 2 Node generation.
- Generate CUDA ROS and CUDA ROS 2 Nodes Using MATLAB Coder and GPU Coder
 Generate and build CUDA ROS and CUDA ROS 2 nodes from a MATLAB function.
- Lane Detection in ROS 2 Using Deep Learning with MATLAB
 Generate CUDA optimized ROS 2 node for deep learning based lane detection algorithm.
Generate and Deploy ROS 2 Standard Nodes from Simulink
- Generate Standalone ROS 2 Node from Simulink
 Generate and build a standalone ROS 2 node from a Simulink model.
- Generate CUDA ROS 2 Node from Simulink
 Configure Simulink Coder to generate and build a CUDA ROS 2 node from a Simulink model.
- Generate Code to Manually Deploy ROS 2 Node from Simulink
 Generate C++ code from a Simulink model to deploy as a standalone ROS 2 node.
- Generate ROS or ROS 2 Packages for Model Reference Hierarchy in Simulink
 Model references in Simulink enable modular development and code reuse in large components.
- Automated Parking Valet with ROS 2 in Simulink
 Distribute an automated parking valet application among various nodes in a ROS 2 network in Simulink.