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

operation_mode_transition_manager package from autodrrt repo

autonomous_emergency_braking control_performance_analysis control_validator external_cmd_selector joy_controller lane_departure_checker mpc_lateral_controller obstacle_collision_checker operation_mode_transition_manager pid_longitudinal_controller predicted_path_checker pure_pursuit shift_decider trajectory_follower_base trajectory_follower_node vehicle_cmd_gate diagnostic_converter kinematic_evaluator localization_evaluator planning_evaluator ekf_localizer geo_pose_projector gyro_odometer ar_tag_based_localizer landmark_manager localization_error_monitor localization_util ndt_scan_matcher pose2twist pose_initializer pose_instability_detector stop_filter tree_structured_parzen_estimator twist2accel yabloc_common yabloc_image_processing yabloc_monitor yabloc_particle_filter yabloc_pose_initializer map_height_fitter map_loader map_projection_loader map_tf_generator lanelet2_map_preprocessor ros2_bevdet ros2_bevformer bevfusion bytetrack cluster_merger compare_map_segmentation crosswalk_traffic_light_estimator detected_object_feature_remover detected_object_validation detection_by_tracker elevation_map_loader euclidean_cluster front_vehicle_velocity_estimator ground_segmentation heatmap_visualizer image_projection_based_fusion lidar_apollo_instance_segmentation lidar_apollo_segmentation_tvm lidar_apollo_segmentation_tvm_nodes lidar_centerpoint lidar_centerpoint_tvm map_based_prediction multi_object_tracker object_merger object_range_splitter object_velocity_splitter occupancy_grid_map_outlier_filter probabilistic_occupancy_grid_map radar_crossing_objects_noise_filter radar_fusion_to_detected_object radar_object_clustering radar_object_tracker radar_tracks_msgs_converter shape_estimation simple_object_merger tensorrt_classifier tensorrt_yolo tensorrt_yolox tracking_object_merger traffic_light_arbiter traffic_light_classifier traffic_light_fine_detector traffic_light_map_based_detector traffic_light_multi_camera_fusion traffic_light_occlusion_predictor traffic_light_ssd_fine_detector traffic_light_visualization behavior_path_avoidance_by_lane_change_module behavior_path_avoidance_module behavior_path_external_request_lane_change_module behavior_path_goal_planner_module behavior_path_lane_change_module behavior_path_planner behavior_path_planner_common behavior_path_side_shift_module behavior_path_start_planner_module behavior_velocity_blind_spot_module behavior_velocity_crosswalk_module behavior_velocity_detection_area_module behavior_velocity_intersection_module behavior_velocity_no_drivable_lane_module behavior_velocity_no_stopping_area_module behavior_velocity_occlusion_spot_module behavior_velocity_out_of_lane_module behavior_velocity_planner behavior_velocity_planner_common behavior_velocity_run_out_module behavior_velocity_speed_bump_module behavior_velocity_stop_line_module behavior_velocity_template_module behavior_velocity_traffic_light_module behavior_velocity_virtual_traffic_light_module behavior_velocity_walkway_module costmap_generator external_velocity_limit_selector freespace_planner freespace_planning_algorithms mission_planner motion_velocity_smoother objects_of_interest_marker_interface obstacle_avoidance_planner obstacle_cruise_planner obstacle_stop_planner obstacle_velocity_limiter path_smoother planning_debug_tools planning_test_utils planning_topic_converter planning_validator route_handler rtc_interface rtc_replayer bezier_sampler frenet_planner path_sampler sampler_common scenario_selector static_centerline_optimizer surround_obstacle_checker gnss_poser image_diagnostics image_transport_decompressor imu_corrector livox_tag_filter pointcloud_preprocessor radar_scan_to_pointcloud2 radar_static_pointcloud_filter radar_threshold_filter radar_tracks_noise_filter tier4_pcl_extensions vehicle_velocity_converter autoware_auto_msgs_adapter bluetooth_monitor component_state_monitor default_ad_api ad_api_adaptors ad_api_visualizers automatic_pose_initializer diagnostic_graph_aggregator dummy_diag_publisher dummy_infrastructure duplicated_node_checker emergency_handler mrm_comfortable_stop_operator mrm_emergency_stop_operator system_error_monitor system_monitor topic_state_monitor velodyne_monitor accel_brake_map_calibrator external_cmd_converter raw_vehicle_cmd_converter steer_offset_estimator vehicle_info_util launch launch_ros autoware_ad_api_specs autoware_adapi_v1_msgs autoware_adapi_version_msgs autoware_auto_common autoware_auto_geometry autoware_auto_control_msgs autoware_auto_geometry_msgs autoware_auto_mapping_msgs autoware_auto_msgs autoware_auto_perception_msgs autoware_auto_planning_msgs autoware_auto_system_msgs autoware_auto_vehicle_msgs autoware_auto_perception_rviz_plugin autoware_auto_tf2 autoware_cmake autoware_lint_common autoware_utils lanelet2_extension autoware_common_msgs autoware_control_msgs autoware_localization_msgs autoware_map_msgs autoware_perception_msgs autoware_planning_msgs autoware_sensing_msgs autoware_system_msgs autoware_vehicle_msgs autoware_point_types autoware_testing bag_time_manager_rviz_plugin component_interface_specs component_interface_tools component_interface_utils cuda_utils fake_test_node geography_utils global_parameter_loader glog_component goal_distance_calculator grid_map_utils interpolation kalman_filter motion_utils object_recognition_utils osqp_interface path_distance_calculator perception_utils polar_grid qp_interface rtc_manager_rviz_plugin signal_processing tensorrt_common tier4_adapi_rviz_plugin tier4_api_utils tier4_automatic_goal_rviz_plugin tier4_autoware_utils tier4_calibration_rviz_plugin tier4_camera_view_rviz_plugin tier4_control_rviz_plugin tier4_datetime_rviz_plugin tier4_debug_rviz_plugin tier4_debug_tools tier4_localization_rviz_plugin tier4_perception_rviz_plugin tier4_planning_rviz_plugin tier4_screen_capture_rviz_plugin tier4_simulated_clock_rviz_plugin tier4_state_rviz_plugin tier4_system_rviz_plugin tier4_target_object_type_rviz_plugin tier4_traffic_light_rviz_plugin tier4_vehicle_rviz_plugin time_utils simulator_compatibility_test traffic_light_recognition_marker_publisher traffic_light_utils tvm_utility dma_customer_msg dma_transfer eagleye_coordinate eagleye_navigation eagleye_msgs eagleye_rt eagleye_can_velocity_converter eagleye_fix2kml eagleye_geo_pose_converter eagleye_geo_pose_fusion eagleye_gnss_converter eagleye_tf llh_converter morai_msgs mussp ndt_omp orocos_kdl python_orocos_kdl pointcloud_to_laserscan rtklib_bridge rtklib_msgs autoware_external_api_msgs autoware_iv_external_api_adaptor autoware_iv_internal_api_adaptor awapi_awiv_adapter tier4_api_msgs tier4_auto_msgs_converter tier4_control_msgs tier4_debug_msgs tier4_external_api_msgs tier4_hmi_msgs tier4_localization_msgs tier4_map_msgs tier4_perception_msgs tier4_planning_msgs tier4_rtc_msgs tier4_simulation_msgs tier4_system_msgs tier4_v2x_msgs tier4_vehicle_msgs io_opt tier4_autoware_api_launch tier4_control_launch tier4_localization_launch tier4_map_launch tier4_perception_launch tier4_planning_launch tier4_sensing_launch tier4_simulator_launch tier4_system_launch tier4_vehicle_launch fastrtps cyclonedds lanelet2 lanelet2_core lanelet2_examples lanelet2_io lanelet2_maps lanelet2_matching lanelet2_projection lanelet2_python lanelet2_routing lanelet2_traffic_rules lanelet2_validation sophus angles behaviortree_cpp_v3 bond bond_core bondcpp bondpy smclib test_bond cudnn_cmake_module diagnostic_aggregator diagnostic_common_diagnostics diagnostic_updater diagnostics self_test filters geodesy geographic_info geographic_msgs grid_map grid_map_cmake_helpers grid_map_core grid_map_costmap_2d grid_map_cv grid_map_demos grid_map_filters grid_map_loader grid_map_msgs grid_map_octomap grid_map_pcl grid_map_ros grid_map_rviz_plugin grid_map_sdf grid_map_visualization mrt_cmake_modules nav2_amcl nav2_behavior_tree nav2_behaviors nav2_bringup nav2_bt_navigator nav2_collision_monitor nav2_common nav2_controller nav2_core nav2_costmap_2d costmap_queue dwb_core dwb_critics dwb_msgs dwb_plugins nav2_dwb_controller nav_2d_msgs nav_2d_utils nav2_lifecycle_manager nav2_map_server nav2_msgs nav2_navfn_planner nav2_planner nav2_regulated_pure_pursuit_controller nav2_rotation_shim_controller nav2_rviz_plugins nav2_simple_commander nav2_smac_planner nav2_smoother nav2_system_tests nav2_theta_star_planner nav2_util nav2_velocity_smoother nav2_voxel_grid nav2_waypoint_follower navigation2 dynamic_edt_3d octomap octovis octomap_msgs osqp_vendor pacmod3_msgs pcl_msgs pcl_conversions pcl_ros perception_pcl point_cloud_msg_wrapper radar_msgs can_msgs rqt_tf_tree tensorrt_cmake_module topic_tools topic_tools_interfaces tvm_vendor cv_bridge image_geometry opencv_tests vision_opencv xacro rviz2 rviz_assimp_vendor rviz_common rviz_default_plugins rviz_ogre_vendor rviz_rendering rviz_rendering_tests rviz_visual_testing_framework dummy_perception_publisher fault_injection simple_planning_simulator classformsg node_v2x image_view v4l2_camera can_interface_custom cgi430_can_driver cgi610_driver ARS408_driver data_format_dump data_preprocess_launch lidar_centerpoint_collect lidar_saver message_sync time_cal camera_calibration direct_visual_lidar_calibration multi_lidar_calibration

