forked from autowarefoundation/autoware.universe
-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1644 from tier4/cherry-pick/control-evaluator-to-…
…v4.0.0 feat(control_evaluator): cherry pick/control evaluator to v4.0.0
- Loading branch information
Showing
17 changed files
with
624 additions
and
75 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -62,7 +62,9 @@ control/autoware_trajectory_follower_base/** [email protected] takayuki.m | |
control/pure_pursuit/** [email protected] [email protected] | ||
control/shift_decider/** [email protected] [email protected] | ||
control/autoware_trajectory_follower_node/** [email protected] [email protected] | ||
evaluator/autoware_control_evaluator/** [email protected] [email protected] | ||
evaluator/autoware_control_evaluator/** [email protected] [email protected] [email protected] | ||
evaluator/autoware_evaluator_utils/** [email protected] [email protected] | ||
evaluator/autoware_planning_evaluator/** [email protected] [email protected] | ||
evaluator/diagnostic_converter/** [email protected] [email protected] [email protected] | ||
evaluator/kinematic_evaluator/** [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] | ||
evaluator/localization_evaluator/** [email protected] [email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,17 @@ | ||
# Planning Evaluator | ||
# Control Evaluator | ||
|
||
## Purpose | ||
|
||
This package provides nodes that generate metrics to evaluate the quality of control. | ||
|
||
It publishes diagnostic information about control modules' outputs as well as the ego vehicle's current kinematics and position. | ||
|
||
## Evaluated metrics | ||
|
||
The control evaluator uses the metrics defined in `include/autoware/control_evaluator/metrics/deviation_metrics.hpp`to calculate deviations in yaw and lateral distance from the ego's set-point. The control_evaluator can also be customized to offer metrics/evaluation about other control modules. Currently, the control_evaluator offers a simple diagnostic output based on the autonomous_emergency_braking node's output, but this functionality can be extended to evaluate other control modules' performance. | ||
|
||
## Kinematics output | ||
|
||
The control evaluator module also constantly publishes information regarding the ego vehicle's kinematics and position. It publishes the current ego lane id with the longitudinal `s` and lateral `t` arc coordinates. It also publishes the current ego speed, acceleration and jerk in its diagnostic messages. | ||
|
||
This information can be used by other nodes to establish automated evaluation using rosbags: by crosschecking the ego position and kinematics with the evaluated control module's output, it is possible to judge if the evaluated control modules reacted in a satisfactory way at certain interesting points of the rosbag reproduction. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
evaluator/autoware_control_evaluator/launch/control_evaluator.launch.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,21 @@ | ||
<launch> | ||
<arg name="input/diagnostics" default="/diagnostics"/> | ||
<arg name="input/odometry" default="/localization/kinematic_state"/> | ||
<arg name="input/acceleration" default="/localization/acceleration"/> | ||
<arg name="input/trajectory" default="/planning/scenario_planning/trajectory"/> | ||
<arg name="map_topic_name" default="/map/vector_map"/> | ||
<arg name="route_topic_name" default="/planning/mission_planning/route"/> | ||
<!-- control evaluator --> | ||
<group> | ||
<node name="control_evaluator" exec="control_evaluator" pkg="autoware_control_evaluator"> | ||
<param from="$(find-pkg-share autoware_control_evaluator)/param/control_evaluator.defaults.yaml"/> | ||
<remap from="~/input/diagnostics" to="$(var input/diagnostics)"/> | ||
<remap from="~/input/odometry" to="$(var input/odometry)"/> | ||
<remap from="~/input/acceleration" to="$(var input/acceleration)"/> | ||
<remap from="~/input/trajectory" to="$(var input/trajectory)"/> | ||
<remap from="~/metrics" to="/control/control_evaluator/metrics"/> | ||
<remap from="~/input/vector_map" to="$(var map_topic_name)"/> | ||
<remap from="~/input/route" to="$(var route_topic_name)"/> | ||
</node> | ||
</group> | ||
</launch> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,8 @@ | |
<description>ROS 2 node for evaluating control</description> | ||
<maintainer email="[email protected]">Daniel SANCHEZ</maintainer> | ||
<maintainer email="[email protected]">takayuki MUROOKA</maintainer> | ||
<maintainer email="[email protected]">kosuke TAKEUCHI</maintainer> | ||
<maintainer email="[email protected]">Temkei Kem</maintainer> | ||
<license>Apache License 2.0</license> | ||
|
||
<author email="[email protected]">Daniel SANCHEZ</author> | ||
|
@@ -14,14 +16,19 @@ | |
<buildtool_depend>ament_cmake_auto</buildtool_depend> | ||
<buildtool_depend>autoware_cmake</buildtool_depend> | ||
|
||
<depend>autoware_evaluator_utils</depend> | ||
<depend>autoware_motion_utils</depend> | ||
<depend>autoware_planning_msgs</depend> | ||
<depend>autoware_route_handler</depend> | ||
<depend>autoware_test_utils</depend> | ||
<depend>autoware_universe_utils</depend> | ||
<depend>diagnostic_msgs</depend> | ||
<depend>nav_msgs</depend> | ||
<depend>pluginlib</depend> | ||
<depend>rclcpp</depend> | ||
<depend>rclcpp_components</depend> | ||
<!-- <depend>nav_msgs</depend> --> | ||
<depend>tf2</depend> | ||
<depend>tf2_ros</depend> | ||
|
||
<test_depend>ament_cmake_ros</test_depend> | ||
<test_depend>ament_lint_auto</test_depend> | ||
|
Oops, something went wrong.