Package symbol

autoware_command_gate package from autoware_core repo

autoware_adapi_adaptors autoware_adapi_specs autoware_core_api autoware_default_adapi autoware_core autoware_agnocast_wrapper autoware_component_interface_admission autoware_component_interface_specs autoware_component_interface_utils autoware_geography_utils autoware_global_parameter_loader autoware_interface_spec_lint autoware_interpolation autoware_kalman_filter autoware_lanelet2_utils autoware_marker_utils autoware_motion_utils autoware_node autoware_object_recognition_utils autoware_osqp_interface autoware_point_types autoware_qos_utils autoware_qp_interface autoware_signal_processing autoware_trajectory autoware_vehicle_info_utils autoware_command_gate autoware_core_control autoware_simple_pure_pursuit autoware_awsim_sensor_kit_description autoware_sample_sensor_kit_description autoware_sample_vehicle_description autoware_core_localization autoware_ekf_localizer autoware_gyro_odometer autoware_localization_util autoware_ndt_scan_matcher autoware_pose_initializer autoware_stop_filter autoware_twist2accel autoware_core_map autoware_lanelet2_map_visualizer autoware_map_height_fitter autoware_map_loader autoware_map_projection_loader autoware_core_perception autoware_euclidean_cluster_object_detector autoware_ground_filter autoware_perception_objects_converter autoware_core_planning autoware_mission_planner autoware_objects_of_interest_marker_interface autoware_path_generator autoware_planning_factor_interface autoware_planning_test_manager autoware_planning_topic_converter autoware_route_handler autoware_velocity_smoother autoware_behavior_velocity_planner autoware_behavior_velocity_planner_common autoware_behavior_velocity_stop_line_module autoware_motion_velocity_obstacle_stop_module autoware_motion_velocity_planner autoware_motion_velocity_planner_common autoware_core_sensing autoware_crop_box_filter autoware_downsample_filters autoware_gnss_poser autoware_vehicle_velocity_converter autoware_pyplot autoware_test_node autoware_test_utils autoware_testing autoware_core_vehicle

ROS Distro
humble

Package Summary

Version 1.10.0
License Apache License 2.0
Build type AMENT_CMAKE
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/autowarefoundation/autoware_core.git
VCS Type git
VCS Version main
Last Updated 2026-10-07
Dev Status DEVELOPED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

Simple gateway that maps operation mode service calls to mode state and gear commands.

Maintainers

  • Junya Sasaki

Authors

No additional authors.

autoware_command_gate

A minimal gateway that exposes operation-mode change services and publishes matching state and gear commands.

Features

  • Services /api/operation_mode/change_to_stop and /api/operation_mode/change_to_autonomous (autoware_adapi_v1_msgs/srv/ChangeOperationMode).
  • Publishes /api/operation_mode/state (reliable, transient local QoS) and /control/command/gear_cmd on each service call.
  • STOP -> gear PARK; AUTONOMOUS -> gear DRIVE.

Build

colcon build --packages-select autoware_command_gate --symlink-install

Run

Launch as a node:

ros2 launch autoware_command_gate autoware_command_gate.launch.py

Or run directly:

ros2 run autoware_command_gate autoware_command_gate_exe

Interact

Call services (example from a sourced workspace):

ros2 service call /api/operation_mode/change_to_stop autoware_adapi_v1_msgs/srv/ChangeOperationMode "{}"
ros2 service call /api/operation_mode/change_to_autonomous autoware_adapi_v1_msgs/srv/ChangeOperationMode "{}"

Echo topics:

ros2 topic echo /api/operation_mode/state
ros2 topic echo /control/command/gear_cmd

Tests

Tests are grouped under the following directories:

  • Unit tests: test/unit
  • Integration tests: test/integration

Run all tests:

colcon test --packages-select autoware_command_gate --event-handlers console_direct+

CHANGELOG

Changelog for package autoware_command_gate

