代码生成和部署
为ROS节点生成C/C ++和CUDA代码,并部署到本地和远程硬件
ROS Toolbox使您能够生成C ++和CUDA®code for ROS nodes, and deploy them to local or remote device targets. For MATLAB®包含ROS接口的代码,您可以生成C ++代码并使用ROS节点部署它们MATLAB Coder™(See从MATLAB®生成独立的ROS节点). For Simulink®模型,您可以使用Simulink Coder(SeeGenerate a Standalone ROS Node from Simulink®) or optimized CUDA code using GPU Coder™, and deploy them as ROS nodes.
Functions
Topics
Deploy ROS Nodes from MATLAB
- MATLAB Programming for Code Generation
This example shows the recommended workflow for generating a standalone executable from MATLAB® code that contains ROS interfaces. - 从MATLAB®生成独立的ROS节点
This example shows how to generate C++ code for a standalone ROS node from a MATLAB function. - 配置MATLAB Coder for ROS Node Generation
配置MATLAB Coder用于自定义ROS节点生成的配置对象。
Deploy ROS Nodes from Simulink
- Generate a Standalone ROS Node from Simulink®
This example shows you how to generate and build a standalone ROS node from a Simulink model. - Enable External Mode for ROS Toolbox Models
External mode enables Simulink on your host computer to communicate with a deployed model on your robotics hardware during runtime. - Generate Code to Manually Deploy a ROS Node from Simulink
This example shows you how to generate C++ code from a Simulink model to deploy as a standalone ROS node.
Deploy ROS 2 Nodes from MATLAB
- 配置MATLAB编码器ROS 2节点生成
配置MATLAB Coderconfiguration object for customizing ROS 2 Node generation.
Deploy ROS 2 Nodes from Simulink
- 从Simulink®生成独立的ROS 2节点万博1manbetx
This example shows you how to generate and build a standalone ROS 2 node from a Simulink® model. - 生成代码以手动部署Simulink®的ROS 2节点万博1manbetx
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 Nodes from Simulink
- 从simulink生成cuda ros节点万博1manbetx
配置Simulink® Coder™ to generate and build a CUDA® ROS node from a Simulink model. - Lane and Vehicle Detection in ROS Using YOLO v2 Deep Learning Algorithm
This example shows how to use deep convolutional neural networks inside a ROS enabled Simulink® model to perform lane and vehicle detection. - 使用yolov2检测算法的机器人在simulink中使用yolov2检测算法的签名万博1manbetx
此示例显示了如何使用Simulink®控制在单独的基于ROS万博1manbetx的模拟器上运行的模拟机器人。
Deploy CUDA optimized ROS 2 Nodes from Simulink
- Generate CUDA ROS 2 Node from Simulink
配置Simulink® Coder™ to generate and build a CUDA® ROS 2 node from a Simulink model.
Applications
- Automated Parking Valet with ROS in Simulink
在Simulink®的ROS网络中的各个节点之间分发自动停车代客申请。万博1manbetx - 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. - 生成无人机Waypoint追随者的ROS节点
This example shows how to use MATLAB® code generation to create a ROS node to move an unmanned aerial vehicle (UAV) along a predefined circular path and a set of specified custom waypoints. - 从Simulink®生成ROS控制插件万博1manbetx
This example shows how to generate and build a ros_control plugin from a Simulink model.