Skip to content

Commit

Permalink
style(pre-commit): autofix
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Jul 11, 2024
1 parent 731b5be commit 1a91870
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,7 @@ struct LongitudinalInfo
safe_distance_margin = node.declare_parameter<double>("common.safe_distance_margin");
terminal_safe_distance_margin =
node.declare_parameter<double>("common.terminal_safe_distance_margin");
safe_distance_time_margin =
node.declare_parameter<double>("common.safe_distance_time_margin");
safe_distance_time_margin = node.declare_parameter<double>("common.safe_distance_time_margin");

hold_stop_velocity_threshold =
node.declare_parameter<double>("common.hold_stop_velocity_threshold");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -201,8 +201,8 @@ std::optional<PIDBasedPlanner::CruiseObstacleInfo> PIDBasedPlanner::calcObstacle
(obstacle.velocity - planner_data.ego_vel) * time_to_evaluate_rss_;

// calculate distance between ego and obstacle based on time-based rule
const double target_dist_to_obstacle = calcTimeBasedSafeDistance(
planner_data.ego_vel, longitudinal_info_.safe_distance_time_margin);
const double target_dist_to_obstacle =
calcTimeBasedSafeDistance(planner_data.ego_vel, longitudinal_info_.safe_distance_time_margin);

// calculate error distance and normalized one
const double error_cruise_dist = dist_to_obstacle - target_dist_to_obstacle;
Expand Down

0 comments on commit 1a91870

Please sign in to comment.