Skip to content

Commit

Permalink
Use the consexpr for --ros-args
Browse files Browse the repository at this point in the history
  • Loading branch information
saikishor committed Aug 24, 2024
1 parent 2ce01eb commit 3624fcd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions controller_manager/src/controller_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 3624fcd

Please sign in to comment.