Skip to content

Commit

Permalink
pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
t4-adc committed Jan 20, 2025
1 parent b955aa5 commit cd3f2a8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,13 @@ lanelet::ConstLineString3d get_most_side_boundary(
* @return distance between the vehicle footprint and the lanelet, 0.0 if the vehicle intersects
*with the line
**/
double calc_distance_to_line(const autoware::universe_utils::LinearRing2d & vehicle_footprint, const lanelet::ConstLineString3d & line);
double calc_distance_to_line(
const autoware::universe_utils::LinearRing2d & vehicle_footprint,
const lanelet::ConstLineString3d & line);

/**
* @brief Calculate the yaw deviation between the ego's orientation and the vector from the ego position to the closest point on the line.
* @brief Calculate the yaw deviation between the ego's orientation and the vector from the ego
* position to the closest point on the line.
* @param [in] ego_pose The pose of the ego vehicle.
* @param [in] line The line to which the yaw deviation is calculated.
* @return The yaw deviation in radians, normalized to the range [-π, π].
Expand All @@ -69,4 +72,4 @@ double calc_yaw_to_line(const Pose & ego_pose, const lanelet::ConstLineString3d
} // namespace utils
} // namespace metrics
} // namespace control_diagnostics
#endif // AUTOWARE__CONTROL_EVALUATOR__METRICS__METRICS_UTILS_HPP_
#endif // AUTOWARE__CONTROL_EVALUATOR__METRICS__METRICS_UTILS_HPP_
Original file line number Diff line number Diff line change
Expand Up @@ -102,4 +102,4 @@ double calc_yaw_to_line(const Pose & ego_pose, const lanelet::ConstLineString3d

} // namespace utils
} // namespace metrics
} // namespace control_diagnostics
} // namespace control_diagnostics

0 comments on commit cd3f2a8

Please sign in to comment.