Skip to content

Commit b66e5c6

Browse files
Allow for multiple controller-ros-args arguments in spawner.py (#2150)
1 parent c0bd909 commit b66e5c6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

controller_manager/controller_manager/spawner.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,10 @@ def main(args=None):
148148
)
149149
parser.add_argument(
150150
"--controller-ros-args",
151-
help="The --ros-args to be passed to the controller node for remapping topics etc",
151+
help="The --ros-args to be passed to the controller node, e.g., for remapping topics. "
152+
"Pass multiple times for every argument.",
152153
default=None,
154+
action="append",
153155
required=False,
154156
)
155157

@@ -216,7 +218,7 @@ def main(args=None):
216218
controller_manager_name,
217219
controller_name,
218220
"node_options_args",
219-
controller_ros_args.split(),
221+
[arg for args in controller_ros_args for arg in args.split()],
220222
):
221223
return 1
222224
if param_files:

0 commit comments

Comments
 (0)