ros node generation and deployment -凯发k8网页登录
generate c/c and cuda code for ros nodes and deploy to local and remote
hardware
ros toolbox enables you to generate c and cuda® code for ros nodes, and deploy them to local or remote device targets. for matlab® code that contains ros interfaces, you can generate c code and deploy them as ros nodes using matlab coder™ (see ). for simulink® models, you can generate c code using simulink coder (see ) or optimized cuda code using gpu coder™, and deploy them as ros nodes.
note
deployment of ros nodes requires transfer of files to the target ros device through an ssh connection. ensure that openssh is installed on the target ros device before deployment.
functions
blocks
topics
deploy ros nodes from matlab
recommended workflow for generating a standalone executable from matlab code that contains ros interfaces.
generate c code for a standalone ros node from a matlab function.
configure matlab coder configuration object for customizing ros node generation.
deploy cuda optimized ros nodes from matlab
generate and build cuda ros and cuda ros 2 nodes from a matlabfunction.
deploy ros nodes from simulink
generate and build a standalone ros node from a simulink model.
external mode enables simulink on your host computer to communicate with a deployed model on your robotics hardware during runtime.
this example shows you how to generate c code from a simulink model to deploy as a standalone ros node.
deploy cuda optimized ros nodes from simulink
configure simulink coder to generate and build a cuda ros node from a simulink model.
use deep convolutional neural networks inside a ros enabled simulink model to perform lane and vehicle detection.
use simulink to control a simulated robot running on a separate ros-based simulator and generate cuda-optimized code for the ros node, from the simulink model, and deploy it to the localhost device.
applications
distribute an automated parking valet application among various nodes in a ros network in simulink.
use matlab code generation to create a ros node to move a uav along a predefined circular path and a set of specified custom waypoints.- generate a ros control plugin from simulink®
generate and build aros_control
plugin from a simulink model.
this example shows how to use simulink® to generate a ros stepping enabled node and control a simulated robot running on a separate ros-based simulator.