[Documentation] [TitleIndex] [WordIndex

<arg> tag

New in C Turtle

Introduction

The <arg> tag allows you to create more re-usable and configurable launch files by specifying values that are passed via the command-line, passing in via an <include>, or declared for higher-level files. Args are not global. An arg declaration is specific to a single launch file, much like a local parameter in a method. You must explicitly pass arg values to an included file, much like you would in a method call.

Usecase pattern

<arg> can be used in one of three ways:

Attributes

Examples

Passing an argument to an included file

Passing an argument via the command-line

roslaunch uses the same syntax as ROS remapping arguments to specify arg values.


2024-11-30 17:52