Skip to content

Commit

Permalink
fix(control_evaluator): correct goal_lateal_deviation
Browse files Browse the repository at this point in the history
Signed-off-by: Kasunori-Nakajima <[email protected]>
  • Loading branch information
Kazunori-Nakajima committed Dec 2, 2024
1 parent ce49bfc commit 4f79440
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ void ControlEvaluatorNode::AddGoalLongitudinalDeviationMetricMsg(const Pose & eg

void ControlEvaluatorNode::AddGoalLateralDeviationMetricMsg(const Pose & ego_pose)
{
const Metric metric = Metric::lateral_deviation;
const Metric metric = Metric::goal_lateral_deviation;

Check warning on line 235 in evaluator/autoware_control_evaluator/src/control_evaluator_node.cpp

View check run for this annotation

Codecov / codecov/patch

evaluator/autoware_control_evaluator/src/control_evaluator_node.cpp#L235

Added line #L235 was not covered by tests
const double metric_value =
metrics::calcLateralDeviation(route_handler_.getGoalPose(), ego_pose.position);

Expand Down

0 comments on commit 4f79440

Please sign in to comment.