Package Summary

Tags No category tags.
Version 0.1.0
License Apache License 2.0
Build type AMENT_CMAKE
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/ieiauto/autodrrt.git
VCS Type git
VCS Version main
Last Updated 2024-09-19
Dev Status UNMAINTAINED
CI status No Continuous Integration
Released UNRELEASED
Tags No category tags.
Contributing Help Wanted (0)
Good First Issues (0)
Pull Requests to Review (0)

Package Description

The vehicle_cmd_gate package

Additional Links

No additional links.

Maintainers

  • Takamasa Horibe
  • Tomoya Kimura

Authors

  • Takamasa Horibe

operation_mode_transition_manager

Purpose / Use cases

This module is responsible for managing the different modes of operation for the Autoware system. The possible modes are:

  • Autonomous: the vehicle is fully controlled by the autonomous driving system
  • Local: the vehicle is controlled by a physically connected control system such as a joy stick
  • Remote: the vehicle is controlled by a remote controller
  • Stop: the vehicle is stopped and there is no active control system.

There is also an In Transition state that occurs during each mode transitions. During this state, the transition to the new operator is not yet complete, and the previous operator is still responsible for controlling the system until the transition is complete. Some actions may be restricted during the In Transition state, such as sudden braking or steering. (This is restricted by the vehicle_cmd_gate).