1.10.0 (2026-09-28)

  • Merge remote-tracking branch 'origin/main' into tmp/bot/bump_version_base

  • fix(control): declare the dependencies these packages use (#1368)

    * fix(control): declare the dependencies these packages use Each of these packages uses a package it never declares. Either it includes a header of that package, or it names a symbol of it while the header arrives through another dependency. Both build today only because some declared dependency re-exports the owner, so a change in an unrelated repository can break them without anything here changing. The tag follows where the dependency is used: a use in an installed header or in code compiled into the library takes <depend>, one reached only from test/ takes <test_depend>.

    * fix(autoware_command_gate): remove the unused rmw include and dependency autoware_command_gate.cpp includes <rmw/types.h> and uses no symbol from it. Remove the include instead of declaring rmw in package.xml. This removes the <depend>rmw</depend> entry that the previous commit added. ---------

  • refactor(autoware_command_gate): create endpoints through NodeAdaptor (#1328) This file redefined GearCommand as a local struct carrying only a message type and a name, duplicating a spec that already exists centrally with the same two values plus its QoS. Replace the local definition with an alias to the real spec, matching the three aliases beside it, and create all four endpoints through NodeAdaptor. No wire change: the central spec declares depth 1, reliable and volatile, which is what the hand-written rclcpp::QoS{1} at the gear publisher already resolved to.

  • Contributors: Mete Fatih Cırıt, Yutaka Kondo, github-actions

1.9.0 (2026-06-24)

  • chore: align package versions to 1.8.0 and reset changelogs

  • Merge remote-tracking branch 'origin/main' into tmp/bot/bump_version_base

  • refactor(autoware_command_gate): extract ROS-free mode dispatch helper (#1145)

    * refactor(autoware_command_gate): extract ROS-free mode dispatch helper Move the request-to-mode dispatch (switch on the requested operation mode and build the corresponding outputs) out of the node's service-callback lambda into a ROS-free static helper CommandGateModeBuilder::dispatch_mode, which returns std::optional<ModeOutputs> (std::nullopt for unknown/unsupported modes). This makes the dispatch and its only error path (unknown mode -> PARAMETER_ERROR) unit-testable with plain gtest, without spinning up rclcpp. Behavior is preserved: the node still publishes outputs and sets status.success/code/message on the happy path, and emits success=false with PARAMETER_ERROR on an unknown mode. Add unit tests for dispatch_mode covering all four valid modes and the previously untested unknown-mode nullopt branch. The public node API is unchanged; dispatch_mode is an additive static method. Refs: autowarefoundation/autoware_core#1096

    * refactor(autoware_command_gate): address review feedback Move autoware_system_msgs/srv/change_operation_mode include from the builder header to the .cpp where ChangeOperationMode::Request is used, decoupling includers from the service definition. Assert stamp propagation in DispatchModeAutonomous/Local/Remote tests by passing non-zero stamps and checking outputs->state.stamp. Refs: autowarefoundation/autoware_core#1096

    * refactor(autoware_command_gate): split mode-output and response builders (#80) Make the ChangeOperationMode service callback route through two pure message-in -> message-out builders: create_mode_output() builds the messages to publish (std::nullopt for unknown modes) and create_response() builds the service response. Both are ROS-node-free static functions that take the request, so they are unit-testable in isolation. Behavior is preserved; the publish-only ModeOutputs no longer carries response status. Refs: autowarefoundation/autoware_core#1096 ---------Co-authored-by: Junya Sasaki <<j2sasaki1990@gmail.com>>

  • feat: add [autoware_command_gate]{.title-ref} and its tests (#1012)

  • Contributors: Junya Sasaki, Yutaka Kondo, github-actions

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged autoware_command_gate at Robotics Stack Exchange

Package symbol

autoware_command_gate package from autoware_core repo

autoware_adapi_adaptors autoware_adapi_specs autoware_core_api autoware_default_adapi autoware_core autoware_agnocast_wrapper autoware_component_interface_admission autoware_component_interface_specs autoware_component_interface_utils autoware_geography_utils autoware_global_parameter_loader autoware_interface_spec_lint autoware_interpolation autoware_kalman_filter autoware_lanelet2_utils autoware_marker_utils autoware_motion_utils autoware_node autoware_object_recognition_utils autoware_osqp_interface autoware_point_types autoware_qos_utils autoware_qp_interface autoware_signal_processing autoware_trajectory autoware_vehicle_info_utils autoware_command_gate autoware_core_control autoware_simple_pure_pursuit autoware_awsim_sensor_kit_description autoware_sample_sensor_kit_description autoware_sample_vehicle_description autoware_core_localization autoware_ekf_localizer autoware_gyro_odometer autoware_localization_util autoware_ndt_scan_matcher autoware_pose_initializer autoware_stop_filter autoware_twist2accel autoware_core_map autoware_lanelet2_map_visualizer autoware_map_height_fitter autoware_map_loader autoware_map_projection_loader autoware_core_perception autoware_euclidean_cluster_object_detector autoware_ground_filter autoware_perception_objects_converter autoware_core_planning autoware_mission_planner autoware_objects_of_interest_marker_interface autoware_path_generator autoware_planning_factor_interface autoware_planning_test_manager autoware_planning_topic_converter autoware_route_handler autoware_velocity_smoother autoware_behavior_velocity_planner autoware_behavior_velocity_planner_common autoware_behavior_velocity_stop_line_module autoware_motion_velocity_obstacle_stop_module autoware_motion_velocity_planner autoware_motion_velocity_planner_common autoware_core_sensing autoware_crop_box_filter autoware_downsample_filters autoware_gnss_poser autoware_vehicle_velocity_converter autoware_pyplot autoware_test_node autoware_test_utils autoware_testing autoware_core_vehicle

ROS Distro
jazzy

Package Summary

Version 1.10.0
License Apache License 2.0
Build type AMENT_CMAKE
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/autowarefoundation/autoware_core.git
VCS Type git
VCS Version main
Last Updated 2026-10-07
Dev Status DEVELOPED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

Simple gateway that maps operation mode service calls to mode state and gear commands.

Maintainers

  • Junya Sasaki

Authors

No additional authors.

autoware_command_gate

A minimal gateway that exposes operation-mode change services and publishes matching state and gear commands.

Features

  • Services /api/operation_mode/change_to_stop and /api/operation_mode/change_to_autonomous (autoware_adapi_v1_msgs/srv/ChangeOperationMode).
  • Publishes /api/operation_mode/state (reliable, transient local QoS) and /control/command/gear_cmd on each service call.
  • STOP -> gear PARK; AUTONOMOUS -> gear DRIVE.

Build

colcon build --packages-select autoware_command_gate --symlink-install

Run

Launch as a node:

ros2 launch autoware_command_gate autoware_command_gate.launch.py

Or run directly:

ros2 run autoware_command_gate autoware_command_gate_exe

Interact

Call services (example from a sourced workspace):

ros2 service call /api/operation_mode/change_to_stop autoware_adapi_v1_msgs/srv/ChangeOperationMode "{}"
ros2 service call /api/operation_mode/change_to_autonomous autoware_adapi_v1_msgs/srv/ChangeOperationMode "{}"

Echo topics:

ros2 topic echo /api/operation_mode/state
ros2 topic echo /control/command/gear_cmd

Tests

Tests are grouped under the following directories:

  • Unit tests: test/unit
  • Integration tests: test/integration

Run all tests:

colcon test --packages-select autoware_command_gate --event-handlers console_direct+

CHANGELOG

Changelog for package autoware_command_gate

1.10.0 (2026-09-28)

  • Merge remote-tracking branch 'origin/main' into tmp/bot/bump_version_base

  • fix(control): declare the dependencies these packages use (#1368)

    * fix(control): declare the dependencies these packages use Each of these packages uses a package it never declares. Either it includes a header of that package, or it names a symbol of it while the header arrives through another dependency. Both build today only because some declared dependency re-exports the owner, so a change in an unrelated repository can break them without anything here changing. The tag follows where the dependency is used: a use in an installed header or in code compiled into the library takes <depend>, one reached only from test/ takes <test_depend>.

    * fix(autoware_command_gate): remove the unused rmw include and dependency autoware_command_gate.cpp includes <rmw/types.h> and uses no symbol from it. Remove the include instead of declaring rmw in package.xml. This removes the <depend>rmw</depend> entry that the previous commit added. ---------

  • refactor(autoware_command_gate): create endpoints through NodeAdaptor (#1328) This file redefined GearCommand as a local struct carrying only a message type and a name, duplicating a spec that already exists centrally with the same two values plus its QoS. Replace the local definition with an alias to the real spec, matching the three aliases beside it, and create all four endpoints through NodeAdaptor. No wire change: the central spec declares depth 1, reliable and volatile, which is what the hand-written rclcpp::QoS{1} at the gear publisher already resolved to.

  • Contributors: Mete Fatih Cırıt, Yutaka Kondo, github-actions

1.9.0 (2026-06-24)

  • chore: align package versions to 1.8.0 and reset changelogs

  • Merge remote-tracking branch 'origin/main' into tmp/bot/bump_version_base

  • refactor(autoware_command_gate): extract ROS-free mode dispatch helper (#1145)

    * refactor(autoware_command_gate): extract ROS-free mode dispatch helper Move the request-to-mode dispatch (switch on the requested operation mode and build the corresponding outputs) out of the node's service-callback lambda into a ROS-free static helper CommandGateModeBuilder::dispatch_mode, which returns std::optional<ModeOutputs> (std::nullopt for unknown/unsupported modes). This makes the dispatch and its only error path (unknown mode -> PARAMETER_ERROR) unit-testable with plain gtest, without spinning up rclcpp. Behavior is preserved: the node still publishes outputs and sets status.success/code/message on the happy path, and emits success=false with PARAMETER_ERROR on an unknown mode. Add unit tests for dispatch_mode covering all four valid modes and the previously untested unknown-mode nullopt branch. The public node API is unchanged; dispatch_mode is an additive static method. Refs: autowarefoundation/autoware_core#1096

    * refactor(autoware_command_gate): address review feedback Move autoware_system_msgs/srv/change_operation_mode include from the builder header to the .cpp where ChangeOperationMode::Request is used, decoupling includers from the service definition. Assert stamp propagation in DispatchModeAutonomous/Local/Remote tests by passing non-zero stamps and checking outputs->state.stamp. Refs: autowarefoundation/autoware_core#1096

    * refactor(autoware_command_gate): split mode-output and response builders (#80) Make the ChangeOperationMode service callback route through two pure message-in -> message-out builders: create_mode_output() builds the messages to publish (std::nullopt for unknown modes) and create_response() builds the service response. Both are ROS-node-free static functions that take the request, so they are unit-testable in isolation. Behavior is preserved; the publish-only ModeOutputs no longer carries response status. Refs: autowarefoundation/autoware_core#1096 ---------Co-authored-by: Junya Sasaki <<j2sasaki1990@gmail.com>>

  • feat: add [autoware_command_gate]{.title-ref} and its tests (#1012)

  • Contributors: Junya Sasaki, Yutaka Kondo, github-actions

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged autoware_command_gate at Robotics Stack Exchange

No version for distro kilted showing humble. Known supported distros are highlighted in the buttons above.
Package symbol

autoware_command_gate package from autoware_core repo

autoware_adapi_adaptors autoware_adapi_specs autoware_core_api autoware_default_adapi autoware_core autoware_agnocast_wrapper autoware_component_interface_admission autoware_component_interface_specs autoware_component_interface_utils autoware_geography_utils autoware_global_parameter_loader autoware_interface_spec_lint autoware_interpolation autoware_kalman_filter autoware_lanelet2_utils autoware_marker_utils autoware_motion_utils autoware_node autoware_object_recognition_utils autoware_osqp_interface autoware_point_types autoware_qos_utils autoware_qp_interface autoware_signal_processing autoware_trajectory autoware_vehicle_info_utils autoware_command_gate autoware_core_control autoware_simple_pure_pursuit autoware_awsim_sensor_kit_description autoware_sample_sensor_kit_description autoware_sample_vehicle_description autoware_core_localization autoware_ekf_localizer autoware_gyro_odometer autoware_localization_util autoware_ndt_scan_matcher autoware_pose_initializer autoware_stop_filter autoware_twist2accel autoware_core_map autoware_lanelet2_map_visualizer autoware_map_height_fitter autoware_map_loader autoware_map_projection_loader autoware_core_perception autoware_euclidean_cluster_object_detector autoware_ground_filter autoware_perception_objects_converter autoware_core_planning autoware_mission_planner autoware_objects_of_interest_marker_interface autoware_path_generator autoware_planning_factor_interface autoware_planning_test_manager autoware_planning_topic_converter autoware_route_handler autoware_velocity_smoother autoware_behavior_velocity_planner autoware_behavior_velocity_planner_common autoware_behavior_velocity_stop_line_module autoware_motion_velocity_obstacle_stop_module autoware_motion_velocity_planner autoware_motion_velocity_planner_common autoware_core_sensing autoware_crop_box_filter autoware_downsample_filters autoware_gnss_poser autoware_vehicle_velocity_converter autoware_pyplot autoware_test_node autoware_test_utils autoware_testing autoware_core_vehicle

ROS Distro
humble

Package Summary

Version 1.10.0
License Apache License 2.0
Build type AMENT_CMAKE
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/autowarefoundation/autoware_core.git
VCS Type git
VCS Version main
Last Updated 2026-10-07
Dev Status DEVELOPED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

Simple gateway that maps operation mode service calls to mode state and gear commands.

Maintainers

  • Junya Sasaki

Authors

No additional authors.

autoware_command_gate

A minimal gateway that exposes operation-mode change services and publishes matching state and gear commands.

Features

  • Services /api/operation_mode/change_to_stop and /api/operation_mode/change_to_autonomous (autoware_adapi_v1_msgs/srv/ChangeOperationMode).
  • Publishes /api/operation_mode/state (reliable, transient local QoS) and /control/command/gear_cmd on each service call.
  • STOP -> gear PARK; AUTONOMOUS -> gear DRIVE.

Build

colcon build --packages-select autoware_command_gate --symlink-install

Run

Launch as a node:

ros2 launch autoware_command_gate autoware_command_gate.launch.py

Or run directly:

ros2 run autoware_command_gate autoware_command_gate_exe

Interact

Call services (example from a sourced workspace):

ros2 service call /api/operation_mode/change_to_stop autoware_adapi_v1_msgs/srv/ChangeOperationMode "{}"
ros2 service call /api/operation_mode/change_to_autonomous autoware_adapi_v1_msgs/srv/ChangeOperationMode "{}"

Echo topics:

ros2 topic echo /api/operation_mode/state
ros2 topic echo /control/command/gear_cmd

Tests

Tests are grouped under the following directories:

  • Unit tests: test/unit
  • Integration tests: test/integration

Run all tests:

colcon test --packages-select autoware_command_gate --event-handlers console_direct+

CHANGELOG

Changelog for package autoware_command_gate

1.10.0 (2026-09-28)

  • Merge remote-tracking branch 'origin/main' into tmp/bot/bump_version_base

  • fix(control): declare the dependencies these packages use (#1368)

    * fix(control): declare the dependencies these packages use Each of these packages uses a package it never declares. Either it includes a header of that package, or it names a symbol of it while the header arrives through another dependency. Both build today only because some declared dependency re-exports the owner, so a change in an unrelated repository can break them without anything here changing. The tag follows where the dependency is used: a use in an installed header or in code compiled into the library takes <depend>, one reached only from test/ takes <test_depend>.

    * fix(autoware_command_gate): remove the unused rmw include and dependency autoware_command_gate.cpp includes <rmw/types.h> and uses no symbol from it. Remove the include instead of declaring rmw in package.xml. This removes the <depend>rmw</depend> entry that the previous commit added. ---------

  • refactor(autoware_command_gate): create endpoints through NodeAdaptor (#1328) This file redefined GearCommand as a local struct carrying only a message type and a name, duplicating a spec that already exists centrally with the same two values plus its QoS. Replace the local definition with an alias to the real spec, matching the three aliases beside it, and create all four endpoints through NodeAdaptor. No wire change: the central spec declares depth 1, reliable and volatile, which is what the hand-written rclcpp::QoS{1} at the gear publisher already resolved to.

  • Contributors: Mete Fatih Cırıt, Yutaka Kondo, github-actions

1.9.0 (2026-06-24)

  • chore: align package versions to 1.8.0 and reset changelogs

  • Merge remote-tracking branch 'origin/main' into tmp/bot/bump_version_base

  • refactor(autoware_command_gate): extract ROS-free mode dispatch helper (#1145)

    * refactor(autoware_command_gate): extract ROS-free mode dispatch helper Move the request-to-mode dispatch (switch on the requested operation mode and build the corresponding outputs) out of the node's service-callback lambda into a ROS-free static helper CommandGateModeBuilder::dispatch_mode, which returns std::optional<ModeOutputs> (std::nullopt for unknown/unsupported modes). This makes the dispatch and its only error path (unknown mode -> PARAMETER_ERROR) unit-testable with plain gtest, without spinning up rclcpp. Behavior is preserved: the node still publishes outputs and sets status.success/code/message on the happy path, and emits success=false with PARAMETER_ERROR on an unknown mode. Add unit tests for dispatch_mode covering all four valid modes and the previously untested unknown-mode nullopt branch. The public node API is unchanged; dispatch_mode is an additive static method. Refs: autowarefoundation/autoware_core#1096

    * refactor(autoware_command_gate): address review feedback Move autoware_system_msgs/srv/change_operation_mode include from the builder header to the .cpp where ChangeOperationMode::Request is used, decoupling includers from the service definition. Assert stamp propagation in DispatchModeAutonomous/Local/Remote tests by passing non-zero stamps and checking outputs->state.stamp. Refs: autowarefoundation/autoware_core#1096

    * refactor(autoware_command_gate): split mode-output and response builders (#80) Make the ChangeOperationMode service callback route through two pure message-in -> message-out builders: create_mode_output() builds the messages to publish (std::nullopt for unknown modes) and create_response() builds the service response. Both are ROS-node-free static functions that take the request, so they are unit-testable in isolation. Behavior is preserved; the publish-only ModeOutputs no longer carries response status. Refs: autowarefoundation/autoware_core#1096 ---------Co-authored-by: Junya Sasaki <<j2sasaki1990@gmail.com>>

  • feat: add [autoware_command_gate]{.title-ref} and its tests (#1012)

  • Contributors: Junya Sasaki, Yutaka Kondo, github-actions

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged autoware_command_gate at Robotics Stack Exchange

No version for distro lyrical showing humble. Known supported distros are highlighted in the buttons above.
Package symbol

autoware_command_gate package from autoware_core repo

autoware_adapi_adaptors autoware_adapi_specs autoware_core_api autoware_default_adapi autoware_core autoware_agnocast_wrapper autoware_component_interface_admission autoware_component_interface_specs autoware_component_interface_utils autoware_geography_utils autoware_global_parameter_loader autoware_interface_spec_lint autoware_interpolation autoware_kalman_filter autoware_lanelet2_utils autoware_marker_utils autoware_motion_utils autoware_node autoware_object_recognition_utils autoware_osqp_interface autoware_point_types autoware_qos_utils autoware_qp_interface autoware_signal_processing autoware_trajectory autoware_vehicle_info_utils autoware_command_gate autoware_core_control autoware_simple_pure_pursuit autoware_awsim_sensor_kit_description autoware_sample_sensor_kit_description autoware_sample_vehicle_description autoware_core_localization autoware_ekf_localizer autoware_gyro_odometer autoware_localization_util autoware_ndt_scan_matcher autoware_pose_initializer autoware_stop_filter autoware_twist2accel autoware_core_map autoware_lanelet2_map_visualizer autoware_map_height_fitter autoware_map_loader autoware_map_projection_loader autoware_core_perception autoware_euclidean_cluster_object_detector autoware_ground_filter autoware_perception_objects_converter autoware_core_planning autoware_mission_planner autoware_objects_of_interest_marker_interface autoware_path_generator autoware_planning_factor_interface autoware_planning_test_manager autoware_planning_topic_converter autoware_route_handler autoware_velocity_smoother autoware_behavior_velocity_planner autoware_behavior_velocity_planner_common autoware_behavior_velocity_stop_line_module autoware_motion_velocity_obstacle_stop_module autoware_motion_velocity_planner autoware_motion_velocity_planner_common autoware_core_sensing autoware_crop_box_filter autoware_downsample_filters autoware_gnss_poser autoware_vehicle_velocity_converter autoware_pyplot autoware_test_node autoware_test_utils autoware_testing autoware_core_vehicle

ROS Distro
humble

Package Summary

Version 1.10.0
License Apache License 2.0
Build type AMENT_CMAKE
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/autowarefoundation/autoware_core.git
VCS Type git
VCS Version main
Last Updated 2026-10-07
Dev Status DEVELOPED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

Simple gateway that maps operation mode service calls to mode state and gear commands.

Maintainers

  • Junya Sasaki

Authors

No additional authors.

autoware_command_gate

A minimal gateway that exposes operation-mode change services and publishes matching state and gear commands.

Features

  • Services /api/operation_mode/change_to_stop and /api/operation_mode/change_to_autonomous (autoware_adapi_v1_msgs/srv/ChangeOperationMode).
  • Publishes /api/operation_mode/state (reliable, transient local QoS) and /control/command/gear_cmd on each service call.
  • STOP -> gear PARK; AUTONOMOUS -> gear DRIVE.

Build

colcon build --packages-select autoware_command_gate --symlink-install

Run

Launch as a node:

ros2 launch autoware_command_gate autoware_command_gate.launch.py

Or run directly:

ros2 run autoware_command_gate autoware_command_gate_exe

Interact

Call services (example from a sourced workspace):

ros2 service call /api/operation_mode/change_to_stop autoware_adapi_v1_msgs/srv/ChangeOperationMode "{}"
ros2 service call /api/operation_mode/change_to_autonomous autoware_adapi_v1_msgs/srv/ChangeOperationMode "{}"

Echo topics:

ros2 topic echo /api/operation_mode/state
ros2 topic echo /control/command/gear_cmd

Tests

Tests are grouped under the following directories:

  • Unit tests: test/unit
  • Integration tests: test/integration

Run all tests:

colcon test --packages-select autoware_command_gate --event-handlers console_direct+

CHANGELOG

Changelog for package autoware_command_gate

1.10.0 (2026-09-28)

  • Merge remote-tracking branch 'origin/main' into tmp/bot/bump_version_base

  • fix(control): declare the dependencies these packages use (#1368)

    * fix(control): declare the dependencies these packages use Each of these packages uses a package it never declares. Either it includes a header of that package, or it names a symbol of it while the header arrives through another dependency. Both build today only because some declared dependency re-exports the owner, so a change in an unrelated repository can break them without anything here changing. The tag follows where the dependency is used: a use in an installed header or in code compiled into the library takes <depend>, one reached only from test/ takes <test_depend>.

    * fix(autoware_command_gate): remove the unused rmw include and dependency autoware_command_gate.cpp includes <rmw/types.h> and uses no symbol from it. Remove the include instead of declaring rmw in package.xml. This removes the <depend>rmw</depend> entry that the previous commit added. ---------

  • refactor(autoware_command_gate): create endpoints through NodeAdaptor (#1328) This file redefined GearCommand as a local struct carrying only a message type and a name, duplicating a spec that already exists centrally with the same two values plus its QoS. Replace the local definition with an alias to the real spec, matching the three aliases beside it, and create all four endpoints through NodeAdaptor. No wire change: the central spec declares depth 1, reliable and volatile, which is what the hand-written rclcpp::QoS{1} at the gear publisher already resolved to.

  • Contributors: Mete Fatih Cırıt, Yutaka Kondo, github-actions

1.9.0 (2026-06-24)

  • chore: align package versions to 1.8.0 and reset changelogs

  • Merge remote-tracking branch 'origin/main' into tmp/bot/bump_version_base

  • refactor(autoware_command_gate): extract ROS-free mode dispatch helper (#1145)

    * refactor(autoware_command_gate): extract ROS-free mode dispatch helper Move the request-to-mode dispatch (switch on the requested operation mode and build the corresponding outputs) out of the node's service-callback lambda into a ROS-free static helper CommandGateModeBuilder::dispatch_mode, which returns std::optional<ModeOutputs> (std::nullopt for unknown/unsupported modes). This makes the dispatch and its only error path (unknown mode -> PARAMETER_ERROR) unit-testable with plain gtest, without spinning up rclcpp. Behavior is preserved: the node still publishes outputs and sets status.success/code/message on the happy path, and emits success=false with PARAMETER_ERROR on an unknown mode. Add unit tests for dispatch_mode covering all four valid modes and the previously untested unknown-mode nullopt branch. The public node API is unchanged; dispatch_mode is an additive static method. Refs: autowarefoundation/autoware_core#1096

    * refactor(autoware_command_gate): address review feedback Move autoware_system_msgs/srv/change_operation_mode include from the builder header to the .cpp where ChangeOperationMode::Request is used, decoupling includers from the service definition. Assert stamp propagation in DispatchModeAutonomous/Local/Remote tests by passing non-zero stamps and checking outputs->state.stamp. Refs: autowarefoundation/autoware_core#1096

    * refactor(autoware_command_gate): split mode-output and response builders (#80) Make the ChangeOperationMode service callback route through two pure message-in -> message-out builders: create_mode_output() builds the messages to publish (std::nullopt for unknown modes) and create_response() builds the service response. Both are ROS-node-free static functions that take the request, so they are unit-testable in isolation. Behavior is preserved; the publish-only ModeOutputs no longer carries response status. Refs: autowarefoundation/autoware_core#1096 ---------Co-authored-by: Junya Sasaki <<j2sasaki1990@gmail.com>>

  • feat: add [autoware_command_gate]{.title-ref} and its tests (#1012)

  • Contributors: Junya Sasaki, Yutaka Kondo, github-actions

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged autoware_command_gate at Robotics Stack Exchange

No version for distro rolling showing humble. Known supported distros are highlighted in the buttons above.
Package symbol

autoware_command_gate package from autoware_core repo

autoware_adapi_adaptors autoware_adapi_specs autoware_core_api autoware_default_adapi autoware_core autoware_agnocast_wrapper autoware_component_interface_admission autoware_component_interface_specs autoware_component_interface_utils autoware_geography_utils autoware_global_parameter_loader autoware_interface_spec_lint autoware_interpolation autoware_kalman_filter autoware_lanelet2_utils autoware_marker_utils autoware_motion_utils autoware_node autoware_object_recognition_utils autoware_osqp_interface autoware_point_types autoware_qos_utils autoware_qp_interface autoware_signal_processing autoware_trajectory autoware_vehicle_info_utils autoware_command_gate autoware_core_control autoware_simple_pure_pursuit autoware_awsim_sensor_kit_description autoware_sample_sensor_kit_description autoware_sample_vehicle_description autoware_core_localization autoware_ekf_localizer autoware_gyro_odometer autoware_localization_util autoware_ndt_scan_matcher autoware_pose_initializer autoware_stop_filter autoware_twist2accel autoware_core_map autoware_lanelet2_map_visualizer autoware_map_height_fitter autoware_map_loader autoware_map_projection_loader autoware_core_perception autoware_euclidean_cluster_object_detector autoware_ground_filter autoware_perception_objects_converter autoware_core_planning autoware_mission_planner autoware_objects_of_interest_marker_interface autoware_path_generator autoware_planning_factor_interface autoware_planning_test_manager autoware_planning_topic_converter autoware_route_handler autoware_velocity_smoother autoware_behavior_velocity_planner autoware_behavior_velocity_planner_common autoware_behavior_velocity_stop_line_module autoware_motion_velocity_obstacle_stop_module autoware_motion_velocity_planner autoware_motion_velocity_planner_common autoware_core_sensing autoware_crop_box_filter autoware_downsample_filters autoware_gnss_poser autoware_vehicle_velocity_converter autoware_pyplot autoware_test_node autoware_test_utils autoware_testing autoware_core_vehicle

ROS Distro
humble

Package Summary

Version 1.10.0
License Apache License 2.0
Build type AMENT_CMAKE
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/autowarefoundation/autoware_core.git
VCS Type git
VCS Version main
Last Updated 2026-10-07
Dev Status DEVELOPED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

Simple gateway that maps operation mode service calls to mode state and gear commands.

Maintainers

  • Junya Sasaki

Authors

No additional authors.

autoware_command_gate

A minimal gateway that exposes operation-mode change services and publishes matching state and gear commands.

Features

  • Services /api/operation_mode/change_to_stop and /api/operation_mode/change_to_autonomous (autoware_adapi_v1_msgs/srv/ChangeOperationMode).
  • Publishes /api/operation_mode/state (reliable, transient local QoS) and /control/command/gear_cmd on each service call.
  • STOP -> gear PARK; AUTONOMOUS -> gear DRIVE.

Build

colcon build --packages-select autoware_command_gate --symlink-install

Run

Launch as a node:

ros2 launch autoware_command_gate autoware_command_gate.launch.py

Or run directly:

ros2 run autoware_command_gate autoware_command_gate_exe

Interact

Call services (example from a sourced workspace):

ros2 service call /api/operation_mode/change_to_stop autoware_adapi_v1_msgs/srv/ChangeOperationMode "{}"
ros2 service call /api/operation_mode/change_to_autonomous autoware_adapi_v1_msgs/srv/ChangeOperationMode "{}"

Echo topics:

ros2 topic echo /api/operation_mode/state
ros2 topic echo /control/command/gear_cmd

Tests

Tests are grouped under the following directories:

  • Unit tests: test/unit
  • Integration tests: test/integration

Run all tests:

colcon test --packages-select autoware_command_gate --event-handlers console_direct+

CHANGELOG

Changelog for package autoware_command_gate

1.10.0 (2026-09-28)

  • Merge remote-tracking branch 'origin/main' into tmp/bot/bump_version_base

  • fix(control): declare the dependencies these packages use (#1368)

    * fix(control): declare the dependencies these packages use Each of these packages uses a package it never declares. Either it includes a header of that package, or it names a symbol of it while the header arrives through another dependency. Both build today only because some declared dependency re-exports the owner, so a change in an unrelated repository can break them without anything here changing. The tag follows where the dependency is used: a use in an installed header or in code compiled into the library takes <depend>, one reached only from test/ takes <test_depend>.

    * fix(autoware_command_gate): remove the unused rmw include and dependency autoware_command_gate.cpp includes <rmw/types.h> and uses no symbol from it. Remove the include instead of declaring rmw in package.xml. This removes the <depend>rmw</depend> entry that the previous commit added. ---------

  • refactor(autoware_command_gate): create endpoints through NodeAdaptor (#1328) This file redefined GearCommand as a local struct carrying only a message type and a name, duplicating a spec that already exists centrally with the same two values plus its QoS. Replace the local definition with an alias to the real spec, matching the three aliases beside it, and create all four endpoints through NodeAdaptor. No wire change: the central spec declares depth 1, reliable and volatile, which is what the hand-written rclcpp::QoS{1} at the gear publisher already resolved to.

  • Contributors: Mete Fatih Cırıt, Yutaka Kondo, github-actions

1.9.0 (2026-06-24)

  • chore: align package versions to 1.8.0 and reset changelogs

  • Merge remote-tracking branch 'origin/main' into tmp/bot/bump_version_base

  • refactor(autoware_command_gate): extract ROS-free mode dispatch helper (#1145)

    * refactor(autoware_command_gate): extract ROS-free mode dispatch helper Move the request-to-mode dispatch (switch on the requested operation mode and build the corresponding outputs) out of the node's service-callback lambda into a ROS-free static helper CommandGateModeBuilder::dispatch_mode, which returns std::optional<ModeOutputs> (std::nullopt for unknown/unsupported modes). This makes the dispatch and its only error path (unknown mode -> PARAMETER_ERROR) unit-testable with plain gtest, without spinning up rclcpp. Behavior is preserved: the node still publishes outputs and sets status.success/code/message on the happy path, and emits success=false with PARAMETER_ERROR on an unknown mode. Add unit tests for dispatch_mode covering all four valid modes and the previously untested unknown-mode nullopt branch. The public node API is unchanged; dispatch_mode is an additive static method. Refs: autowarefoundation/autoware_core#1096

    * refactor(autoware_command_gate): address review feedback Move autoware_system_msgs/srv/change_operation_mode include from the builder header to the .cpp where ChangeOperationMode::Request is used, decoupling includers from the service definition. Assert stamp propagation in DispatchModeAutonomous/Local/Remote tests by passing non-zero stamps and checking outputs->state.stamp. Refs: autowarefoundation/autoware_core#1096

    * refactor(autoware_command_gate): split mode-output and response builders (#80) Make the ChangeOperationMode service callback route through two pure message-in -> message-out builders: create_mode_output() builds the messages to publish (std::nullopt for unknown modes) and create_response() builds the service response. Both are ROS-node-free static functions that take the request, so they are unit-testable in isolation. Behavior is preserved; the publish-only ModeOutputs no longer carries response status. Refs: autowarefoundation/autoware_core#1096 ---------Co-authored-by: Junya Sasaki <<j2sasaki1990@gmail.com>>

  • feat: add [autoware_command_gate]{.title-ref} and its tests (#1012)

  • Contributors: Junya Sasaki, Yutaka Kondo, github-actions

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged autoware_command_gate at Robotics Stack Exchange

No version for distro ardent showing humble. Known supported distros are highlighted in the buttons above.
Package symbol

autoware_command_gate package from autoware_core repo

autoware_adapi_adaptors autoware_adapi_specs autoware_core_api autoware_default_adapi autoware_core autoware_agnocast_wrapper autoware_component_interface_admission autoware_component_interface_specs autoware_component_interface_utils autoware_geography_utils autoware_global_parameter_loader autoware_interface_spec_lint autoware_interpolation autoware_kalman_filter autoware_lanelet2_utils autoware_marker_utils autoware_motion_utils autoware_node autoware_object_recognition_utils autoware_osqp_interface autoware_point_types autoware_qos_utils autoware_qp_interface autoware_signal_processing autoware_trajectory autoware_vehicle_info_utils autoware_command_gate autoware_core_control autoware_simple_pure_pursuit autoware_awsim_sensor_kit_description autoware_sample_sensor_kit_description autoware_sample_vehicle_description autoware_core_localization autoware_ekf_localizer autoware_gyro_odometer autoware_localization_util autoware_ndt_scan_matcher autoware_pose_initializer autoware_stop_filter autoware_twist2accel autoware_core_map autoware_lanelet2_map_visualizer autoware_map_height_fitter autoware_map_loader autoware_map_projection_loader autoware_core_perception autoware_euclidean_cluster_object_detector autoware_ground_filter autoware_perception_objects_converter autoware_core_planning autoware_mission_planner autoware_objects_of_interest_marker_interface autoware_path_generator autoware_planning_factor_interface autoware_planning_test_manager autoware_planning_topic_converter autoware_route_handler autoware_velocity_smoother autoware_behavior_velocity_planner autoware_behavior_velocity_planner_common autoware_behavior_velocity_stop_line_module autoware_motion_velocity_obstacle_stop_module autoware_motion_velocity_planner autoware_motion_velocity_planner_common autoware_core_sensing autoware_crop_box_filter autoware_downsample_filters autoware_gnss_poser autoware_vehicle_velocity_converter autoware_pyplot autoware_test_node autoware_test_utils autoware_testing autoware_core_vehicle

ROS Distro
humble

Package Summary

Version 1.10.0
License Apache License 2.0
Build type AMENT_CMAKE
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/autowarefoundation/autoware_core.git
VCS Type git
VCS Version main
Last Updated 2026-10-07
Dev Status DEVELOPED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

Simple gateway that maps operation mode service calls to mode state and gear commands.

Maintainers

  • Junya Sasaki

Authors

No additional authors.

autoware_command_gate

A minimal gateway that exposes operation-mode change services and publishes matching state and gear commands.

Features

  • Services /api/operation_mode/change_to_stop and /api/operation_mode/change_to_autonomous (autoware_adapi_v1_msgs/srv/ChangeOperationMode).
  • Publishes /api/operation_mode/state (reliable, transient local QoS) and /control/command/gear_cmd on each service call.
  • STOP -> gear PARK; AUTONOMOUS -> gear DRIVE.

Build

colcon build --packages-select autoware_command_gate --symlink-install

Run

Launch as a node:

ros2 launch autoware_command_gate autoware_command_gate.launch.py

Or run directly:

ros2 run autoware_command_gate autoware_command_gate_exe

Interact

Call services (example from a sourced workspace):

ros2 service call /api/operation_mode/change_to_stop autoware_adapi_v1_msgs/srv/ChangeOperationMode "{}"
ros2 service call /api/operation_mode/change_to_autonomous autoware_adapi_v1_msgs/srv/ChangeOperationMode "{}"

Echo topics:

ros2 topic echo /api/operation_mode/state
ros2 topic echo /control/command/gear_cmd

Tests

Tests are grouped under the following directories:

  • Unit tests: test/unit
  • Integration tests: test/integration

Run all tests:

colcon test --packages-select autoware_command_gate --event-handlers console_direct+

CHANGELOG

Changelog for package autoware_command_gate

1.10.0 (2026-09-28)

  • Merge remote-tracking branch 'origin/main' into tmp/bot/bump_version_base

  • fix(control): declare the dependencies these packages use (#1368)

    * fix(control): declare the dependencies these packages use Each of these packages uses a package it never declares. Either it includes a header of that package, or it names a symbol of it while the header arrives through another dependency. Both build today only because some declared dependency re-exports the owner, so a change in an unrelated repository can break them without anything here changing. The tag follows where the dependency is used: a use in an installed header or in code compiled into the library takes <depend>, one reached only from test/ takes <test_depend>.

    * fix(autoware_command_gate): remove the unused rmw include and dependency autoware_command_gate.cpp includes <rmw/types.h> and uses no symbol from it. Remove the include instead of declaring rmw in package.xml. This removes the <depend>rmw</depend> entry that the previous commit added. ---------

  • refactor(autoware_command_gate): create endpoints through NodeAdaptor (#1328) This file redefined GearCommand as a local struct carrying only a message type and a name, duplicating a spec that already exists centrally with the same two values plus its QoS. Replace the local definition with an alias to the real spec, matching the three aliases beside it, and create all four endpoints through NodeAdaptor. No wire change: the central spec declares depth 1, reliable and volatile, which is what the hand-written rclcpp::QoS{1} at the gear publisher already resolved to.

  • Contributors: Mete Fatih Cırıt, Yutaka Kondo, github-actions

1.9.0 (2026-06-24)

  • chore: align package versions to 1.8.0 and reset changelogs

  • Merge remote-tracking branch 'origin/main' into tmp/bot/bump_version_base

  • refactor(autoware_command_gate): extract ROS-free mode dispatch helper (#1145)

    * refactor(autoware_command_gate): extract ROS-free mode dispatch helper Move the request-to-mode dispatch (switch on the requested operation mode and build the corresponding outputs) out of the node's service-callback lambda into a ROS-free static helper CommandGateModeBuilder::dispatch_mode, which returns std::optional<ModeOutputs> (std::nullopt for unknown/unsupported modes). This makes the dispatch and its only error path (unknown mode -> PARAMETER_ERROR) unit-testable with plain gtest, without spinning up rclcpp. Behavior is preserved: the node still publishes outputs and sets status.success/code/message on the happy path, and emits success=false with PARAMETER_ERROR on an unknown mode. Add unit tests for dispatch_mode covering all four valid modes and the previously untested unknown-mode nullopt branch. The public node API is unchanged; dispatch_mode is an additive static method. Refs: autowarefoundation/autoware_core#1096

    * refactor(autoware_command_gate): address review feedback Move autoware_system_msgs/srv/change_operation_mode include from the builder header to the .cpp where ChangeOperationMode::Request is used, decoupling includers from the service definition. Assert stamp propagation in DispatchModeAutonomous/Local/Remote tests by passing non-zero stamps and checking outputs->state.stamp. Refs: autowarefoundation/autoware_core#1096

    * refactor(autoware_command_gate): split mode-output and response builders (#80) Make the ChangeOperationMode service callback route through two pure message-in -> message-out builders: create_mode_output() builds the messages to publish (std::nullopt for unknown modes) and create_response() builds the service response. Both are ROS-node-free static functions that take the request, so they are unit-testable in isolation. Behavior is preserved; the publish-only ModeOutputs no longer carries response status. Refs: autowarefoundation/autoware_core#1096 ---------Co-authored-by: Junya Sasaki <<j2sasaki1990@gmail.com>>

  • feat: add [autoware_command_gate]{.title-ref} and its tests (#1012)

  • Contributors: Junya Sasaki, Yutaka Kondo, github-actions

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged autoware_command_gate at Robotics Stack Exchange

No version for distro bouncy showing humble. Known supported distros are highlighted in the buttons above.
Package symbol

autoware_command_gate package from autoware_core repo

autoware_adapi_adaptors autoware_adapi_specs autoware_core_api autoware_default_adapi autoware_core autoware_agnocast_wrapper autoware_component_interface_admission autoware_component_interface_specs autoware_component_interface_utils autoware_geography_utils autoware_global_parameter_loader autoware_interface_spec_lint autoware_interpolation autoware_kalman_filter autoware_lanelet2_utils autoware_marker_utils autoware_motion_utils autoware_node autoware_object_recognition_utils autoware_osqp_interface autoware_point_types autoware_qos_utils autoware_qp_interface autoware_signal_processing autoware_trajectory autoware_vehicle_info_utils autoware_command_gate autoware_core_control autoware_simple_pure_pursuit autoware_awsim_sensor_kit_description autoware_sample_sensor_kit_description autoware_sample_vehicle_description autoware_core_localization autoware_ekf_localizer autoware_gyro_odometer autoware_localization_util autoware_ndt_scan_matcher autoware_pose_initializer autoware_stop_filter autoware_twist2accel autoware_core_map autoware_lanelet2_map_visualizer autoware_map_height_fitter autoware_map_loader autoware_map_projection_loader autoware_core_perception autoware_euclidean_cluster_object_detector autoware_ground_filter autoware_perception_objects_converter autoware_core_planning autoware_mission_planner autoware_objects_of_interest_marker_interface autoware_path_generator autoware_planning_factor_interface autoware_planning_test_manager autoware_planning_topic_converter autoware_route_handler autoware_velocity_smoother autoware_behavior_velocity_planner autoware_behavior_velocity_planner_common autoware_behavior_velocity_stop_line_module autoware_motion_velocity_obstacle_stop_module autoware_motion_velocity_planner autoware_motion_velocity_planner_common autoware_core_sensing autoware_crop_box_filter autoware_downsample_filters autoware_gnss_poser autoware_vehicle_velocity_converter autoware_pyplot autoware_test_node autoware_test_utils autoware_testing autoware_core_vehicle

ROS Distro
humble

Package Summary

Version 1.10.0
License Apache License 2.0
Build type AMENT_CMAKE
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/autowarefoundation/autoware_core.git
VCS Type git
VCS Version main
Last Updated 2026-10-07
Dev Status DEVELOPED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

Simple gateway that maps operation mode service calls to mode state and gear commands.

Maintainers

  • Junya Sasaki

Authors

No additional authors.

autoware_command_gate

A minimal gateway that exposes operation-mode change services and publishes matching state and gear commands.

Features

  • Services /api/operation_mode/change_to_stop and /api/operation_mode/change_to_autonomous (autoware_adapi_v1_msgs/srv/ChangeOperationMode).
  • Publishes /api/operation_mode/state (reliable, transient local QoS) and /control/command/gear_cmd on each service call.
  • STOP -> gear PARK; AUTONOMOUS -> gear DRIVE.

Build

colcon build --packages-select autoware_command_gate --symlink-install

Run

Launch as a node:

ros2 launch autoware_command_gate autoware_command_gate.launch.py

Or run directly:

ros2 run autoware_command_gate autoware_command_gate_exe

Interact

Call services (example from a sourced workspace):

ros2 service call /api/operation_mode/change_to_stop autoware_adapi_v1_msgs/srv/ChangeOperationMode "{}"
ros2 service call /api/operation_mode/change_to_autonomous autoware_adapi_v1_msgs/srv/ChangeOperationMode "{}"

Echo topics:

ros2 topic echo /api/operation_mode/state
ros2 topic echo /control/command/gear_cmd

Tests

Tests are grouped under the following directories:

  • Unit tests: test/unit
  • Integration tests: test/integration

Run all tests:

colcon test --packages-select autoware_command_gate --event-handlers console_direct+

CHANGELOG

Changelog for package autoware_command_gate

1.10.0 (2026-09-28)

  • Merge remote-tracking branch 'origin/main' into tmp/bot/bump_version_base

  • fix(control): declare the dependencies these packages use (#1368)

    * fix(control): declare the dependencies these packages use Each of these packages uses a package it never declares. Either it includes a header of that package, or it names a symbol of it while the header arrives through another dependency. Both build today only because some declared dependency re-exports the owner, so a change in an unrelated repository can break them without anything here changing. The tag follows where the dependency is used: a use in an installed header or in code compiled into the library takes <depend>, one reached only from test/ takes <test_depend>.

    * fix(autoware_command_gate): remove the unused rmw include and dependency autoware_command_gate.cpp includes <rmw/types.h> and uses no symbol from it. Remove the include instead of declaring rmw in package.xml. This removes the <depend>rmw</depend> entry that the previous commit added. ---------

  • refactor(autoware_command_gate): create endpoints through NodeAdaptor (#1328) This file redefined GearCommand as a local struct carrying only a message type and a name, duplicating a spec that already exists centrally with the same two values plus its QoS. Replace the local definition with an alias to the real spec, matching the three aliases beside it, and create all four endpoints through NodeAdaptor. No wire change: the central spec declares depth 1, reliable and volatile, which is what the hand-written rclcpp::QoS{1} at the gear publisher already resolved to.

  • Contributors: Mete Fatih Cırıt, Yutaka Kondo, github-actions

1.9.0 (2026-06-24)

  • chore: align package versions to 1.8.0 and reset changelogs

  • Merge remote-tracking branch 'origin/main' into tmp/bot/bump_version_base

  • refactor(autoware_command_gate): extract ROS-free mode dispatch helper (#1145)

    * refactor(autoware_command_gate): extract ROS-free mode dispatch helper Move the request-to-mode dispatch (switch on the requested operation mode and build the corresponding outputs) out of the node's service-callback lambda into a ROS-free static helper CommandGateModeBuilder::dispatch_mode, which returns std::optional<ModeOutputs> (std::nullopt for unknown/unsupported modes). This makes the dispatch and its only error path (unknown mode -> PARAMETER_ERROR) unit-testable with plain gtest, without spinning up rclcpp. Behavior is preserved: the node still publishes outputs and sets status.success/code/message on the happy path, and emits success=false with PARAMETER_ERROR on an unknown mode. Add unit tests for dispatch_mode covering all four valid modes and the previously untested unknown-mode nullopt branch. The public node API is unchanged; dispatch_mode is an additive static method. Refs: autowarefoundation/autoware_core#1096

    * refactor(autoware_command_gate): address review feedback Move autoware_system_msgs/srv/change_operation_mode include from the builder header to the .cpp where ChangeOperationMode::Request is used, decoupling includers from the service definition. Assert stamp propagation in DispatchModeAutonomous/Local/Remote tests by passing non-zero stamps and checking outputs->state.stamp. Refs: autowarefoundation/autoware_core#1096

    * refactor(autoware_command_gate): split mode-output and response builders (#80) Make the ChangeOperationMode service callback route through two pure message-in -> message-out builders: create_mode_output() builds the messages to publish (std::nullopt for unknown modes) and create_response() builds the service response. Both are ROS-node-free static functions that take the request, so they are unit-testable in isolation. Behavior is preserved; the publish-only ModeOutputs no longer carries response status. Refs: autowarefoundation/autoware_core#1096 ---------Co-authored-by: Junya Sasaki <<j2sasaki1990@gmail.com>>

  • feat: add [autoware_command_gate]{.title-ref} and its tests (#1012)

  • Contributors: Junya Sasaki, Yutaka Kondo, github-actions

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged autoware_command_gate at Robotics Stack Exchange

No version for distro crystal showing humble. Known supported distros are highlighted in the buttons above.
Package symbol

autoware_command_gate package from autoware_core repo

autoware_adapi_adaptors autoware_adapi_specs autoware_core_api autoware_default_adapi autoware_core autoware_agnocast_wrapper autoware_component_interface_admission autoware_component_interface_specs autoware_component_interface_utils autoware_geography_utils autoware_global_parameter_loader autoware_interface_spec_lint autoware_interpolation autoware_kalman_filter autoware_lanelet2_utils autoware_marker_utils autoware_motion_utils autoware_node autoware_object_recognition_utils autoware_osqp_interface autoware_point_types autoware_qos_utils autoware_qp_interface autoware_signal_processing autoware_trajectory autoware_vehicle_info_utils autoware_command_gate autoware_core_control autoware_simple_pure_pursuit autoware_awsim_sensor_kit_description autoware_sample_sensor_kit_description autoware_sample_vehicle_description autoware_core_localization autoware_ekf_localizer autoware_gyro_odometer autoware_localization_util autoware_ndt_scan_matcher autoware_pose_initializer autoware_stop_filter autoware_twist2accel autoware_core_map autoware_lanelet2_map_visualizer autoware_map_height_fitter autoware_map_loader autoware_map_projection_loader autoware_core_perception autoware_euclidean_cluster_object_detector autoware_ground_filter autoware_perception_objects_converter autoware_core_planning autoware_mission_planner autoware_objects_of_interest_marker_interface autoware_path_generator autoware_planning_factor_interface autoware_planning_test_manager autoware_planning_topic_converter autoware_route_handler autoware_velocity_smoother autoware_behavior_velocity_planner autoware_behavior_velocity_planner_common autoware_behavior_velocity_stop_line_module autoware_motion_velocity_obstacle_stop_module autoware_motion_velocity_planner autoware_motion_velocity_planner_common autoware_core_sensing autoware_crop_box_filter autoware_downsample_filters autoware_gnss_poser autoware_vehicle_velocity_converter autoware_pyplot autoware_test_node autoware_test_utils autoware_testing autoware_core_vehicle

ROS Distro
humble

Package Summary

Version 1.10.0
License Apache License 2.0
Build type AMENT_CMAKE
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/autowarefoundation/autoware_core.git
VCS Type git
VCS Version main
Last Updated 2026-10-07
Dev Status DEVELOPED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

Simple gateway that maps operation mode service calls to mode state and gear commands.

Maintainers

  • Junya Sasaki

Authors

No additional authors.

autoware_command_gate

A minimal gateway that exposes operation-mode change services and publishes matching state and gear commands.

Features

  • Services /api/operation_mode/change_to_stop and /api/operation_mode/change_to_autonomous (autoware_adapi_v1_msgs/srv/ChangeOperationMode).
  • Publishes /api/operation_mode/state (reliable, transient local QoS) and /control/command/gear_cmd on each service call.
  • STOP -> gear PARK; AUTONOMOUS -> gear DRIVE.

Build

colcon build --packages-select autoware_command_gate --symlink-install

Run

Launch as a node:

ros2 launch autoware_command_gate autoware_command_gate.launch.py

Or run directly:

ros2 run autoware_command_gate autoware_command_gate_exe

Interact

Call services (example from a sourced workspace):

ros2 service call /api/operation_mode/change_to_stop autoware_adapi_v1_msgs/srv/ChangeOperationMode "{}"
ros2 service call /api/operation_mode/change_to_autonomous autoware_adapi_v1_msgs/srv/ChangeOperationMode "{}"

Echo topics:

ros2 topic echo /api/operation_mode/state
ros2 topic echo /control/command/gear_cmd

Tests

Tests are grouped under the following directories:

  • Unit tests: test/unit
  • Integration tests: test/integration

Run all tests:

colcon test --packages-select autoware_command_gate --event-handlers console_direct+

CHANGELOG

Changelog for package autoware_command_gate

1.10.0 (2026-09-28)

  • Merge remote-tracking branch 'origin/main' into tmp/bot/bump_version_base

  • fix(control): declare the dependencies these packages use (#1368)

    * fix(control): declare the dependencies these packages use Each of these packages uses a package it never declares. Either it includes a header of that package, or it names a symbol of it while the header arrives through another dependency. Both build today only because some declared dependency re-exports the owner, so a change in an unrelated repository can break them without anything here changing. The tag follows where the dependency is used: a use in an installed header or in code compiled into the library takes <depend>, one reached only from test/ takes <test_depend>.

    * fix(autoware_command_gate): remove the unused rmw include and dependency autoware_command_gate.cpp includes <rmw/types.h> and uses no symbol from it. Remove the include instead of declaring rmw in package.xml. This removes the <depend>rmw</depend> entry that the previous commit added. ---------

  • refactor(autoware_command_gate): create endpoints through NodeAdaptor (#1328) This file redefined GearCommand as a local struct carrying only a message type and a name, duplicating a spec that already exists centrally with the same two values plus its QoS. Replace the local definition with an alias to the real spec, matching the three aliases beside it, and create all four endpoints through NodeAdaptor. No wire change: the central spec declares depth 1, reliable and volatile, which is what the hand-written rclcpp::QoS{1} at the gear publisher already resolved to.

  • Contributors: Mete Fatih Cırıt, Yutaka Kondo, github-actions

1.9.0 (2026-06-24)

  • chore: align package versions to 1.8.0 and reset changelogs

  • Merge remote-tracking branch 'origin/main' into tmp/bot/bump_version_base

  • refactor(autoware_command_gate): extract ROS-free mode dispatch helper (#1145)

    * refactor(autoware_command_gate): extract ROS-free mode dispatch helper Move the request-to-mode dispatch (switch on the requested operation mode and build the corresponding outputs) out of the node's service-callback lambda into a ROS-free static helper CommandGateModeBuilder::dispatch_mode, which returns std::optional<ModeOutputs> (std::nullopt for unknown/unsupported modes). This makes the dispatch and its only error path (unknown mode -> PARAMETER_ERROR) unit-testable with plain gtest, without spinning up rclcpp. Behavior is preserved: the node still publishes outputs and sets status.success/code/message on the happy path, and emits success=false with PARAMETER_ERROR on an unknown mode. Add unit tests for dispatch_mode covering all four valid modes and the previously untested unknown-mode nullopt branch. The public node API is unchanged; dispatch_mode is an additive static method. Refs: autowarefoundation/autoware_core#1096

    * refactor(autoware_command_gate): address review feedback Move autoware_system_msgs/srv/change_operation_mode include from the builder header to the .cpp where ChangeOperationMode::Request is used, decoupling includers from the service definition. Assert stamp propagation in DispatchModeAutonomous/Local/Remote tests by passing non-zero stamps and checking outputs->state.stamp. Refs: autowarefoundation/autoware_core#1096

    * refactor(autoware_command_gate): split mode-output and response builders (#80) Make the ChangeOperationMode service callback route through two pure message-in -> message-out builders: create_mode_output() builds the messages to publish (std::nullopt for unknown modes) and create_response() builds the service response. Both are ROS-node-free static functions that take the request, so they are unit-testable in isolation. Behavior is preserved; the publish-only ModeOutputs no longer carries response status. Refs: autowarefoundation/autoware_core#1096 ---------Co-authored-by: Junya Sasaki <<j2sasaki1990@gmail.com>>

  • feat: add [autoware_command_gate]{.title-ref} and its tests (#1012)

  • Contributors: Junya Sasaki, Yutaka Kondo, github-actions

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged autoware_command_gate at Robotics Stack Exchange

No version for distro eloquent showing humble. Known supported distros are highlighted in the buttons above.
Package symbol

autoware_command_gate package from autoware_core repo

autoware_adapi_adaptors autoware_adapi_specs autoware_core_api autoware_default_adapi autoware_core autoware_agnocast_wrapper autoware_component_interface_admission autoware_component_interface_specs autoware_component_interface_utils autoware_geography_utils autoware_global_parameter_loader autoware_interface_spec_lint autoware_interpolation autoware_kalman_filter autoware_lanelet2_utils autoware_marker_utils autoware_motion_utils autoware_node autoware_object_recognition_utils autoware_osqp_interface autoware_point_types autoware_qos_utils autoware_qp_interface autoware_signal_processing autoware_trajectory autoware_vehicle_info_utils autoware_command_gate autoware_core_control autoware_simple_pure_pursuit autoware_awsim_sensor_kit_description autoware_sample_sensor_kit_description autoware_sample_vehicle_description autoware_core_localization autoware_ekf_localizer autoware_gyro_odometer autoware_localization_util autoware_ndt_scan_matcher autoware_pose_initializer autoware_stop_filter autoware_twist2accel autoware_core_map autoware_lanelet2_map_visualizer autoware_map_height_fitter autoware_map_loader autoware_map_projection_loader autoware_core_perception autoware_euclidean_cluster_object_detector autoware_ground_filter autoware_perception_objects_converter autoware_core_planning autoware_mission_planner autoware_objects_of_interest_marker_interface autoware_path_generator autoware_planning_factor_interface autoware_planning_test_manager autoware_planning_topic_converter autoware_route_handler autoware_velocity_smoother autoware_behavior_velocity_planner autoware_behavior_velocity_planner_common autoware_behavior_velocity_stop_line_module autoware_motion_velocity_obstacle_stop_module autoware_motion_velocity_planner autoware_motion_velocity_planner_common autoware_core_sensing autoware_crop_box_filter autoware_downsample_filters autoware_gnss_poser autoware_vehicle_velocity_converter autoware_pyplot autoware_test_node autoware_test_utils autoware_testing autoware_core_vehicle

ROS Distro
humble

Package Summary

Version 1.10.0
License Apache License 2.0
Build type AMENT_CMAKE
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/autowarefoundation/autoware_core.git
VCS Type git
VCS Version main
Last Updated 2026-10-07
Dev Status DEVELOPED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

Simple gateway that maps operation mode service calls to mode state and gear commands.

Maintainers

  • Junya Sasaki

Authors

No additional authors.

autoware_command_gate

A minimal gateway that exposes operation-mode change services and publishes matching state and gear commands.

Features

  • Services /api/operation_mode/change_to_stop and /api/operation_mode/change_to_autonomous (autoware_adapi_v1_msgs/srv/ChangeOperationMode).
  • Publishes /api/operation_mode/state (reliable, transient local QoS) and /control/command/gear_cmd on each service call.
  • STOP -> gear PARK; AUTONOMOUS -> gear DRIVE.

Build

colcon build --packages-select autoware_command_gate --symlink-install

Run

Launch as a node:

ros2 launch autoware_command_gate autoware_command_gate.launch.py

Or run directly:

ros2 run autoware_command_gate autoware_command_gate_exe

Interact

Call services (example from a sourced workspace):

ros2 service call /api/operation_mode/change_to_stop autoware_adapi_v1_msgs/srv/ChangeOperationMode "{}"
ros2 service call /api/operation_mode/change_to_autonomous autoware_adapi_v1_msgs/srv/ChangeOperationMode "{}"

Echo topics:

ros2 topic echo /api/operation_mode/state
ros2 topic echo /control/command/gear_cmd

Tests

Tests are grouped under the following directories:

  • Unit tests: test/unit
  • Integration tests: test/integration

Run all tests:

colcon test --packages-select autoware_command_gate --event-handlers console_direct+

CHANGELOG

Changelog for package autoware_command_gate

1.10.0 (2026-09-28)

  • Merge remote-tracking branch 'origin/main' into tmp/bot/bump_version_base

  • fix(control): declare the dependencies these packages use (#1368)

    * fix(control): declare the dependencies these packages use Each of these packages uses a package it never declares. Either it includes a header of that package, or it names a symbol of it while the header arrives through another dependency. Both build today only because some declared dependency re-exports the owner, so a change in an unrelated repository can break them without anything here changing. The tag follows where the dependency is used: a use in an installed header or in code compiled into the library takes <depend>, one reached only from test/ takes <test_depend>.

    * fix(autoware_command_gate): remove the unused rmw include and dependency autoware_command_gate.cpp includes <rmw/types.h> and uses no symbol from it. Remove the include instead of declaring rmw in package.xml. This removes the <depend>rmw</depend> entry that the previous commit added. ---------

  • refactor(autoware_command_gate): create endpoints through NodeAdaptor (#1328) This file redefined GearCommand as a local struct carrying only a message type and a name, duplicating a spec that already exists centrally with the same two values plus its QoS. Replace the local definition with an alias to the real spec, matching the three aliases beside it, and create all four endpoints through NodeAdaptor. No wire change: the central spec declares depth 1, reliable and volatile, which is what the hand-written rclcpp::QoS{1} at the gear publisher already resolved to.

  • Contributors: Mete Fatih Cırıt, Yutaka Kondo, github-actions

1.9.0 (2026-06-24)

  • chore: align package versions to 1.8.0 and reset changelogs

  • Merge remote-tracking branch 'origin/main' into tmp/bot/bump_version_base

  • refactor(autoware_command_gate): extract ROS-free mode dispatch helper (#1145)

    * refactor(autoware_command_gate): extract ROS-free mode dispatch helper Move the request-to-mode dispatch (switch on the requested operation mode and build the corresponding outputs) out of the node's service-callback lambda into a ROS-free static helper CommandGateModeBuilder::dispatch_mode, which returns std::optional<ModeOutputs> (std::nullopt for unknown/unsupported modes). This makes the dispatch and its only error path (unknown mode -> PARAMETER_ERROR) unit-testable with plain gtest, without spinning up rclcpp. Behavior is preserved: the node still publishes outputs and sets status.success/code/message on the happy path, and emits success=false with PARAMETER_ERROR on an unknown mode. Add unit tests for dispatch_mode covering all four valid modes and the previously untested unknown-mode nullopt branch. The public node API is unchanged; dispatch_mode is an additive static method. Refs: autowarefoundation/autoware_core#1096

    * refactor(autoware_command_gate): address review feedback Move autoware_system_msgs/srv/change_operation_mode include from the builder header to the .cpp where ChangeOperationMode::Request is used, decoupling includers from the service definition. Assert stamp propagation in DispatchModeAutonomous/Local/Remote tests by passing non-zero stamps and checking outputs->state.stamp. Refs: autowarefoundation/autoware_core#1096

    * refactor(autoware_command_gate): split mode-output and response builders (#80) Make the ChangeOperationMode service callback route through two pure message-in -> message-out builders: create_mode_output() builds the messages to publish (std::nullopt for unknown modes) and create_response() builds the service response. Both are ROS-node-free static functions that take the request, so they are unit-testable in isolation. Behavior is preserved; the publish-only ModeOutputs no longer carries response status. Refs: autowarefoundation/autoware_core#1096 ---------Co-authored-by: Junya Sasaki <<j2sasaki1990@gmail.com>>

  • feat: add [autoware_command_gate]{.title-ref} and its tests (#1012)

  • Contributors: Junya Sasaki, Yutaka Kondo, github-actions

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged autoware_command_gate at Robotics Stack Exchange

No version for distro dashing showing humble. Known supported distros are highlighted in the buttons above.
Package symbol

autoware_command_gate package from autoware_core repo

autoware_adapi_adaptors autoware_adapi_specs autoware_core_api autoware_default_adapi autoware_core autoware_agnocast_wrapper autoware_component_interface_admission autoware_component_interface_specs autoware_component_interface_utils autoware_geography_utils autoware_global_parameter_loader autoware_interface_spec_lint autoware_interpolation autoware_kalman_filter autoware_lanelet2_utils autoware_marker_utils autoware_motion_utils autoware_node autoware_object_recognition_utils autoware_osqp_interface autoware_point_types autoware_qos_utils autoware_qp_interface autoware_signal_processing autoware_trajectory autoware_vehicle_info_utils autoware_command_gate autoware_core_control autoware_simple_pure_pursuit autoware_awsim_sensor_kit_description autoware_sample_sensor_kit_description autoware_sample_vehicle_description autoware_core_localization autoware_ekf_localizer autoware_gyro_odometer autoware_localization_util autoware_ndt_scan_matcher autoware_pose_initializer autoware_stop_filter autoware_twist2accel autoware_core_map autoware_lanelet2_map_visualizer autoware_map_height_fitter autoware_map_loader autoware_map_projection_loader autoware_core_perception autoware_euclidean_cluster_object_detector autoware_ground_filter autoware_perception_objects_converter autoware_core_planning autoware_mission_planner autoware_objects_of_interest_marker_interface autoware_path_generator autoware_planning_factor_interface autoware_planning_test_manager autoware_planning_topic_converter autoware_route_handler autoware_velocity_smoother autoware_behavior_velocity_planner autoware_behavior_velocity_planner_common autoware_behavior_velocity_stop_line_module autoware_motion_velocity_obstacle_stop_module autoware_motion_velocity_planner autoware_motion_velocity_planner_common autoware_core_sensing autoware_crop_box_filter autoware_downsample_filters autoware_gnss_poser autoware_vehicle_velocity_converter autoware_pyplot autoware_test_node autoware_test_utils autoware_testing autoware_core_vehicle

ROS Distro
humble

Package Summary

Version 1.10.0
License Apache License 2.0
Build type AMENT_CMAKE
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/autowarefoundation/autoware_core.git
VCS Type git
VCS Version main
Last Updated 2026-10-07
Dev Status DEVELOPED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

Simple gateway that maps operation mode service calls to mode state and gear commands.

Maintainers

  • Junya Sasaki

Authors

No additional authors.

autoware_command_gate

A minimal gateway that exposes operation-mode change services and publishes matching state and gear commands.

Features

  • Services /api/operation_mode/change_to_stop and /api/operation_mode/change_to_autonomous (autoware_adapi_v1_msgs/srv/ChangeOperationMode).
  • Publishes /api/operation_mode/state (reliable, transient local QoS) and /control/command/gear_cmd on each service call.
  • STOP -> gear PARK; AUTONOMOUS -> gear DRIVE.

Build

colcon build --packages-select autoware_command_gate --symlink-install

Run

Launch as a node:

ros2 launch autoware_command_gate autoware_command_gate.launch.py

Or run directly:

ros2 run autoware_command_gate autoware_command_gate_exe

Interact

Call services (example from a sourced workspace):

ros2 service call /api/operation_mode/change_to_stop autoware_adapi_v1_msgs/srv/ChangeOperationMode "{}"
ros2 service call /api/operation_mode/change_to_autonomous autoware_adapi_v1_msgs/srv/ChangeOperationMode "{}"

Echo topics:

ros2 topic echo /api/operation_mode/state
ros2 topic echo /control/command/gear_cmd

Tests

Tests are grouped under the following directories:

  • Unit tests: test/unit
  • Integration tests: test/integration

Run all tests:

colcon test --packages-select autoware_command_gate --event-handlers console_direct+

CHANGELOG

Changelog for package autoware_command_gate

1.10.0 (2026-09-28)

  • Merge remote-tracking branch 'origin/main' into tmp/bot/bump_version_base

  • fix(control): declare the dependencies these packages use (#1368)

    * fix(control): declare the dependencies these packages use Each of these packages uses a package it never declares. Either it includes a header of that package, or it names a symbol of it while the header arrives through another dependency. Both build today only because some declared dependency re-exports the owner, so a change in an unrelated repository can break them without anything here changing. The tag follows where the dependency is used: a use in an installed header or in code compiled into the library takes <depend>, one reached only from test/ takes <test_depend>.

    * fix(autoware_command_gate): remove the unused rmw include and dependency autoware_command_gate.cpp includes <rmw/types.h> and uses no symbol from it. Remove the include instead of declaring rmw in package.xml. This removes the <depend>rmw</depend> entry that the previous commit added. ---------

  • refactor(autoware_command_gate): create endpoints through NodeAdaptor (#1328) This file redefined GearCommand as a local struct carrying only a message type and a name, duplicating a spec that already exists centrally with the same two values plus its QoS. Replace the local definition with an alias to the real spec, matching the three aliases beside it, and create all four endpoints through NodeAdaptor. No wire change: the central spec declares depth 1, reliable and volatile, which is what the hand-written rclcpp::QoS{1} at the gear publisher already resolved to.

  • Contributors: Mete Fatih Cırıt, Yutaka Kondo, github-actions

1.9.0 (2026-06-24)

  • chore: align package versions to 1.8.0 and reset changelogs

  • Merge remote-tracking branch 'origin/main' into tmp/bot/bump_version_base

  • refactor(autoware_command_gate): extract ROS-free mode dispatch helper (#1145)

    * refactor(autoware_command_gate): extract ROS-free mode dispatch helper Move the request-to-mode dispatch (switch on the requested operation mode and build the corresponding outputs) out of the node's service-callback lambda into a ROS-free static helper CommandGateModeBuilder::dispatch_mode, which returns std::optional<ModeOutputs> (std::nullopt for unknown/unsupported modes). This makes the dispatch and its only error path (unknown mode -> PARAMETER_ERROR) unit-testable with plain gtest, without spinning up rclcpp. Behavior is preserved: the node still publishes outputs and sets status.success/code/message on the happy path, and emits success=false with PARAMETER_ERROR on an unknown mode. Add unit tests for dispatch_mode covering all four valid modes and the previously untested unknown-mode nullopt branch. The public node API is unchanged; dispatch_mode is an additive static method. Refs: autowarefoundation/autoware_core#1096

    * refactor(autoware_command_gate): address review feedback Move autoware_system_msgs/srv/change_operation_mode include from the builder header to the .cpp where ChangeOperationMode::Request is used, decoupling includers from the service definition. Assert stamp propagation in DispatchModeAutonomous/Local/Remote tests by passing non-zero stamps and checking outputs->state.stamp. Refs: autowarefoundation/autoware_core#1096

    * refactor(autoware_command_gate): split mode-output and response builders (#80) Make the ChangeOperationMode service callback route through two pure message-in -> message-out builders: create_mode_output() builds the messages to publish (std::nullopt for unknown modes) and create_response() builds the service response. Both are ROS-node-free static functions that take the request, so they are unit-testable in isolation. Behavior is preserved; the publish-only ModeOutputs no longer carries response status. Refs: autowarefoundation/autoware_core#1096 ---------Co-authored-by: Junya Sasaki <<j2sasaki1990@gmail.com>>

  • feat: add [autoware_command_gate]{.title-ref} and its tests (#1012)

  • Contributors: Junya Sasaki, Yutaka Kondo, github-actions

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged autoware_command_gate at Robotics Stack Exchange

No version for distro galactic showing humble. Known supported distros are highlighted in the buttons above.
Package symbol

autoware_command_gate package from autoware_core repo

autoware_adapi_adaptors autoware_adapi_specs autoware_core_api autoware_default_adapi autoware_core autoware_agnocast_wrapper autoware_component_interface_admission autoware_component_interface_specs autoware_component_interface_utils autoware_geography_utils autoware_global_parameter_loader autoware_interface_spec_lint autoware_interpolation autoware_kalman_filter autoware_lanelet2_utils autoware_marker_utils autoware_motion_utils autoware_node autoware_object_recognition_utils autoware_osqp_interface autoware_point_types autoware_qos_utils autoware_qp_interface autoware_signal_processing autoware_trajectory autoware_vehicle_info_utils autoware_command_gate autoware_core_control autoware_simple_pure_pursuit autoware_awsim_sensor_kit_description autoware_sample_sensor_kit_description autoware_sample_vehicle_description autoware_core_localization autoware_ekf_localizer autoware_gyro_odometer autoware_localization_util autoware_ndt_scan_matcher autoware_pose_initializer autoware_stop_filter autoware_twist2accel autoware_core_map autoware_lanelet2_map_visualizer autoware_map_height_fitter autoware_map_loader autoware_map_projection_loader autoware_core_perception autoware_euclidean_cluster_object_detector autoware_ground_filter autoware_perception_objects_converter autoware_core_planning autoware_mission_planner autoware_objects_of_interest_marker_interface autoware_path_generator autoware_planning_factor_interface autoware_planning_test_manager autoware_planning_topic_converter autoware_route_handler autoware_velocity_smoother autoware_behavior_velocity_planner autoware_behavior_velocity_planner_common autoware_behavior_velocity_stop_line_module autoware_motion_velocity_obstacle_stop_module autoware_motion_velocity_planner autoware_motion_velocity_planner_common autoware_core_sensing autoware_crop_box_filter autoware_downsample_filters autoware_gnss_poser autoware_vehicle_velocity_converter autoware_pyplot autoware_test_node autoware_test_utils autoware_testing autoware_core_vehicle

ROS Distro
humble

Package Summary

Version 1.10.0
License Apache License 2.0
Build type AMENT_CMAKE
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/autowarefoundation/autoware_core.git
VCS Type git
VCS Version main
Last Updated 2026-10-07
Dev Status DEVELOPED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

Simple gateway that maps operation mode service calls to mode state and gear commands.

Maintainers

  • Junya Sasaki

Authors

No additional authors.

autoware_command_gate

A minimal gateway that exposes operation-mode change services and publishes matching state and gear commands.

Features

  • Services /api/operation_mode/change_to_stop and /api/operation_mode/change_to_autonomous (autoware_adapi_v1_msgs/srv/ChangeOperationMode).
  • Publishes /api/operation_mode/state (reliable, transient local QoS) and /control/command/gear_cmd on each service call.
  • STOP -> gear PARK; AUTONOMOUS -> gear DRIVE.

Build

colcon build --packages-select autoware_command_gate --symlink-install

Run

Launch as a node:

ros2 launch autoware_command_gate autoware_command_gate.launch.py

Or run directly:

ros2 run autoware_command_gate autoware_command_gate_exe

Interact

Call services (example from a sourced workspace):

ros2 service call /api/operation_mode/change_to_stop autoware_adapi_v1_msgs/srv/ChangeOperationMode "{}"
ros2 service call /api/operation_mode/change_to_autonomous autoware_adapi_v1_msgs/srv/ChangeOperationMode "{}"

Echo topics:

ros2 topic echo /api/operation_mode/state
ros2 topic echo /control/command/gear_cmd

Tests

Tests are grouped under the following directories:

  • Unit tests: test/unit
  • Integration tests: test/integration

Run all tests:

colcon test --packages-select autoware_command_gate --event-handlers console_direct+

CHANGELOG

Changelog for package autoware_command_gate

1.10.0 (2026-09-28)

  • Merge remote-tracking branch 'origin/main' into tmp/bot/bump_version_base

  • fix(control): declare the dependencies these packages use (#1368)

    * fix(control): declare the dependencies these packages use Each of these packages uses a package it never declares. Either it includes a header of that package, or it names a symbol of it while the header arrives through another dependency. Both build today only because some declared dependency re-exports the owner, so a change in an unrelated repository can break them without anything here changing. The tag follows where the dependency is used: a use in an installed header or in code compiled into the library takes <depend>, one reached only from test/ takes <test_depend>.

    * fix(autoware_command_gate): remove the unused rmw include and dependency autoware_command_gate.cpp includes <rmw/types.h> and uses no symbol from it. Remove the include instead of declaring rmw in package.xml. This removes the <depend>rmw</depend> entry that the previous commit added. ---------

  • refactor(autoware_command_gate): create endpoints through NodeAdaptor (#1328) This file redefined GearCommand as a local struct carrying only a message type and a name, duplicating a spec that already exists centrally with the same two values plus its QoS. Replace the local definition with an alias to the real spec, matching the three aliases beside it, and create all four endpoints through NodeAdaptor. No wire change: the central spec declares depth 1, reliable and volatile, which is what the hand-written rclcpp::QoS{1} at the gear publisher already resolved to.

  • Contributors: Mete Fatih Cırıt, Yutaka Kondo, github-actions

1.9.0 (2026-06-24)

  • chore: align package versions to 1.8.0 and reset changelogs

  • Merge remote-tracking branch 'origin/main' into tmp/bot/bump_version_base

  • refactor(autoware_command_gate): extract ROS-free mode dispatch helper (#1145)

    * refactor(autoware_command_gate): extract ROS-free mode dispatch helper Move the request-to-mode dispatch (switch on the requested operation mode and build the corresponding outputs) out of the node's service-callback lambda into a ROS-free static helper CommandGateModeBuilder::dispatch_mode, which returns std::optional<ModeOutputs> (std::nullopt for unknown/unsupported modes). This makes the dispatch and its only error path (unknown mode -> PARAMETER_ERROR) unit-testable with plain gtest, without spinning up rclcpp. Behavior is preserved: the node still publishes outputs and sets status.success/code/message on the happy path, and emits success=false with PARAMETER_ERROR on an unknown mode. Add unit tests for dispatch_mode covering all four valid modes and the previously untested unknown-mode nullopt branch. The public node API is unchanged; dispatch_mode is an additive static method. Refs: autowarefoundation/autoware_core#1096

    * refactor(autoware_command_gate): address review feedback Move autoware_system_msgs/srv/change_operation_mode include from the builder header to the .cpp where ChangeOperationMode::Request is used, decoupling includers from the service definition. Assert stamp propagation in DispatchModeAutonomous/Local/Remote tests by passing non-zero stamps and checking outputs->state.stamp. Refs: autowarefoundation/autoware_core#1096

    * refactor(autoware_command_gate): split mode-output and response builders (#80) Make the ChangeOperationMode service callback route through two pure message-in -> message-out builders: create_mode_output() builds the messages to publish (std::nullopt for unknown modes) and create_response() builds the service response. Both are ROS-node-free static functions that take the request, so they are unit-testable in isolation. Behavior is preserved; the publish-only ModeOutputs no longer carries response status. Refs: autowarefoundation/autoware_core#1096 ---------Co-authored-by: Junya Sasaki <<j2sasaki1990@gmail.com>>

  • feat: add [autoware_command_gate]{.title-ref} and its tests (#1012)

  • Contributors: Junya Sasaki, Yutaka Kondo, github-actions

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged autoware_command_gate at Robotics Stack Exchange

No version for distro foxy showing humble. Known supported distros are highlighted in the buttons above.
Package symbol

autoware_command_gate package from autoware_core repo

autoware_adapi_adaptors autoware_adapi_specs autoware_core_api autoware_default_adapi autoware_core autoware_agnocast_wrapper autoware_component_interface_admission autoware_component_interface_specs autoware_component_interface_utils autoware_geography_utils autoware_global_parameter_loader autoware_interface_spec_lint autoware_interpolation autoware_kalman_filter autoware_lanelet2_utils autoware_marker_utils autoware_motion_utils autoware_node autoware_object_recognition_utils autoware_osqp_interface autoware_point_types autoware_qos_utils autoware_qp_interface autoware_signal_processing autoware_trajectory autoware_vehicle_info_utils autoware_command_gate autoware_core_control autoware_simple_pure_pursuit autoware_awsim_sensor_kit_description autoware_sample_sensor_kit_description autoware_sample_vehicle_description autoware_core_localization autoware_ekf_localizer autoware_gyro_odometer autoware_localization_util autoware_ndt_scan_matcher autoware_pose_initializer autoware_stop_filter autoware_twist2accel autoware_core_map autoware_lanelet2_map_visualizer autoware_map_height_fitter autoware_map_loader autoware_map_projection_loader autoware_core_perception autoware_euclidean_cluster_object_detector autoware_ground_filter autoware_perception_objects_converter autoware_core_planning autoware_mission_planner autoware_objects_of_interest_marker_interface autoware_path_generator autoware_planning_factor_interface autoware_planning_test_manager autoware_planning_topic_converter autoware_route_handler autoware_velocity_smoother autoware_behavior_velocity_planner autoware_behavior_velocity_planner_common autoware_behavior_velocity_stop_line_module autoware_motion_velocity_obstacle_stop_module autoware_motion_velocity_planner autoware_motion_velocity_planner_common autoware_core_sensing autoware_crop_box_filter autoware_downsample_filters autoware_gnss_poser autoware_vehicle_velocity_converter autoware_pyplot autoware_test_node autoware_test_utils autoware_testing autoware_core_vehicle

ROS Distro
humble

Package Summary

Version 1.10.0
License Apache License 2.0
Build type AMENT_CMAKE
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/autowarefoundation/autoware_core.git
VCS Type git
VCS Version main
Last Updated 2026-10-07
Dev Status DEVELOPED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

Simple gateway that maps operation mode service calls to mode state and gear commands.

Maintainers

  • Junya Sasaki

Authors

No additional authors.

autoware_command_gate

A minimal gateway that exposes operation-mode change services and publishes matching state and gear commands.

Features

  • Services /api/operation_mode/change_to_stop and /api/operation_mode/change_to_autonomous (autoware_adapi_v1_msgs/srv/ChangeOperationMode).
  • Publishes /api/operation_mode/state (reliable, transient local QoS) and /control/command/gear_cmd on each service call.
  • STOP -> gear PARK; AUTONOMOUS -> gear DRIVE.

Build

colcon build --packages-select autoware_command_gate --symlink-install

Run

Launch as a node:

ros2 launch autoware_command_gate autoware_command_gate.launch.py

Or run directly:

ros2 run autoware_command_gate autoware_command_gate_exe

Interact

Call services (example from a sourced workspace):

ros2 service call /api/operation_mode/change_to_stop autoware_adapi_v1_msgs/srv/ChangeOperationMode "{}"
ros2 service call /api/operation_mode/change_to_autonomous autoware_adapi_v1_msgs/srv/ChangeOperationMode "{}"

Echo topics:

ros2 topic echo /api/operation_mode/state
ros2 topic echo /control/command/gear_cmd

Tests

Tests are grouped under the following directories:

  • Unit tests: test/unit
  • Integration tests: test/integration

Run all tests:

colcon test --packages-select autoware_command_gate --event-handlers console_direct+

CHANGELOG

Changelog for package autoware_command_gate

1.10.0 (2026-09-28)

  • Merge remote-tracking branch 'origin/main' into tmp/bot/bump_version_base

  • fix(control): declare the dependencies these packages use (#1368)

    * fix(control): declare the dependencies these packages use Each of these packages uses a package it never declares. Either it includes a header of that package, or it names a symbol of it while the header arrives through another dependency. Both build today only because some declared dependency re-exports the owner, so a change in an unrelated repository can break them without anything here changing. The tag follows where the dependency is used: a use in an installed header or in code compiled into the library takes <depend>, one reached only from test/ takes <test_depend>.

    * fix(autoware_command_gate): remove the unused rmw include and dependency autoware_command_gate.cpp includes <rmw/types.h> and uses no symbol from it. Remove the include instead of declaring rmw in package.xml. This removes the <depend>rmw</depend> entry that the previous commit added. ---------

  • refactor(autoware_command_gate): create endpoints through NodeAdaptor (#1328) This file redefined GearCommand as a local struct carrying only a message type and a name, duplicating a spec that already exists centrally with the same two values plus its QoS. Replace the local definition with an alias to the real spec, matching the three aliases beside it, and create all four endpoints through NodeAdaptor. No wire change: the central spec declares depth 1, reliable and volatile, which is what the hand-written rclcpp::QoS{1} at the gear publisher already resolved to.

  • Contributors: Mete Fatih Cırıt, Yutaka Kondo, github-actions

1.9.0 (2026-06-24)

  • chore: align package versions to 1.8.0 and reset changelogs

  • Merge remote-tracking branch 'origin/main' into tmp/bot/bump_version_base

  • refactor(autoware_command_gate): extract ROS-free mode dispatch helper (#1145)

    * refactor(autoware_command_gate): extract ROS-free mode dispatch helper Move the request-to-mode dispatch (switch on the requested operation mode and build the corresponding outputs) out of the node's service-callback lambda into a ROS-free static helper CommandGateModeBuilder::dispatch_mode, which returns std::optional<ModeOutputs> (std::nullopt for unknown/unsupported modes). This makes the dispatch and its only error path (unknown mode -> PARAMETER_ERROR) unit-testable with plain gtest, without spinning up rclcpp. Behavior is preserved: the node still publishes outputs and sets status.success/code/message on the happy path, and emits success=false with PARAMETER_ERROR on an unknown mode. Add unit tests for dispatch_mode covering all four valid modes and the previously untested unknown-mode nullopt branch. The public node API is unchanged; dispatch_mode is an additive static method. Refs: autowarefoundation/autoware_core#1096

    * refactor(autoware_command_gate): address review feedback Move autoware_system_msgs/srv/change_operation_mode include from the builder header to the .cpp where ChangeOperationMode::Request is used, decoupling includers from the service definition. Assert stamp propagation in DispatchModeAutonomous/Local/Remote tests by passing non-zero stamps and checking outputs->state.stamp. Refs: autowarefoundation/autoware_core#1096

    * refactor(autoware_command_gate): split mode-output and response builders (#80) Make the ChangeOperationMode service callback route through two pure message-in -> message-out builders: create_mode_output() builds the messages to publish (std::nullopt for unknown modes) and create_response() builds the service response. Both are ROS-node-free static functions that take the request, so they are unit-testable in isolation. Behavior is preserved; the publish-only ModeOutputs no longer carries response status. Refs: autowarefoundation/autoware_core#1096 ---------Co-authored-by: Junya Sasaki <<j2sasaki1990@gmail.com>>

  • feat: add [autoware_command_gate]{.title-ref} and its tests (#1012)

  • Contributors: Junya Sasaki, Yutaka Kondo, github-actions

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged autoware_command_gate at Robotics Stack Exchange

No version for distro iron showing humble. Known supported distros are highlighted in the buttons above.
Package symbol

autoware_command_gate package from autoware_core repo

autoware_adapi_adaptors autoware_adapi_specs autoware_core_api autoware_default_adapi autoware_core autoware_agnocast_wrapper autoware_component_interface_admission autoware_component_interface_specs autoware_component_interface_utils autoware_geography_utils autoware_global_parameter_loader autoware_interface_spec_lint autoware_interpolation autoware_kalman_filter autoware_lanelet2_utils autoware_marker_utils autoware_motion_utils autoware_node autoware_object_recognition_utils autoware_osqp_interface autoware_point_types autoware_qos_utils autoware_qp_interface autoware_signal_processing autoware_trajectory autoware_vehicle_info_utils autoware_command_gate autoware_core_control autoware_simple_pure_pursuit autoware_awsim_sensor_kit_description autoware_sample_sensor_kit_description autoware_sample_vehicle_description autoware_core_localization autoware_ekf_localizer autoware_gyro_odometer autoware_localization_util autoware_ndt_scan_matcher autoware_pose_initializer autoware_stop_filter autoware_twist2accel autoware_core_map autoware_lanelet2_map_visualizer autoware_map_height_fitter autoware_map_loader autoware_map_projection_loader autoware_core_perception autoware_euclidean_cluster_object_detector autoware_ground_filter autoware_perception_objects_converter autoware_core_planning autoware_mission_planner autoware_objects_of_interest_marker_interface autoware_path_generator autoware_planning_factor_interface autoware_planning_test_manager autoware_planning_topic_converter autoware_route_handler autoware_velocity_smoother autoware_behavior_velocity_planner autoware_behavior_velocity_planner_common autoware_behavior_velocity_stop_line_module autoware_motion_velocity_obstacle_stop_module autoware_motion_velocity_planner autoware_motion_velocity_planner_common autoware_core_sensing autoware_crop_box_filter autoware_downsample_filters autoware_gnss_poser autoware_vehicle_velocity_converter autoware_pyplot autoware_test_node autoware_test_utils autoware_testing autoware_core_vehicle

ROS Distro
humble

Package Summary

Version 1.10.0
License Apache License 2.0
Build type AMENT_CMAKE
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/autowarefoundation/autoware_core.git
VCS Type git
VCS Version main
Last Updated 2026-10-07
Dev Status DEVELOPED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

Simple gateway that maps operation mode service calls to mode state and gear commands.

Maintainers

  • Junya Sasaki

Authors

No additional authors.

autoware_command_gate

A minimal gateway that exposes operation-mode change services and publishes matching state and gear commands.

Features

  • Services /api/operation_mode/change_to_stop and /api/operation_mode/change_to_autonomous (autoware_adapi_v1_msgs/srv/ChangeOperationMode).
  • Publishes /api/operation_mode/state (reliable, transient local QoS) and /control/command/gear_cmd on each service call.
  • STOP -> gear PARK; AUTONOMOUS -> gear DRIVE.

Build

colcon build --packages-select autoware_command_gate --symlink-install

Run

Launch as a node:

ros2 launch autoware_command_gate autoware_command_gate.launch.py

Or run directly:

ros2 run autoware_command_gate autoware_command_gate_exe

Interact

Call services (example from a sourced workspace):

ros2 service call /api/operation_mode/change_to_stop autoware_adapi_v1_msgs/srv/ChangeOperationMode "{}"
ros2 service call /api/operation_mode/change_to_autonomous autoware_adapi_v1_msgs/srv/ChangeOperationMode "{}"

Echo topics:

ros2 topic echo /api/operation_mode/state
ros2 topic echo /control/command/gear_cmd

Tests

Tests are grouped under the following directories:

  • Unit tests: test/unit
  • Integration tests: test/integration

Run all tests:

colcon test --packages-select autoware_command_gate --event-handlers console_direct+

CHANGELOG

Changelog for package autoware_command_gate

1.10.0 (2026-09-28)

  • Merge remote-tracking branch 'origin/main' into tmp/bot/bump_version_base

  • fix(control): declare the dependencies these packages use (#1368)

    * fix(control): declare the dependencies these packages use Each of these packages uses a package it never declares. Either it includes a header of that package, or it names a symbol of it while the header arrives through another dependency. Both build today only because some declared dependency re-exports the owner, so a change in an unrelated repository can break them without anything here changing. The tag follows where the dependency is used: a use in an installed header or in code compiled into the library takes <depend>, one reached only from test/ takes <test_depend>.

    * fix(autoware_command_gate): remove the unused rmw include and dependency autoware_command_gate.cpp includes <rmw/types.h> and uses no symbol from it. Remove the include instead of declaring rmw in package.xml. This removes the <depend>rmw</depend> entry that the previous commit added. ---------

  • refactor(autoware_command_gate): create endpoints through NodeAdaptor (#1328) This file redefined GearCommand as a local struct carrying only a message type and a name, duplicating a spec that already exists centrally with the same two values plus its QoS. Replace the local definition with an alias to the real spec, matching the three aliases beside it, and create all four endpoints through NodeAdaptor. No wire change: the central spec declares depth 1, reliable and volatile, which is what the hand-written rclcpp::QoS{1} at the gear publisher already resolved to.

  • Contributors: Mete Fatih Cırıt, Yutaka Kondo, github-actions

1.9.0 (2026-06-24)

  • chore: align package versions to 1.8.0 and reset changelogs

  • Merge remote-tracking branch 'origin/main' into tmp/bot/bump_version_base

  • refactor(autoware_command_gate): extract ROS-free mode dispatch helper (#1145)

    * refactor(autoware_command_gate): extract ROS-free mode dispatch helper Move the request-to-mode dispatch (switch on the requested operation mode and build the corresponding outputs) out of the node's service-callback lambda into a ROS-free static helper CommandGateModeBuilder::dispatch_mode, which returns std::optional<ModeOutputs> (std::nullopt for unknown/unsupported modes). This makes the dispatch and its only error path (unknown mode -> PARAMETER_ERROR) unit-testable with plain gtest, without spinning up rclcpp. Behavior is preserved: the node still publishes outputs and sets status.success/code/message on the happy path, and emits success=false with PARAMETER_ERROR on an unknown mode. Add unit tests for dispatch_mode covering all four valid modes and the previously untested unknown-mode nullopt branch. The public node API is unchanged; dispatch_mode is an additive static method. Refs: autowarefoundation/autoware_core#1096

    * refactor(autoware_command_gate): address review feedback Move autoware_system_msgs/srv/change_operation_mode include from the builder header to the .cpp where ChangeOperationMode::Request is used, decoupling includers from the service definition. Assert stamp propagation in DispatchModeAutonomous/Local/Remote tests by passing non-zero stamps and checking outputs->state.stamp. Refs: autowarefoundation/autoware_core#1096

    * refactor(autoware_command_gate): split mode-output and response builders (#80) Make the ChangeOperationMode service callback route through two pure message-in -> message-out builders: create_mode_output() builds the messages to publish (std::nullopt for unknown modes) and create_response() builds the service response. Both are ROS-node-free static functions that take the request, so they are unit-testable in isolation. Behavior is preserved; the publish-only ModeOutputs no longer carries response status. Refs: autowarefoundation/autoware_core#1096 ---------Co-authored-by: Junya Sasaki <<j2sasaki1990@gmail.com>>

  • feat: add [autoware_command_gate]{.title-ref} and its tests (#1012)

  • Contributors: Junya Sasaki, Yutaka Kondo, github-actions

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged autoware_command_gate at Robotics Stack Exchange

No version for distro lunar showing humble. Known supported distros are highlighted in the buttons above.
Package symbol

autoware_command_gate package from autoware_core repo

autoware_adapi_adaptors autoware_adapi_specs autoware_core_api autoware_default_adapi autoware_core autoware_agnocast_wrapper autoware_component_interface_admission autoware_component_interface_specs autoware_component_interface_utils autoware_geography_utils autoware_global_parameter_loader autoware_interface_spec_lint autoware_interpolation autoware_kalman_filter autoware_lanelet2_utils autoware_marker_utils autoware_motion_utils autoware_node autoware_object_recognition_utils autoware_osqp_interface autoware_point_types autoware_qos_utils autoware_qp_interface autoware_signal_processing autoware_trajectory autoware_vehicle_info_utils autoware_command_gate autoware_core_control autoware_simple_pure_pursuit autoware_awsim_sensor_kit_description autoware_sample_sensor_kit_description autoware_sample_vehicle_description autoware_core_localization autoware_ekf_localizer autoware_gyro_odometer autoware_localization_util autoware_ndt_scan_matcher autoware_pose_initializer autoware_stop_filter autoware_twist2accel autoware_core_map autoware_lanelet2_map_visualizer autoware_map_height_fitter autoware_map_loader autoware_map_projection_loader autoware_core_perception autoware_euclidean_cluster_object_detector autoware_ground_filter autoware_perception_objects_converter autoware_core_planning autoware_mission_planner autoware_objects_of_interest_marker_interface autoware_path_generator autoware_planning_factor_interface autoware_planning_test_manager autoware_planning_topic_converter autoware_route_handler autoware_velocity_smoother autoware_behavior_velocity_planner autoware_behavior_velocity_planner_common autoware_behavior_velocity_stop_line_module autoware_motion_velocity_obstacle_stop_module autoware_motion_velocity_planner autoware_motion_velocity_planner_common autoware_core_sensing autoware_crop_box_filter autoware_downsample_filters autoware_gnss_poser autoware_vehicle_velocity_converter autoware_pyplot autoware_test_node autoware_test_utils autoware_testing autoware_core_vehicle

ROS Distro
humble

Package Summary

Version 1.10.0
License Apache License 2.0
Build type AMENT_CMAKE
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/autowarefoundation/autoware_core.git
VCS Type git
VCS Version main
Last Updated 2026-10-07
Dev Status DEVELOPED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

Simple gateway that maps operation mode service calls to mode state and gear commands.

Maintainers

  • Junya Sasaki

Authors

No additional authors.

autoware_command_gate

A minimal gateway that exposes operation-mode change services and publishes matching state and gear commands.

Features

  • Services /api/operation_mode/change_to_stop and /api/operation_mode/change_to_autonomous (autoware_adapi_v1_msgs/srv/ChangeOperationMode).
  • Publishes /api/operation_mode/state (reliable, transient local QoS) and /control/command/gear_cmd on each service call.
  • STOP -> gear PARK; AUTONOMOUS -> gear DRIVE.

Build

colcon build --packages-select autoware_command_gate --symlink-install

Run

Launch as a node:

ros2 launch autoware_command_gate autoware_command_gate.launch.py

Or run directly:

ros2 run autoware_command_gate autoware_command_gate_exe

Interact

Call services (example from a sourced workspace):

ros2 service call /api/operation_mode/change_to_stop autoware_adapi_v1_msgs/srv/ChangeOperationMode "{}"
ros2 service call /api/operation_mode/change_to_autonomous autoware_adapi_v1_msgs/srv/ChangeOperationMode "{}"

Echo topics:

ros2 topic echo /api/operation_mode/state
ros2 topic echo /control/command/gear_cmd

Tests

Tests are grouped under the following directories:

  • Unit tests: test/unit
  • Integration tests: test/integration

Run all tests:

colcon test --packages-select autoware_command_gate --event-handlers console_direct+

CHANGELOG

Changelog for package autoware_command_gate

1.10.0 (2026-09-28)

  • Merge remote-tracking branch 'origin/main' into tmp/bot/bump_version_base

  • fix(control): declare the dependencies these packages use (#1368)

    * fix(control): declare the dependencies these packages use Each of these packages uses a package it never declares. Either it includes a header of that package, or it names a symbol of it while the header arrives through another dependency. Both build today only because some declared dependency re-exports the owner, so a change in an unrelated repository can break them without anything here changing. The tag follows where the dependency is used: a use in an installed header or in code compiled into the library takes <depend>, one reached only from test/ takes <test_depend>.

    * fix(autoware_command_gate): remove the unused rmw include and dependency autoware_command_gate.cpp includes <rmw/types.h> and uses no symbol from it. Remove the include instead of declaring rmw in package.xml. This removes the <depend>rmw</depend> entry that the previous commit added. ---------

  • refactor(autoware_command_gate): create endpoints through NodeAdaptor (#1328) This file redefined GearCommand as a local struct carrying only a message type and a name, duplicating a spec that already exists centrally with the same two values plus its QoS. Replace the local definition with an alias to the real spec, matching the three aliases beside it, and create all four endpoints through NodeAdaptor. No wire change: the central spec declares depth 1, reliable and volatile, which is what the hand-written rclcpp::QoS{1} at the gear publisher already resolved to.

  • Contributors: Mete Fatih Cırıt, Yutaka Kondo, github-actions

1.9.0 (2026-06-24)

  • chore: align package versions to 1.8.0 and reset changelogs

  • Merge remote-tracking branch 'origin/main' into tmp/bot/bump_version_base

  • refactor(autoware_command_gate): extract ROS-free mode dispatch helper (#1145)

    * refactor(autoware_command_gate): extract ROS-free mode dispatch helper Move the request-to-mode dispatch (switch on the requested operation mode and build the corresponding outputs) out of the node's service-callback lambda into a ROS-free static helper CommandGateModeBuilder::dispatch_mode, which returns std::optional<ModeOutputs> (std::nullopt for unknown/unsupported modes). This makes the dispatch and its only error path (unknown mode -> PARAMETER_ERROR) unit-testable with plain gtest, without spinning up rclcpp. Behavior is preserved: the node still publishes outputs and sets status.success/code/message on the happy path, and emits success=false with PARAMETER_ERROR on an unknown mode. Add unit tests for dispatch_mode covering all four valid modes and the previously untested unknown-mode nullopt branch. The public node API is unchanged; dispatch_mode is an additive static method. Refs: autowarefoundation/autoware_core#1096

    * refactor(autoware_command_gate): address review feedback Move autoware_system_msgs/srv/change_operation_mode include from the builder header to the .cpp where ChangeOperationMode::Request is used, decoupling includers from the service definition. Assert stamp propagation in DispatchModeAutonomous/Local/Remote tests by passing non-zero stamps and checking outputs->state.stamp. Refs: autowarefoundation/autoware_core#1096

    * refactor(autoware_command_gate): split mode-output and response builders (#80) Make the ChangeOperationMode service callback route through two pure message-in -> message-out builders: create_mode_output() builds the messages to publish (std::nullopt for unknown modes) and create_response() builds the service response. Both are ROS-node-free static functions that take the request, so they are unit-testable in isolation. Behavior is preserved; the publish-only ModeOutputs no longer carries response status. Refs: autowarefoundation/autoware_core#1096 ---------Co-authored-by: Junya Sasaki <<j2sasaki1990@gmail.com>>

  • feat: add [autoware_command_gate]{.title-ref} and its tests (#1012)

  • Contributors: Junya Sasaki, Yutaka Kondo, github-actions

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged autoware_command_gate at Robotics Stack Exchange

No version for distro jade showing humble. Known supported distros are highlighted in the buttons above.
Package symbol

autoware_command_gate package from autoware_core repo

autoware_adapi_adaptors autoware_adapi_specs autoware_core_api autoware_default_adapi autoware_core autoware_agnocast_wrapper autoware_component_interface_admission autoware_component_interface_specs autoware_component_interface_utils autoware_geography_utils autoware_global_parameter_loader autoware_interface_spec_lint autoware_interpolation autoware_kalman_filter autoware_lanelet2_utils autoware_marker_utils autoware_motion_utils autoware_node autoware_object_recognition_utils autoware_osqp_interface autoware_point_types autoware_qos_utils autoware_qp_interface autoware_signal_processing autoware_trajectory autoware_vehicle_info_utils autoware_command_gate autoware_core_control autoware_simple_pure_pursuit autoware_awsim_sensor_kit_description autoware_sample_sensor_kit_description autoware_sample_vehicle_description autoware_core_localization autoware_ekf_localizer autoware_gyro_odometer autoware_localization_util autoware_ndt_scan_matcher autoware_pose_initializer autoware_stop_filter autoware_twist2accel autoware_core_map autoware_lanelet2_map_visualizer autoware_map_height_fitter autoware_map_loader autoware_map_projection_loader autoware_core_perception autoware_euclidean_cluster_object_detector autoware_ground_filter autoware_perception_objects_converter autoware_core_planning autoware_mission_planner autoware_objects_of_interest_marker_interface autoware_path_generator autoware_planning_factor_interface autoware_planning_test_manager autoware_planning_topic_converter autoware_route_handler autoware_velocity_smoother autoware_behavior_velocity_planner autoware_behavior_velocity_planner_common autoware_behavior_velocity_stop_line_module autoware_motion_velocity_obstacle_stop_module autoware_motion_velocity_planner autoware_motion_velocity_planner_common autoware_core_sensing autoware_crop_box_filter autoware_downsample_filters autoware_gnss_poser autoware_vehicle_velocity_converter autoware_pyplot autoware_test_node autoware_test_utils autoware_testing autoware_core_vehicle

ROS Distro
humble

Package Summary

Version 1.10.0
License Apache License 2.0
Build type AMENT_CMAKE
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/autowarefoundation/autoware_core.git
VCS Type git
VCS Version main
Last Updated 2026-10-07
Dev Status DEVELOPED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

Simple gateway that maps operation mode service calls to mode state and gear commands.

Maintainers

  • Junya Sasaki

Authors

No additional authors.

autoware_command_gate

A minimal gateway that exposes operation-mode change services and publishes matching state and gear commands.

Features

  • Services /api/operation_mode/change_to_stop and /api/operation_mode/change_to_autonomous (autoware_adapi_v1_msgs/srv/ChangeOperationMode).
  • Publishes /api/operation_mode/state (reliable, transient local QoS) and /control/command/gear_cmd on each service call.
  • STOP -> gear PARK; AUTONOMOUS -> gear DRIVE.

Build

colcon build --packages-select autoware_command_gate --symlink-install

Run

Launch as a node:

ros2 launch autoware_command_gate autoware_command_gate.launch.py

Or run directly:

ros2 run autoware_command_gate autoware_command_gate_exe

Interact

Call services (example from a sourced workspace):

ros2 service call /api/operation_mode/change_to_stop autoware_adapi_v1_msgs/srv/ChangeOperationMode "{}"
ros2 service call /api/operation_mode/change_to_autonomous autoware_adapi_v1_msgs/srv/ChangeOperationMode "{}"

Echo topics:

ros2 topic echo /api/operation_mode/state
ros2 topic echo /control/command/gear_cmd

Tests

Tests are grouped under the following directories:

  • Unit tests: test/unit
  • Integration tests: test/integration

Run all tests:

colcon test --packages-select autoware_command_gate --event-handlers console_direct+

CHANGELOG

Changelog for package autoware_command_gate

1.10.0 (2026-09-28)

  • Merge remote-tracking branch 'origin/main' into tmp/bot/bump_version_base

  • fix(control): declare the dependencies these packages use (#1368)

    * fix(control): declare the dependencies these packages use Each of these packages uses a package it never declares. Either it includes a header of that package, or it names a symbol of it while the header arrives through another dependency. Both build today only because some declared dependency re-exports the owner, so a change in an unrelated repository can break them without anything here changing. The tag follows where the dependency is used: a use in an installed header or in code compiled into the library takes <depend>, one reached only from test/ takes <test_depend>.

    * fix(autoware_command_gate): remove the unused rmw include and dependency autoware_command_gate.cpp includes <rmw/types.h> and uses no symbol from it. Remove the include instead of declaring rmw in package.xml. This removes the <depend>rmw</depend> entry that the previous commit added. ---------

  • refactor(autoware_command_gate): create endpoints through NodeAdaptor (#1328) This file redefined GearCommand as a local struct carrying only a message type and a name, duplicating a spec that already exists centrally with the same two values plus its QoS. Replace the local definition with an alias to the real spec, matching the three aliases beside it, and create all four endpoints through NodeAdaptor. No wire change: the central spec declares depth 1, reliable and volatile, which is what the hand-written rclcpp::QoS{1} at the gear publisher already resolved to.

  • Contributors: Mete Fatih Cırıt, Yutaka Kondo, github-actions

1.9.0 (2026-06-24)

  • chore: align package versions to 1.8.0 and reset changelogs

  • Merge remote-tracking branch 'origin/main' into tmp/bot/bump_version_base

  • refactor(autoware_command_gate): extract ROS-free mode dispatch helper (#1145)

    * refactor(autoware_command_gate): extract ROS-free mode dispatch helper Move the request-to-mode dispatch (switch on the requested operation mode and build the corresponding outputs) out of the node's service-callback lambda into a ROS-free static helper CommandGateModeBuilder::dispatch_mode, which returns std::optional<ModeOutputs> (std::nullopt for unknown/unsupported modes). This makes the dispatch and its only error path (unknown mode -> PARAMETER_ERROR) unit-testable with plain gtest, without spinning up rclcpp. Behavior is preserved: the node still publishes outputs and sets status.success/code/message on the happy path, and emits success=false with PARAMETER_ERROR on an unknown mode. Add unit tests for dispatch_mode covering all four valid modes and the previously untested unknown-mode nullopt branch. The public node API is unchanged; dispatch_mode is an additive static method. Refs: autowarefoundation/autoware_core#1096

    * refactor(autoware_command_gate): address review feedback Move autoware_system_msgs/srv/change_operation_mode include from the builder header to the .cpp where ChangeOperationMode::Request is used, decoupling includers from the service definition. Assert stamp propagation in DispatchModeAutonomous/Local/Remote tests by passing non-zero stamps and checking outputs->state.stamp. Refs: autowarefoundation/autoware_core#1096

    * refactor(autoware_command_gate): split mode-output and response builders (#80) Make the ChangeOperationMode service callback route through two pure message-in -> message-out builders: create_mode_output() builds the messages to publish (std::nullopt for unknown modes) and create_response() builds the service response. Both are ROS-node-free static functions that take the request, so they are unit-testable in isolation. Behavior is preserved; the publish-only ModeOutputs no longer carries response status. Refs: autowarefoundation/autoware_core#1096 ---------Co-authored-by: Junya Sasaki <<j2sasaki1990@gmail.com>>

  • feat: add [autoware_command_gate]{.title-ref} and its tests (#1012)

  • Contributors: Junya Sasaki, Yutaka Kondo, github-actions

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged autoware_command_gate at Robotics Stack Exchange

No version for distro indigo showing humble. Known supported distros are highlighted in the buttons above.
Package symbol

autoware_command_gate package from autoware_core repo

autoware_adapi_adaptors autoware_adapi_specs autoware_core_api autoware_default_adapi autoware_core autoware_agnocast_wrapper autoware_component_interface_admission autoware_component_interface_specs autoware_component_interface_utils autoware_geography_utils autoware_global_parameter_loader autoware_interface_spec_lint autoware_interpolation autoware_kalman_filter autoware_lanelet2_utils autoware_marker_utils autoware_motion_utils autoware_node autoware_object_recognition_utils autoware_osqp_interface autoware_point_types autoware_qos_utils autoware_qp_interface autoware_signal_processing autoware_trajectory autoware_vehicle_info_utils autoware_command_gate autoware_core_control autoware_simple_pure_pursuit autoware_awsim_sensor_kit_description autoware_sample_sensor_kit_description autoware_sample_vehicle_description autoware_core_localization autoware_ekf_localizer autoware_gyro_odometer autoware_localization_util autoware_ndt_scan_matcher autoware_pose_initializer autoware_stop_filter autoware_twist2accel autoware_core_map autoware_lanelet2_map_visualizer autoware_map_height_fitter autoware_map_loader autoware_map_projection_loader autoware_core_perception autoware_euclidean_cluster_object_detector autoware_ground_filter autoware_perception_objects_converter autoware_core_planning autoware_mission_planner autoware_objects_of_interest_marker_interface autoware_path_generator autoware_planning_factor_interface autoware_planning_test_manager autoware_planning_topic_converter autoware_route_handler autoware_velocity_smoother autoware_behavior_velocity_planner autoware_behavior_velocity_planner_common autoware_behavior_velocity_stop_line_module autoware_motion_velocity_obstacle_stop_module autoware_motion_velocity_planner autoware_motion_velocity_planner_common autoware_core_sensing autoware_crop_box_filter autoware_downsample_filters autoware_gnss_poser autoware_vehicle_velocity_converter autoware_pyplot autoware_test_node autoware_test_utils autoware_testing autoware_core_vehicle

ROS Distro
humble

Package Summary

Version 1.10.0
License Apache License 2.0
Build type AMENT_CMAKE
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/autowarefoundation/autoware_core.git
VCS Type git
VCS Version main
Last Updated 2026-10-07
Dev Status DEVELOPED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

Simple gateway that maps operation mode service calls to mode state and gear commands.

Maintainers

  • Junya Sasaki

Authors

No additional authors.

autoware_command_gate

A minimal gateway that exposes operation-mode change services and publishes matching state and gear commands.

Features

  • Services /api/operation_mode/change_to_stop and /api/operation_mode/change_to_autonomous (autoware_adapi_v1_msgs/srv/ChangeOperationMode).
  • Publishes /api/operation_mode/state (reliable, transient local QoS) and /control/command/gear_cmd on each service call.
  • STOP -> gear PARK; AUTONOMOUS -> gear DRIVE.

Build

colcon build --packages-select autoware_command_gate --symlink-install

Run

Launch as a node:

ros2 launch autoware_command_gate autoware_command_gate.launch.py

Or run directly:

ros2 run autoware_command_gate autoware_command_gate_exe

Interact

Call services (example from a sourced workspace):

ros2 service call /api/operation_mode/change_to_stop autoware_adapi_v1_msgs/srv/ChangeOperationMode "{}"
ros2 service call /api/operation_mode/change_to_autonomous autoware_adapi_v1_msgs/srv/ChangeOperationMode "{}"

Echo topics:

ros2 topic echo /api/operation_mode/state
ros2 topic echo /control/command/gear_cmd

Tests

Tests are grouped under the following directories:

  • Unit tests: test/unit
  • Integration tests: test/integration

Run all tests:

colcon test --packages-select autoware_command_gate --event-handlers console_direct+

CHANGELOG

Changelog for package autoware_command_gate

1.10.0 (2026-09-28)

  • Merge remote-tracking branch 'origin/main' into tmp/bot/bump_version_base

  • fix(control): declare the dependencies these packages use (#1368)

    * fix(control): declare the dependencies these packages use Each of these packages uses a package it never declares. Either it includes a header of that package, or it names a symbol of it while the header arrives through another dependency. Both build today only because some declared dependency re-exports the owner, so a change in an unrelated repository can break them without anything here changing. The tag follows where the dependency is used: a use in an installed header or in code compiled into the library takes <depend>, one reached only from test/ takes <test_depend>.

    * fix(autoware_command_gate): remove the unused rmw include and dependency autoware_command_gate.cpp includes <rmw/types.h> and uses no symbol from it. Remove the include instead of declaring rmw in package.xml. This removes the <depend>rmw</depend> entry that the previous commit added. ---------

  • refactor(autoware_command_gate): create endpoints through NodeAdaptor (#1328) This file redefined GearCommand as a local struct carrying only a message type and a name, duplicating a spec that already exists centrally with the same two values plus its QoS. Replace the local definition with an alias to the real spec, matching the three aliases beside it, and create all four endpoints through NodeAdaptor. No wire change: the central spec declares depth 1, reliable and volatile, which is what the hand-written rclcpp::QoS{1} at the gear publisher already resolved to.

  • Contributors: Mete Fatih Cırıt, Yutaka Kondo, github-actions

1.9.0 (2026-06-24)

  • chore: align package versions to 1.8.0 and reset changelogs

  • Merge remote-tracking branch 'origin/main' into tmp/bot/bump_version_base

  • refactor(autoware_command_gate): extract ROS-free mode dispatch helper (#1145)

    * refactor(autoware_command_gate): extract ROS-free mode dispatch helper Move the request-to-mode dispatch (switch on the requested operation mode and build the corresponding outputs) out of the node's service-callback lambda into a ROS-free static helper CommandGateModeBuilder::dispatch_mode, which returns std::optional<ModeOutputs> (std::nullopt for unknown/unsupported modes). This makes the dispatch and its only error path (unknown mode -> PARAMETER_ERROR) unit-testable with plain gtest, without spinning up rclcpp. Behavior is preserved: the node still publishes outputs and sets status.success/code/message on the happy path, and emits success=false with PARAMETER_ERROR on an unknown mode. Add unit tests for dispatch_mode covering all four valid modes and the previously untested unknown-mode nullopt branch. The public node API is unchanged; dispatch_mode is an additive static method. Refs: autowarefoundation/autoware_core#1096

    * refactor(autoware_command_gate): address review feedback Move autoware_system_msgs/srv/change_operation_mode include from the builder header to the .cpp where ChangeOperationMode::Request is used, decoupling includers from the service definition. Assert stamp propagation in DispatchModeAutonomous/Local/Remote tests by passing non-zero stamps and checking outputs->state.stamp. Refs: autowarefoundation/autoware_core#1096

    * refactor(autoware_command_gate): split mode-output and response builders (#80) Make the ChangeOperationMode service callback route through two pure message-in -> message-out builders: create_mode_output() builds the messages to publish (std::nullopt for unknown modes) and create_response() builds the service response. Both are ROS-node-free static functions that take the request, so they are unit-testable in isolation. Behavior is preserved; the publish-only ModeOutputs no longer carries response status. Refs: autowarefoundation/autoware_core#1096 ---------Co-authored-by: Junya Sasaki <<j2sasaki1990@gmail.com>>

  • feat: add [autoware_command_gate]{.title-ref} and its tests (#1012)

  • Contributors: Junya Sasaki, Yutaka Kondo, github-actions

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged autoware_command_gate at Robotics Stack Exchange

No version for distro hydro showing humble. Known supported distros are highlighted in the buttons above.
Package symbol

autoware_command_gate package from autoware_core repo

autoware_adapi_adaptors autoware_adapi_specs autoware_core_api autoware_default_adapi autoware_core autoware_agnocast_wrapper autoware_component_interface_admission autoware_component_interface_specs autoware_component_interface_utils autoware_geography_utils autoware_global_parameter_loader autoware_interface_spec_lint autoware_interpolation autoware_kalman_filter autoware_lanelet2_utils autoware_marker_utils autoware_motion_utils autoware_node autoware_object_recognition_utils autoware_osqp_interface autoware_point_types autoware_qos_utils autoware_qp_interface autoware_signal_processing autoware_trajectory autoware_vehicle_info_utils autoware_command_gate autoware_core_control autoware_simple_pure_pursuit autoware_awsim_sensor_kit_description autoware_sample_sensor_kit_description autoware_sample_vehicle_description autoware_core_localization autoware_ekf_localizer autoware_gyro_odometer autoware_localization_util autoware_ndt_scan_matcher autoware_pose_initializer autoware_stop_filter autoware_twist2accel autoware_core_map autoware_lanelet2_map_visualizer autoware_map_height_fitter autoware_map_loader autoware_map_projection_loader autoware_core_perception autoware_euclidean_cluster_object_detector autoware_ground_filter autoware_perception_objects_converter autoware_core_planning autoware_mission_planner autoware_objects_of_interest_marker_interface autoware_path_generator autoware_planning_factor_interface autoware_planning_test_manager autoware_planning_topic_converter autoware_route_handler autoware_velocity_smoother autoware_behavior_velocity_planner autoware_behavior_velocity_planner_common autoware_behavior_velocity_stop_line_module autoware_motion_velocity_obstacle_stop_module autoware_motion_velocity_planner autoware_motion_velocity_planner_common autoware_core_sensing autoware_crop_box_filter autoware_downsample_filters autoware_gnss_poser autoware_vehicle_velocity_converter autoware_pyplot autoware_test_node autoware_test_utils autoware_testing autoware_core_vehicle

ROS Distro
humble

Package Summary

Version 1.10.0
License Apache License 2.0
Build type AMENT_CMAKE
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/autowarefoundation/autoware_core.git
VCS Type git
VCS Version main
Last Updated 2026-10-07
Dev Status DEVELOPED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

Simple gateway that maps operation mode service calls to mode state and gear commands.

Maintainers

  • Junya Sasaki

Authors

No additional authors.

autoware_command_gate

A minimal gateway that exposes operation-mode change services and publishes matching state and gear commands.

Features

  • Services /api/operation_mode/change_to_stop and /api/operation_mode/change_to_autonomous (autoware_adapi_v1_msgs/srv/ChangeOperationMode).
  • Publishes /api/operation_mode/state (reliable, transient local QoS) and /control/command/gear_cmd on each service call.
  • STOP -> gear PARK; AUTONOMOUS -> gear DRIVE.

Build

colcon build --packages-select autoware_command_gate --symlink-install

Run

Launch as a node:

ros2 launch autoware_command_gate autoware_command_gate.launch.py

Or run directly:

ros2 run autoware_command_gate autoware_command_gate_exe

Interact

Call services (example from a sourced workspace):

ros2 service call /api/operation_mode/change_to_stop autoware_adapi_v1_msgs/srv/ChangeOperationMode "{}"
ros2 service call /api/operation_mode/change_to_autonomous autoware_adapi_v1_msgs/srv/ChangeOperationMode "{}"

Echo topics:

ros2 topic echo /api/operation_mode/state
ros2 topic echo /control/command/gear_cmd

Tests

Tests are grouped under the following directories:

  • Unit tests: test/unit
  • Integration tests: test/integration

Run all tests:

colcon test --packages-select autoware_command_gate --event-handlers console_direct+

CHANGELOG

Changelog for package autoware_command_gate

1.10.0 (2026-09-28)

  • Merge remote-tracking branch 'origin/main' into tmp/bot/bump_version_base

  • fix(control): declare the dependencies these packages use (#1368)

    * fix(control): declare the dependencies these packages use Each of these packages uses a package it never declares. Either it includes a header of that package, or it names a symbol of it while the header arrives through another dependency. Both build today only because some declared dependency re-exports the owner, so a change in an unrelated repository can break them without anything here changing. The tag follows where the dependency is used: a use in an installed header or in code compiled into the library takes <depend>, one reached only from test/ takes <test_depend>.

    * fix(autoware_command_gate): remove the unused rmw include and dependency autoware_command_gate.cpp includes <rmw/types.h> and uses no symbol from it. Remove the include instead of declaring rmw in package.xml. This removes the <depend>rmw</depend> entry that the previous commit added. ---------

  • refactor(autoware_command_gate): create endpoints through NodeAdaptor (#1328) This file redefined GearCommand as a local struct carrying only a message type and a name, duplicating a spec that already exists centrally with the same two values plus its QoS. Replace the local definition with an alias to the real spec, matching the three aliases beside it, and create all four endpoints through NodeAdaptor. No wire change: the central spec declares depth 1, reliable and volatile, which is what the hand-written rclcpp::QoS{1} at the gear publisher already resolved to.

  • Contributors: Mete Fatih Cırıt, Yutaka Kondo, github-actions

1.9.0 (2026-06-24)

  • chore: align package versions to 1.8.0 and reset changelogs

  • Merge remote-tracking branch 'origin/main' into tmp/bot/bump_version_base

  • refactor(autoware_command_gate): extract ROS-free mode dispatch helper (#1145)

    * refactor(autoware_command_gate): extract ROS-free mode dispatch helper Move the request-to-mode dispatch (switch on the requested operation mode and build the corresponding outputs) out of the node's service-callback lambda into a ROS-free static helper CommandGateModeBuilder::dispatch_mode, which returns std::optional<ModeOutputs> (std::nullopt for unknown/unsupported modes). This makes the dispatch and its only error path (unknown mode -> PARAMETER_ERROR) unit-testable with plain gtest, without spinning up rclcpp. Behavior is preserved: the node still publishes outputs and sets status.success/code/message on the happy path, and emits success=false with PARAMETER_ERROR on an unknown mode. Add unit tests for dispatch_mode covering all four valid modes and the previously untested unknown-mode nullopt branch. The public node API is unchanged; dispatch_mode is an additive static method. Refs: autowarefoundation/autoware_core#1096

    * refactor(autoware_command_gate): address review feedback Move autoware_system_msgs/srv/change_operation_mode include from the builder header to the .cpp where ChangeOperationMode::Request is used, decoupling includers from the service definition. Assert stamp propagation in DispatchModeAutonomous/Local/Remote tests by passing non-zero stamps and checking outputs->state.stamp. Refs: autowarefoundation/autoware_core#1096

    * refactor(autoware_command_gate): split mode-output and response builders (#80) Make the ChangeOperationMode service callback route through two pure message-in -> message-out builders: create_mode_output() builds the messages to publish (std::nullopt for unknown modes) and create_response() builds the service response. Both are ROS-node-free static functions that take the request, so they are unit-testable in isolation. Behavior is preserved; the publish-only ModeOutputs no longer carries response status. Refs: autowarefoundation/autoware_core#1096 ---------Co-authored-by: Junya Sasaki <<j2sasaki1990@gmail.com>>

  • feat: add [autoware_command_gate]{.title-ref} and its tests (#1012)

  • Contributors: Junya Sasaki, Yutaka Kondo, github-actions

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged autoware_command_gate at Robotics Stack Exchange

No version for distro kinetic showing humble. Known supported distros are highlighted in the buttons above.
Package symbol

autoware_command_gate package from autoware_core repo

autoware_adapi_adaptors autoware_adapi_specs autoware_core_api autoware_default_adapi autoware_core autoware_agnocast_wrapper autoware_component_interface_admission autoware_component_interface_specs autoware_component_interface_utils autoware_geography_utils autoware_global_parameter_loader autoware_interface_spec_lint autoware_interpolation autoware_kalman_filter autoware_lanelet2_utils autoware_marker_utils autoware_motion_utils autoware_node autoware_object_recognition_utils autoware_osqp_interface autoware_point_types autoware_qos_utils autoware_qp_interface autoware_signal_processing autoware_trajectory autoware_vehicle_info_utils autoware_command_gate autoware_core_control autoware_simple_pure_pursuit autoware_awsim_sensor_kit_description autoware_sample_sensor_kit_description autoware_sample_vehicle_description autoware_core_localization autoware_ekf_localizer autoware_gyro_odometer autoware_localization_util autoware_ndt_scan_matcher autoware_pose_initializer autoware_stop_filter autoware_twist2accel autoware_core_map autoware_lanelet2_map_visualizer autoware_map_height_fitter autoware_map_loader autoware_map_projection_loader autoware_core_perception autoware_euclidean_cluster_object_detector autoware_ground_filter autoware_perception_objects_converter autoware_core_planning autoware_mission_planner autoware_objects_of_interest_marker_interface autoware_path_generator autoware_planning_factor_interface autoware_planning_test_manager autoware_planning_topic_converter autoware_route_handler autoware_velocity_smoother autoware_behavior_velocity_planner autoware_behavior_velocity_planner_common autoware_behavior_velocity_stop_line_module autoware_motion_velocity_obstacle_stop_module autoware_motion_velocity_planner autoware_motion_velocity_planner_common autoware_core_sensing autoware_crop_box_filter autoware_downsample_filters autoware_gnss_poser autoware_vehicle_velocity_converter autoware_pyplot autoware_test_node autoware_test_utils autoware_testing autoware_core_vehicle

ROS Distro
humble

Package Summary

Version 1.10.0
License Apache License 2.0
Build type AMENT_CMAKE
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/autowarefoundation/autoware_core.git
VCS Type git
VCS Version main
Last Updated 2026-10-07
Dev Status DEVELOPED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

Simple gateway that maps operation mode service calls to mode state and gear commands.

Maintainers

  • Junya Sasaki

Authors

No additional authors.

autoware_command_gate

A minimal gateway that exposes operation-mode change services and publishes matching state and gear commands.

Features

  • Services /api/operation_mode/change_to_stop and /api/operation_mode/change_to_autonomous (autoware_adapi_v1_msgs/srv/ChangeOperationMode).
  • Publishes /api/operation_mode/state (reliable, transient local QoS) and /control/command/gear_cmd on each service call.
  • STOP -> gear PARK; AUTONOMOUS -> gear DRIVE.

Build

colcon build --packages-select autoware_command_gate --symlink-install

Run

Launch as a node:

ros2 launch autoware_command_gate autoware_command_gate.launch.py

Or run directly:

ros2 run autoware_command_gate autoware_command_gate_exe

Interact

Call services (example from a sourced workspace):

ros2 service call /api/operation_mode/change_to_stop autoware_adapi_v1_msgs/srv/ChangeOperationMode "{}"
ros2 service call /api/operation_mode/change_to_autonomous autoware_adapi_v1_msgs/srv/ChangeOperationMode "{}"

Echo topics:

ros2 topic echo /api/operation_mode/state
ros2 topic echo /control/command/gear_cmd

Tests

Tests are grouped under the following directories:

  • Unit tests: test/unit
  • Integration tests: test/integration

Run all tests:

colcon test --packages-select autoware_command_gate --event-handlers console_direct+

CHANGELOG

Changelog for package autoware_command_gate

1.10.0 (2026-09-28)

  • Merge remote-tracking branch 'origin/main' into tmp/bot/bump_version_base

  • fix(control): declare the dependencies these packages use (#1368)

    * fix(control): declare the dependencies these packages use Each of these packages uses a package it never declares. Either it includes a header of that package, or it names a symbol of it while the header arrives through another dependency. Both build today only because some declared dependency re-exports the owner, so a change in an unrelated repository can break them without anything here changing. The tag follows where the dependency is used: a use in an installed header or in code compiled into the library takes <depend>, one reached only from test/ takes <test_depend>.

    * fix(autoware_command_gate): remove the unused rmw include and dependency autoware_command_gate.cpp includes <rmw/types.h> and uses no symbol from it. Remove the include instead of declaring rmw in package.xml. This removes the <depend>rmw</depend> entry that the previous commit added. ---------

  • refactor(autoware_command_gate): create endpoints through NodeAdaptor (#1328) This file redefined GearCommand as a local struct carrying only a message type and a name, duplicating a spec that already exists centrally with the same two values plus its QoS. Replace the local definition with an alias to the real spec, matching the three aliases beside it, and create all four endpoints through NodeAdaptor. No wire change: the central spec declares depth 1, reliable and volatile, which is what the hand-written rclcpp::QoS{1} at the gear publisher already resolved to.

  • Contributors: Mete Fatih Cırıt, Yutaka Kondo, github-actions

1.9.0 (2026-06-24)

  • chore: align package versions to 1.8.0 and reset changelogs

  • Merge remote-tracking branch 'origin/main' into tmp/bot/bump_version_base

  • refactor(autoware_command_gate): extract ROS-free mode dispatch helper (#1145)

    * refactor(autoware_command_gate): extract ROS-free mode dispatch helper Move the request-to-mode dispatch (switch on the requested operation mode and build the corresponding outputs) out of the node's service-callback lambda into a ROS-free static helper CommandGateModeBuilder::dispatch_mode, which returns std::optional<ModeOutputs> (std::nullopt for unknown/unsupported modes). This makes the dispatch and its only error path (unknown mode -> PARAMETER_ERROR) unit-testable with plain gtest, without spinning up rclcpp. Behavior is preserved: the node still publishes outputs and sets status.success/code/message on the happy path, and emits success=false with PARAMETER_ERROR on an unknown mode. Add unit tests for dispatch_mode covering all four valid modes and the previously untested unknown-mode nullopt branch. The public node API is unchanged; dispatch_mode is an additive static method. Refs: autowarefoundation/autoware_core#1096

    * refactor(autoware_command_gate): address review feedback Move autoware_system_msgs/srv/change_operation_mode include from the builder header to the .cpp where ChangeOperationMode::Request is used, decoupling includers from the service definition. Assert stamp propagation in DispatchModeAutonomous/Local/Remote tests by passing non-zero stamps and checking outputs->state.stamp. Refs: autowarefoundation/autoware_core#1096

    * refactor(autoware_command_gate): split mode-output and response builders (#80) Make the ChangeOperationMode service callback route through two pure message-in -> message-out builders: create_mode_output() builds the messages to publish (std::nullopt for unknown modes) and create_response() builds the service response. Both are ROS-node-free static functions that take the request, so they are unit-testable in isolation. Behavior is preserved; the publish-only ModeOutputs no longer carries response status. Refs: autowarefoundation/autoware_core#1096 ---------Co-authored-by: Junya Sasaki <<j2sasaki1990@gmail.com>>

  • feat: add [autoware_command_gate]{.title-ref} and its tests (#1012)

  • Contributors: Junya Sasaki, Yutaka Kondo, github-actions

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged autoware_command_gate at Robotics Stack Exchange

No version for distro melodic showing humble. Known supported distros are highlighted in the buttons above.
Package symbol

autoware_command_gate package from autoware_core repo

autoware_adapi_adaptors autoware_adapi_specs autoware_core_api autoware_default_adapi autoware_core autoware_agnocast_wrapper autoware_component_interface_admission autoware_component_interface_specs autoware_component_interface_utils autoware_geography_utils autoware_global_parameter_loader autoware_interface_spec_lint autoware_interpolation autoware_kalman_filter autoware_lanelet2_utils autoware_marker_utils autoware_motion_utils autoware_node autoware_object_recognition_utils autoware_osqp_interface autoware_point_types autoware_qos_utils autoware_qp_interface autoware_signal_processing autoware_trajectory autoware_vehicle_info_utils autoware_command_gate autoware_core_control autoware_simple_pure_pursuit autoware_awsim_sensor_kit_description autoware_sample_sensor_kit_description autoware_sample_vehicle_description autoware_core_localization autoware_ekf_localizer autoware_gyro_odometer autoware_localization_util autoware_ndt_scan_matcher autoware_pose_initializer autoware_stop_filter autoware_twist2accel autoware_core_map autoware_lanelet2_map_visualizer autoware_map_height_fitter autoware_map_loader autoware_map_projection_loader autoware_core_perception autoware_euclidean_cluster_object_detector autoware_ground_filter autoware_perception_objects_converter autoware_core_planning autoware_mission_planner autoware_objects_of_interest_marker_interface autoware_path_generator autoware_planning_factor_interface autoware_planning_test_manager autoware_planning_topic_converter autoware_route_handler autoware_velocity_smoother autoware_behavior_velocity_planner autoware_behavior_velocity_planner_common autoware_behavior_velocity_stop_line_module autoware_motion_velocity_obstacle_stop_module autoware_motion_velocity_planner autoware_motion_velocity_planner_common autoware_core_sensing autoware_crop_box_filter autoware_downsample_filters autoware_gnss_poser autoware_vehicle_velocity_converter autoware_pyplot autoware_test_node autoware_test_utils autoware_testing autoware_core_vehicle

ROS Distro
humble

Package Summary

Version 1.10.0
License Apache License 2.0
Build type AMENT_CMAKE
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/autowarefoundation/autoware_core.git
VCS Type git
VCS Version main
Last Updated 2026-10-07
Dev Status DEVELOPED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

Simple gateway that maps operation mode service calls to mode state and gear commands.

Maintainers

  • Junya Sasaki

Authors

No additional authors.

autoware_command_gate

A minimal gateway that exposes operation-mode change services and publishes matching state and gear commands.

Features

  • Services /api/operation_mode/change_to_stop and /api/operation_mode/change_to_autonomous (autoware_adapi_v1_msgs/srv/ChangeOperationMode).
  • Publishes /api/operation_mode/state (reliable, transient local QoS) and /control/command/gear_cmd on each service call.
  • STOP -> gear PARK; AUTONOMOUS -> gear DRIVE.

Build

colcon build --packages-select autoware_command_gate --symlink-install

Run

Launch as a node:

ros2 launch autoware_command_gate autoware_command_gate.launch.py

Or run directly:

ros2 run autoware_command_gate autoware_command_gate_exe

Interact

Call services (example from a sourced workspace):

ros2 service call /api/operation_mode/change_to_stop autoware_adapi_v1_msgs/srv/ChangeOperationMode "{}"
ros2 service call /api/operation_mode/change_to_autonomous autoware_adapi_v1_msgs/srv/ChangeOperationMode "{}"

Echo topics:

ros2 topic echo /api/operation_mode/state
ros2 topic echo /control/command/gear_cmd

Tests

Tests are grouped under the following directories:

  • Unit tests: test/unit
  • Integration tests: test/integration

Run all tests:

colcon test --packages-select autoware_command_gate --event-handlers console_direct+

CHANGELOG

Changelog for package autoware_command_gate

1.10.0 (2026-09-28)

  • Merge remote-tracking branch 'origin/main' into tmp/bot/bump_version_base

  • fix(control): declare the dependencies these packages use (#1368)

    * fix(control): declare the dependencies these packages use Each of these packages uses a package it never declares. Either it includes a header of that package, or it names a symbol of it while the header arrives through another dependency. Both build today only because some declared dependency re-exports the owner, so a change in an unrelated repository can break them without anything here changing. The tag follows where the dependency is used: a use in an installed header or in code compiled into the library takes <depend>, one reached only from test/ takes <test_depend>.

    * fix(autoware_command_gate): remove the unused rmw include and dependency autoware_command_gate.cpp includes <rmw/types.h> and uses no symbol from it. Remove the include instead of declaring rmw in package.xml. This removes the <depend>rmw</depend> entry that the previous commit added. ---------

  • refactor(autoware_command_gate): create endpoints through NodeAdaptor (#1328) This file redefined GearCommand as a local struct carrying only a message type and a name, duplicating a spec that already exists centrally with the same two values plus its QoS. Replace the local definition with an alias to the real spec, matching the three aliases beside it, and create all four endpoints through NodeAdaptor. No wire change: the central spec declares depth 1, reliable and volatile, which is what the hand-written rclcpp::QoS{1} at the gear publisher already resolved to.

  • Contributors: Mete Fatih Cırıt, Yutaka Kondo, github-actions

1.9.0 (2026-06-24)

  • chore: align package versions to 1.8.0 and reset changelogs

  • Merge remote-tracking branch 'origin/main' into tmp/bot/bump_version_base

  • refactor(autoware_command_gate): extract ROS-free mode dispatch helper (#1145)

    * refactor(autoware_command_gate): extract ROS-free mode dispatch helper Move the request-to-mode dispatch (switch on the requested operation mode and build the corresponding outputs) out of the node's service-callback lambda into a ROS-free static helper CommandGateModeBuilder::dispatch_mode, which returns std::optional<ModeOutputs> (std::nullopt for unknown/unsupported modes). This makes the dispatch and its only error path (unknown mode -> PARAMETER_ERROR) unit-testable with plain gtest, without spinning up rclcpp. Behavior is preserved: the node still publishes outputs and sets status.success/code/message on the happy path, and emits success=false with PARAMETER_ERROR on an unknown mode. Add unit tests for dispatch_mode covering all four valid modes and the previously untested unknown-mode nullopt branch. The public node API is unchanged; dispatch_mode is an additive static method. Refs: autowarefoundation/autoware_core#1096

    * refactor(autoware_command_gate): address review feedback Move autoware_system_msgs/srv/change_operation_mode include from the builder header to the .cpp where ChangeOperationMode::Request is used, decoupling includers from the service definition. Assert stamp propagation in DispatchModeAutonomous/Local/Remote tests by passing non-zero stamps and checking outputs->state.stamp. Refs: autowarefoundation/autoware_core#1096

    * refactor(autoware_command_gate): split mode-output and response builders (#80) Make the ChangeOperationMode service callback route through two pure message-in -> message-out builders: create_mode_output() builds the messages to publish (std::nullopt for unknown modes) and create_response() builds the service response. Both are ROS-node-free static functions that take the request, so they are unit-testable in isolation. Behavior is preserved; the publish-only ModeOutputs no longer carries response status. Refs: autowarefoundation/autoware_core#1096 ---------Co-authored-by: Junya Sasaki <<j2sasaki1990@gmail.com>>

  • feat: add [autoware_command_gate]{.title-ref} and its tests (#1012)

  • Contributors: Junya Sasaki, Yutaka Kondo, github-actions

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged autoware_command_gate at Robotics Stack Exchange

No version for distro noetic showing humble. Known supported distros are highlighted in the buttons above.
Package symbol

autoware_command_gate package from autoware_core repo

autoware_adapi_adaptors autoware_adapi_specs autoware_core_api autoware_default_adapi autoware_core autoware_agnocast_wrapper autoware_component_interface_admission autoware_component_interface_specs autoware_component_interface_utils autoware_geography_utils autoware_global_parameter_loader autoware_interface_spec_lint autoware_interpolation autoware_kalman_filter autoware_lanelet2_utils autoware_marker_utils autoware_motion_utils autoware_node autoware_object_recognition_utils autoware_osqp_interface autoware_point_types autoware_qos_utils autoware_qp_interface autoware_signal_processing autoware_trajectory autoware_vehicle_info_utils autoware_command_gate autoware_core_control autoware_simple_pure_pursuit autoware_awsim_sensor_kit_description autoware_sample_sensor_kit_description autoware_sample_vehicle_description autoware_core_localization autoware_ekf_localizer autoware_gyro_odometer autoware_localization_util autoware_ndt_scan_matcher autoware_pose_initializer autoware_stop_filter autoware_twist2accel autoware_core_map autoware_lanelet2_map_visualizer autoware_map_height_fitter autoware_map_loader autoware_map_projection_loader autoware_core_perception autoware_euclidean_cluster_object_detector autoware_ground_filter autoware_perception_objects_converter autoware_core_planning autoware_mission_planner autoware_objects_of_interest_marker_interface autoware_path_generator autoware_planning_factor_interface autoware_planning_test_manager autoware_planning_topic_converter autoware_route_handler autoware_velocity_smoother autoware_behavior_velocity_planner autoware_behavior_velocity_planner_common autoware_behavior_velocity_stop_line_module autoware_motion_velocity_obstacle_stop_module autoware_motion_velocity_planner autoware_motion_velocity_planner_common autoware_core_sensing autoware_crop_box_filter autoware_downsample_filters autoware_gnss_poser autoware_vehicle_velocity_converter autoware_pyplot autoware_test_node autoware_test_utils autoware_testing autoware_core_vehicle

ROS Distro
humble

Package Summary

Version 1.10.0
License Apache License 2.0
Build type AMENT_CMAKE
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/autowarefoundation/autoware_core.git
VCS Type git
VCS Version main
Last Updated 2026-10-07
Dev Status DEVELOPED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

Simple gateway that maps operation mode service calls to mode state and gear commands.

Maintainers

  • Junya Sasaki

Authors

No additional authors.

autoware_command_gate

A minimal gateway that exposes operation-mode change services and publishes matching state and gear commands.

Features

  • Services /api/operation_mode/change_to_stop and /api/operation_mode/change_to_autonomous (autoware_adapi_v1_msgs/srv/ChangeOperationMode).
  • Publishes /api/operation_mode/state (reliable, transient local QoS) and /control/command/gear_cmd on each service call.
  • STOP -> gear PARK; AUTONOMOUS -> gear DRIVE.

Build

colcon build --packages-select autoware_command_gate --symlink-install

Run

Launch as a node:

ros2 launch autoware_command_gate autoware_command_gate.launch.py

Or run directly:

ros2 run autoware_command_gate autoware_command_gate_exe

Interact

Call services (example from a sourced workspace):

ros2 service call /api/operation_mode/change_to_stop autoware_adapi_v1_msgs/srv/ChangeOperationMode "{}"
ros2 service call /api/operation_mode/change_to_autonomous autoware_adapi_v1_msgs/srv/ChangeOperationMode "{}"

Echo topics:

ros2 topic echo /api/operation_mode/state
ros2 topic echo /control/command/gear_cmd

Tests

Tests are grouped under the following directories:

  • Unit tests: test/unit
  • Integration tests: test/integration

Run all tests:

colcon test --packages-select autoware_command_gate --event-handlers console_direct+

CHANGELOG

Changelog for package autoware_command_gate

1.10.0 (2026-09-28)

  • Merge remote-tracking branch 'origin/main' into tmp/bot/bump_version_base

  • fix(control): declare the dependencies these packages use (#1368)

    * fix(control): declare the dependencies these packages use Each of these packages uses a package it never declares. Either it includes a header of that package, or it names a symbol of it while the header arrives through another dependency. Both build today only because some declared dependency re-exports the owner, so a change in an unrelated repository can break them without anything here changing. The tag follows where the dependency is used: a use in an installed header or in code compiled into the library takes <depend>, one reached only from test/ takes <test_depend>.

    * fix(autoware_command_gate): remove the unused rmw include and dependency autoware_command_gate.cpp includes <rmw/types.h> and uses no symbol from it. Remove the include instead of declaring rmw in package.xml. This removes the <depend>rmw</depend> entry that the previous commit added. ---------

  • refactor(autoware_command_gate): create endpoints through NodeAdaptor (#1328) This file redefined GearCommand as a local struct carrying only a message type and a name, duplicating a spec that already exists centrally with the same two values plus its QoS. Replace the local definition with an alias to the real spec, matching the three aliases beside it, and create all four endpoints through NodeAdaptor. No wire change: the central spec declares depth 1, reliable and volatile, which is what the hand-written rclcpp::QoS{1} at the gear publisher already resolved to.

  • Contributors: Mete Fatih Cırıt, Yutaka Kondo, github-actions

1.9.0 (2026-06-24)

  • chore: align package versions to 1.8.0 and reset changelogs

  • Merge remote-tracking branch 'origin/main' into tmp/bot/bump_version_base

  • refactor(autoware_command_gate): extract ROS-free mode dispatch helper (#1145)

    * refactor(autoware_command_gate): extract ROS-free mode dispatch helper Move the request-to-mode dispatch (switch on the requested operation mode and build the corresponding outputs) out of the node's service-callback lambda into a ROS-free static helper CommandGateModeBuilder::dispatch_mode, which returns std::optional<ModeOutputs> (std::nullopt for unknown/unsupported modes). This makes the dispatch and its only error path (unknown mode -> PARAMETER_ERROR) unit-testable with plain gtest, without spinning up rclcpp. Behavior is preserved: the node still publishes outputs and sets status.success/code/message on the happy path, and emits success=false with PARAMETER_ERROR on an unknown mode. Add unit tests for dispatch_mode covering all four valid modes and the previously untested unknown-mode nullopt branch. The public node API is unchanged; dispatch_mode is an additive static method. Refs: autowarefoundation/autoware_core#1096

    * refactor(autoware_command_gate): address review feedback Move autoware_system_msgs/srv/change_operation_mode include from the builder header to the .cpp where ChangeOperationMode::Request is used, decoupling includers from the service definition. Assert stamp propagation in DispatchModeAutonomous/Local/Remote tests by passing non-zero stamps and checking outputs->state.stamp. Refs: autowarefoundation/autoware_core#1096

    * refactor(autoware_command_gate): split mode-output and response builders (#80) Make the ChangeOperationMode service callback route through two pure message-in -> message-out builders: create_mode_output() builds the messages to publish (std::nullopt for unknown modes) and create_response() builds the service response. Both are ROS-node-free static functions that take the request, so they are unit-testable in isolation. Behavior is preserved; the publish-only ModeOutputs no longer carries response status. Refs: autowarefoundation/autoware_core#1096 ---------Co-authored-by: Junya Sasaki <<j2sasaki1990@gmail.com>>

  • feat: add [autoware_command_gate]{.title-ref} and its tests (#1012)

  • Contributors: Junya Sasaki, Yutaka Kondo, github-actions

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged autoware_command_gate at Robotics Stack Exchange