Getting Started with ROS on Embedded Systems - User Guide - C++ - Launch files
Getting Started with ROS on Embedded Systems RidgeRun documentation is currently under development. |
Getting Started with ROS on Embedded Systems |
---|
ROS on Embedded Systems Basics |
Getting Started |
C++ User Guide |
Examples |
Basic pipelines |
Performance |
Xavier |
Contact Us |
Introduction
This wiki is based on the following page:
ROS launch files are files that can be used to deploy a set of nodes and topics, this allows for a docker-compose like launch. That enables developers to launch and configure multiple nodes at the same time. These files can come in different formats:
- Python
- XML
- YAML
Examples
Simple launch file with parameter loading
<launch> <node pkg="turtlesim" exec="turtlesim_node" name="sim" namespace="turtlesim1"/> <node pkg="turtlesim" exec="turtlesim_node" name="sim" namespace="turtlesim2"/> <node pkg="turtlesim" exec="mimic" name="mimic"> <remap from="/input/pose" to="/turtlesim1/turtle1/pose"/> <remap from="/output/cmd_vel" to="/turtlesim2/turtle1/cmd_vel"/> </node> </launch>
This file is made from a number of node values, these nodes reference a package and an specific node from it. Also with it you can also control the namespace value, to allow multiple nodes with the same base topic name and discussed before on the topics section. You also can control and modify the subscription topics with the remap key.