Features

  • Transit mode between Autonomous, Local, Remote and Stop based on the indication command.
  • Check whether the each transition is available (safe or not).
  • Limit some sudden motion control in In Transition mode (this is done with vehicle_cmd_gate feature).
  • Check whether the transition is completed.

  • Transition between the Autonomous, Local, Remote, and Stop modes based on the indicated command.
  • Determine whether each transition is safe to execute.
  • Restrict certain sudden motion controls during the In Transition mode (using the vehicle_cmd_gate feature).
  • Verify that the transition is complete.

Design

A rough design of the relationship between operation_mode_transition_manager` and the other nodes is shown below.

transition_rough_structure

A more detailed structure is below.

transition_detailed_structure

Here we see that operation_mode_transition_manager has multiple state transitions as follows

  • AUTOWARE ENABLED <—> DISABLED
    • ENABLED: the vehicle is controlled by Autoware.
    • DISABLED: the vehicle is out of Autoware control, expecting the e.g. manual driving.
  • AUTOWARE ENABLED <—> AUTO/LOCAL/REMOTE/NONE
    • AUTO: the vehicle is controlled by Autoware, with the autonomous control command calculated by the planning/control component.
    • LOCAL: the vehicle is controlled by Autoware, with the locally connected operator, e.g. joystick controller.
    • REMOTE: the vehicle is controlled by Autoware, with the remotely connected operator.
    • NONE: the vehicle is not controlled by any operator.
  • IN TRANSITION <—> COMPLETED
    • IN TRANSITION: the mode listed above is in the transition process, expecting the former operator to have a responsibility to confirm the transition is completed.
    • COMPLETED: the mode transition is completed.

Inputs / Outputs / API

Inputs

For the mode transition:

  • /system/operation_mode/change_autoware_control [tier4_system_msgs/srv/ChangeAutowareControl]: change operation mode to Autonomous
  • /system/operation_mode/change_operation_mode [tier4_system_msgs/srv/ChangeOperationMode]: change operation mode

For the transition availability/completion check:

  • /control/command/control_cmd [autoware_auto_control_msgs/msg/AckermannControlCommand]: vehicle control signal
  • /localization/kinematic_state [nav_msgs/msg/Odometry]: ego vehicle state
  • /planning/scenario_planning/trajectory [autoware_auto_planning_msgs/msg/Trajectory]: planning trajectory
  • /vehicle/status/control_mode [autoware_auto_vehicle_msgs/msg/ControlModeReport]: vehicle control mode (autonomous/manual)
  • /control/vehicle_cmd_gate/operation_mode [autoware_adapi_v1_msgs/msg/OperationModeState]: the operation mode in the vehicle_cmd_gate. (To be removed)

For the backward compatibility (to be removed):

  • /api/autoware/get/engage [autoware_auto_vehicle_msgs/msg/Engage]
  • /control/current_gate_mode [tier4_control_msgs/msg/GateMode]
  • /control/external_cmd_selector/current_selector_mode [tier4_control_msgs/msg/ExternalCommandSelectorMode]

Outputs

  • /system/operation_mode/state [autoware_adapi_v1_msgs/msg/OperationModeState]: to inform the current operation mode
  • /control/operation_mode_transition_manager/debug_info [operation_mode_transition_manager/msg/OperationModeTransitionManagerDebug]: detailed information about the operation mode transition

  • /control/gate_mode_cmd [tier4_control_msgs/msg/GateMode]: to change the vehicle_cmd_gate state to use its features (to be removed)
  • /autoware/engage [autoware_auto_vehicle_msgs/msg/Engage]:

  • /control/control_mode_request [autoware_auto_vehicle_msgs/srv/ControlModeCommand]: to change the vehicle control mode (autonomous/manual)
  • /control/external_cmd_selector/select_external_command [tier4_control_msgs/srv/ExternalCommandSelect]:

Parameters

{{ json_to_markdown(“control/operation_mode_transition_manager/schema/operation_mode_transition_manager.schema.json”) }}

Name Type Description Default value
transition_timeout double If the state transition is not completed within this time, it is considered a transition failure. 10.0
frequency_hz double running hz 10.0
enable_engage_on_driving bool Set true if you want to engage the autonomous driving mode while the vehicle is driving. If set to false, it will deny Engage in any situation where the vehicle speed is not zero. Note that if you use this feature without adjusting the parameters, it may cause issues like sudden deceleration. Before using, please ensure the engage condition and the vehicle_cmd_gate transition filter are appropriately adjusted. 0.1
check_engage_condition bool If false, autonomous transition is always available 0.1
nearest_dist_deviation_threshold double distance threshold used to find nearest trajectory point 3.0
nearest_yaw_deviation_threshold double angle threshold used to find nearest trajectory point 1.57

For engage_acceptable_limits related parameters:

Name Type Description Default value
allow_autonomous_in_stopped bool If true, autonomous transition is available when the vehicle is stopped even if other checks fail. true
dist_threshold double the distance between the trajectory and ego vehicle must be within this distance for Autonomous transition. 1.5
yaw_threshold double the yaw angle between trajectory and ego vehicle must be within this threshold for Autonomous transition. 0.524
speed_upper_threshold double the velocity deviation between control command and ego vehicle must be within this threshold for Autonomous transition. 10.0
speed_lower_threshold double the velocity deviation between the control command and ego vehicle must be within this threshold for Autonomous transition. -10.0
acc_threshold double the control command acceleration must be less than this threshold for Autonomous transition. 1.5
lateral_acc_threshold double the control command lateral acceleration must be less than this threshold for Autonomous transition. 1.0
lateral_acc_diff_threshold double the lateral acceleration deviation between the control command must be less than this threshold for Autonomous transition. 0.5

For stable_check related parameters:

Name Type Description Default value
duration double the stable condition must be satisfied for this duration to complete the transition. 0.1
dist_threshold double the distance between the trajectory and ego vehicle must be within this distance to complete Autonomous transition. 1.5
yaw_threshold double the yaw angle between trajectory and ego vehicle must be within this threshold to complete Autonomous transition. 0.262
speed_upper_threshold double the velocity deviation between control command and ego vehicle must be within this threshold to complete Autonomous transition. 2.0
speed_lower_threshold double the velocity deviation between control command and ego vehicle must be within this threshold to complete Autonomous transition. 2.0

Engage check behavior on each parameter setting

This matrix describes the scenarios in which the vehicle can be engaged based on the combinations of parameter settings:

enable_engage_on_driving check_engage_condition allow_autonomous_in_stopped Scenarios where engage is permitted
x x x Only when the vehicle is stationary.
x x o Only when the vehicle is stationary.
x o x When the vehicle is stationary and all engage conditions are met.
x o o Only when the vehicle is stationary.
o x x At any time (Caution: Not recommended).
o x o At any time (Caution: Not recommended).
o o x When all engage conditions are met, regardless of vehicle status.
o o o When all engage conditions are met or the vehicle is stationary.

Future extensions / Unimplemented parts

  • Need to remove backward compatibility interfaces.
  • This node should be merged to the vehicle_cmd_gate due to its strong connection.
CHANGELOG
No CHANGELOG found.

Wiki Tutorials

This package does not provide any links to tutorials in it's rosindex metadata. You can check on the ROS Wiki Tutorials page for the package.

Launch files

  • launch/operation_mode_transition_manager.launch.xml
      • operation_mode_transition_manager_param [default: $(find-pkg-share operation_mode_transition_manager)/config/operation_mode_transition_manager.param.yaml]
      • vehicle_info_param_file [default: $(find-pkg-share vehicle_info_util)/config/vehicle_info.param.yaml]

Services

No service files found

Plugins

No plugins found.

Recent questions tagged operation_mode_transition_manager at Robotics Stack Exchange

No version for distro noetic. Known supported distros are highlighted in the buttons above.
No version for distro ardent. Known supported distros are highlighted in the buttons above.
No version for distro bouncy. Known supported distros are highlighted in the buttons above.
No version for distro crystal. Known supported distros are highlighted in the buttons above.
No version for distro eloquent. Known supported distros are highlighted in the buttons above.
No version for distro dashing. Known supported distros are highlighted in the buttons above.
No version for distro galactic. Known supported distros are highlighted in the buttons above.
No version for distro foxy. Known supported distros are highlighted in the buttons above.
No version for distro iron. Known supported distros are highlighted in the buttons above.
No version for distro lunar. Known supported distros are highlighted in the buttons above.
No version for distro jade. Known supported distros are highlighted in the buttons above.
No version for distro indigo. Known supported distros are highlighted in the buttons above.
No version for distro hydro. Known supported distros are highlighted in the buttons above.
No version for distro kinetic. Known supported distros are highlighted in the buttons above.
No version for distro melodic. Known supported distros are highlighted in the buttons above.