"Included launch description missing required argument" in ROS 2: launch_arguments, .items(), argument leaks, typos and booleans, measured
[INFO] [launch]: Default logging verbosity is set to INFO
[ERROR] [launch]: Caught exception in launch (see debug for traceback): Included launch description missing required argument 'x' (description: 'the x value'), given: []
The process exits with code 1. You get this exact text in two situations: you ran a launch file with a required argument and didn't set it, or a parent file included that file and didn't pass the argument. The word "Included" shows up in both cases. When you run a file directly, ros2 launch still includes it internally.
Short answer: a DeclareLaunchArgument with no default_value only counts as given when the IncludeLaunchDescription that loads its file passes it in launch_arguments. The parent declaring the same name doesn't count, and neither does putting x:=... on the command line of the parent. Pass it explicitly:
IncludeLaunchDescription(
PythonLaunchDescriptionSource(child_path),
launch_arguments={'x': LaunchConfiguration('x')}.items(), # .items() is required
)
In XML, put an <arg name="x" value="..."/> inside the <include>. Both forms worked on Humble, Jazzy and Lyrical. Optional arguments behave the other way round. An argument that has a default quietly picks up whatever value the parent or the command line already set, even when nobody passed it. Most of the surprises below come from those two rules.

Find your error
Every row behaved the same on all three distros unless the row says otherwise. Exit codes are from ros2 launch.
| What you did | What you got |
|---|---|
Ran a file with a required x, no x:= |
Included launch description missing required argument 'x' (description: 'the x value'), given: [], exit 1 |
Same, from an XML (<arg name="x"/>) or YAML launch file |
Same text, exit 1 |
Parent includes the child without launch_arguments |
Same text, exit 1 |
Same parent, run with x:=cli |
Same text, given: [], exit 1 |
Parent declares x with a default, includes the child without passing it |
Same text, exit 1 |
Wrong case on the CLI: X:=1 for x |
Same text, but given: [X], exit 1 |
launch_arguments={'x': 'from_dict'} (no .items()), child arg required |
Humble, Jazzy: 'NoneType' object is not iterable. Lyrical: Included launch description missing required argument 'x' ... given: []. Exit 1 |
Same dict without .items(), child arg has a default |
not enough values to unpack (expected 2, got 1), exit 1 |
launch_arguments={'x': 5}.items() (an int) |
'int' object is not iterable, exit 1 |
use_sim_tme:=true (typo) for use_sim_time |
No error, no warning, exit 0. use_sim_time stayed false |
IfCondition on yes or on |
invalid condition expression, expected one of [true, 1, false, 0] but got 'yes', expanded from '<launch.substitutions.launch_configuration.LaunchConfiguration object at 0x...>', exit 1 |
The given: [...] list is not a list of the values the child can see. With x:=cli on the parent it was empty, and with the misspelled X:=1 it showed X. So don't read an empty list as "my CLI argument never arrived". It only tells you what the include itself passed.
What I ran
On 2026-10-31 I used the official ros:humble-ros-base, ros:jazzy-ros-base and ros:lyrical-ros-base Docker images. I built one ament_cmake package that installs only launch files and a tiny Python node. The core pieces:
child.launch.py:DeclareLaunchArgument('x', description='the x value')with no default, thenLogInfoprintsx. The same inchild.launch.xmlandchild.launch.yaml.- Parents that include it with no arguments, with
{...}.items(), with a list of tuples, with a bare dict, with an int value, and withLaunchConfiguration('x'). child_y.launch.py: declaresy(defaultchild_default) andz(defaultchild_z), and printsyand an undeclaredu. Parents declarey(defaultparent_default), include it plainly, insideGroupAction(scoped=True), and insideGroupAction(scoped=True, forwarding=False), then printzafter the include.bool.launch.py: one argumentbused inIfCondition,UnlessCondition, and as the node parameterflag. The node prints the parameter's value and type.
I ran 44 ros2 launch commands per distro, one distro after another. The results were the same on all three except for the bare-dict error and one warning on Lyrical (see Version notes).
Required arguments are checked against launch_arguments only
This is the case behind most "missing required argument" questions. My parent file declared x with a default of parent_x and included the child without passing anything. It failed. Running the bare parent with x:=cli also failed. The required check only looks at what the include passes, so both values were invisible to it. The same thing is reported in ros2/launch#907 and ros2/launch#749, both still open.
Passing it explicitly fixed every case:
| Parent passes | Child printed |
|---|---|
launch_arguments={'x': 'from_items'}.items() |
CHILD x=from_items |
launch_arguments=[('x', 'from_tuples')] |
CHILD x=from_tuples |
{'x': LaunchConfiguration('x')}.items(), parent declares x, run with x:=cli |
CHILD x=cli |
XML <include> with <arg name="x" value="from_xml"/> |
CHILD x=from_xml |
{'x': 'from_items'}.items(), run with x:=cli |
CHILD x=from_items |
The last row matters. A value written into launch_arguments beats the command line. If you want the user to be able to override it, pass LaunchConfiguration('x') and declare x in the parent, as in the third row.
launch_arguments needs pairs
The launch_arguments doesn't work question uses .items() correctly, and the code samples you copy from usually do too. But if you drop .items(), the error doesn't mention it. Iterating a dict gives only the keys, and launch expects (name, value) pairs. What you see depends on the child and the distro:
- Child argument required, Humble or Jazzy:
'NoneType' object is not iterable. Withros2 launch -dthe traceback ends inlaunch/actions/include_launch_description.pyatargument_names.extend(ild_action._try_get_arguments_names_without_context()). - Child argument required, Lyrical: the normal
missing required argument 'x'message withgiven: []. That makes it look like you never passed anything. - Child argument has a default, all three:
not enough values to unpack (expected 2, got 1).
A list of tuples works the same as .items(). Values have to be strings or substitutions. An int ({'x': 5}.items()) failed with 'int' object is not iterable. Write '5' or str(5).
Optional arguments leak in both directions
The launch argument scope when nesting launch files question and ros2/launch#689 both describe values crossing file boundaries. I measured it with child_y.launch.py. Here's what the child printed for y and u, and what the parent printed for z after the include:
| Include style | CLI | Child y |
Child u |
Parent z after |
|---|---|---|---|---|
Plain IncludeLaunchDescription |
none | parent_default |
u_unset |
child_z |
| Plain | y:=cli_y u:=cli_u |
cli_y |
cli_u |
child_z |
GroupAction(scoped=True) |
none | parent_default |
u_unset |
z_unset |
GroupAction(scoped=True) |
y:=cli_y u:=cli_u |
cli_y |
cli_u |
z_unset |
scoped=True, forwarding=False |
none | child_default |
u_unset |
z_unset |
scoped=True, forwarding=False |
y:=cli_y u:=cli_u |
child_default |
u_unset |
z_unset |
forwarding=False, launch_configurations={'y': 'via_group'} |
none | via_group |
u_unset |
z_unset |
Three things follow from this:
- Down: a parent's value overrides the child's
default_value. The child's default is only used when nothing above it set the name. A CLI value even reachedu, which neither file declared. - Up: with a plain include, the child's declared
zwas still set in the parent afterwards.GroupAction(scoped=True)stopped that and nothing else. - Isolation: only
forwarding=Falsestopped values from flowing down, and then the CLI values didn't reach the child either.launch_configurations={...}on the sameGroupActionis how you pass selected values through.
A required argument behind forwarding=False still needs explicit passing. The parent declared x, and the child inside the non-forwarding group failed with the usual missing required argument 'x'. The XML case in #689, where the child has no <arg> at all and still sees the parent's value, matches the plain-include rows above. I measured it with Python launch files, not that exact XML pair.
A misspelled argument is silently ignored
ros2 launch larg sim.launch.py use_sim_tme:=true exited 0 with no warning. The file printed SIM use_sim_time=false, its default. ros2 launch accepted the unknown name and set a configuration nobody reads. The spelling only gets checked when the misspelled name leaves a required argument unset. Then you see the stray name in given:, as with X:=1. Argument names are case-sensitive. To catch typos, run --show-args first and compare the names.
Parameter files are stricter than launch arguments: a malformed params YAML stops the node instead, with Failed to parse global arguments.
LaunchConfiguration default vs DeclareLaunchArgument default
I declared w with default_value='from_declare' and read it with LaunchConfiguration('w', default='from_lc_default') once before the declaration and once after it:
| Run | Read before declare | Read after declare | Undeclared v with default='from_lc_only' |
|---|---|---|---|
| no CLI | from_lc_default |
from_declare |
from_lc_only |
w:=cli |
cli |
cli |
from_lc_only |
The order is CLI, then DeclareLaunchArgument default, then the LaunchConfiguration default. But the declare default only applies once that action has run, so the position in the list matters. The LaunchConfiguration default is a fallback for "not set yet". It isn't an argument, and --show-args doesn't know about it:
$ ros2 launch larg defaults.launch.py --show-args
Arguments (pass arguments as '<name>:=<value>'):
'w':
w arg
(default: 'from_declare')
v isn't listed. A required argument is listed with no (default: ...) line. --show-args on a parent also lists the arguments of the files it includes. For the parent that includes the required-x child without passing it, the output listed 'x' as if you could set it from the command line, and setting it there still failed. That's the question in what is different between DeclareLaunchArgument and LaunchConfiguration. Both read the same value, but only the declaration makes it an argument.
Boolean strings
b:= |
IfCondition |
parameters=[{'flag': LaunchConfiguration('b')}] |
ParameterValue(..., value_type=str) |
|---|---|---|---|
true, True, TRUE |
taken | True, BOOL |
STRING, text kept |
1 |
taken | 1, INTEGER |
STRING '1' |
false, False |
not taken (UnlessCondition taken) |
False, BOOL |
STRING, text kept |
0 |
not taken | 0, INTEGER |
STRING '0' |
yes, on |
launch aborts, exit 1 | never started | never started |
IfCondition ignores case for true and false and accepts 1 and 0. As a node parameter, 1 doesn't become a bool. It arrives as an INTEGER, so a node that declared flag as a bool would reject it. Use true or false for anything that ends up as a parameter. For the related problem of numbers arriving as strings, see LaunchConfiguration value as int.
Fix options compared
| Fix | Result in my run | Catch |
|---|---|---|
Pass launch_arguments={'x': LaunchConfiguration('x')}.items() and declare x in the parent |
Worked, CLI x:=cli reached the child |
The parent needs its own DeclareLaunchArgument to show it in --show-args |
Pass a fixed string in launch_arguments |
Worked | Overrides the CLI |
List of tuples instead of .items() |
Worked | None found |
Give the child argument a default_value |
Error gone | The child silently takes the parent's or CLI value with the same name |
XML <arg> inside <include> |
Worked | None found |
Declare x in the parent only |
Still failed | Doesn't satisfy the required check |
GroupAction(scoped=True, forwarding=False, launch_configurations={...}) |
Child saw only what was listed | Required args still need launch_arguments |
Version notes
The message text, exit codes, leak behavior, --show-args output and boolean handling matched on Humble (launch 1.0.15), Jazzy (launch 3.4.12) and Lyrical (launch 3.9.8). Two things differed:
- A bare dict in
launch_argumentswith a required child argument gave'NoneType' object is not iterableon Humble and Jazzy, andIncluded launch description missing required argument 'x' (description: 'the x value'), given: []on Lyrical. With-d, the error came frominclude_launch_description.pyline 171 (Humble), 229 (Jazzy) and 240 (Lyrical). - On Lyrical, the XML and YAML files using
<log message=.../>printedUserWarning: The action log now expects a log level. Either provide one or switch to using the log_info action. Humble and Jazzy printed nothing. It's only a warning, and the run continued.
Not tested
The exact XML-only case from #689 (child with no <arg>), ParameterValue(..., value_type=bool), OpaqueFunction and perform(), SetLaunchConfiguration, choices= on DeclareLaunchArgument, composable nodes, YAML or XML parents including XML children, Foxy, Iron and Rolling.
FAQ
Why does "Included launch description missing required argument" appear when I pass the argument on the command line?
Because the file that declares it is included by another launch file, and that include didn't pass it. In my run x:=cli on the parent didn't satisfy the child's required x. Add launch_arguments={'x': LaunchConfiguration('x')}.items() to the include and declare x in the parent.
What happens if I forget .items() on launch_arguments?
Launch gets the dict's keys instead of name and value pairs. On Humble and Jazzy that gave 'NoneType' object is not iterable. On Lyrical it gave the missing required argument error. When the child argument had a default, all three gave not enough values to unpack (expected 2, got 1).
Do launch arguments from the parent leak into included files?
Yes. A parent or CLI value overrode the child's default_value, and the child's declared values were visible in the parent after a plain include. GroupAction(scoped=True) stopped the upward leak only. forwarding=False stopped the downward one too.
Does ros2 launch warn about a misspelled argument name?
No. use_sim_tme:=true exited 0 with no message, and use_sim_time kept its default false. Check names with --show-args.
Which strings count as true for IfCondition?
true, True, TRUE and 1. yes and on aborted the launch with invalid condition expression. As a node parameter, 1 became an INTEGER, not a bool.
Measured on 2026-10-31 with ros:humble-ros-base (sha256:d9bcf2e6f72d..., launch 1.0.15, launch_ros 0.19.14, ros2cli 0.18.20, rclpy 3.3.22, rclcpp 16.0.21, rmw 6.1.4), ros:jazzy-ros-base (sha256:8eed0a4669bb..., launch 3.4.12, launch_ros 0.26.13, ros2cli 0.32.13, rclpy 7.1.12, rclcpp 28.1.22, rmw 7.3.4) and ros:lyrical-ros-base (sha256:3224ee150cb0..., launch 3.9.8, launch_ros 0.29.9, ros2cli 0.40.9, rclpy 10.0.11, rclcpp 32.0.3, rmw 7.10.2), default RMW. Full digests are in digests.txt.
Script and raw output: evidence folder. Questions this answers: Python launch argument scope when nesting launch files, Launch_arguments doesn't work, what is different between DeclareLaunchArgument and LaunchConfiguration, XML launch include can pass implicit arguments, Include required arguments passed from commandline are not recognized, Bug when setting launch arguments of included descriptions.