diff --git a/controller_manager/src/controller_manager.cpp b/controller_manager/src/controller_manager.cpp index 256d2e4d97..2893e464ec 100644 --- a/controller_manager/src/controller_manager.cpp +++ b/controller_manager/src/controller_manager.cpp @@ -2876,9 +2876,9 @@ rclcpp::NodeOptions ControllerManager::determine_controller_node_options( // Add options parsed through the spawner if ( !controller.info.node_options_args.empty() && - !check_for_element(controller.info.node_options_args, ros_args_arg)) + !check_for_element(controller.info.node_options_args, RCL_ROS_ARGS_FLAG) { - node_options_arguments.push_back(ros_args_arg); + node_options_arguments.push_back(RCL_ROS_ARGS_FLAG); } for (const auto & arg : controller.info.node_options_args) {