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 Aug 9, 2023
1 parent b50c8f9 commit 5cb1f64
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions planning/freespace_planning_algorithms/src/astar_search.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -259,10 +259,13 @@ bool AstarSearch::search()
}

geometry_msgs::msg::Pose relative_goal_pose;
relative_goal_pose.position.x = goal_pose_.position.x - (next_pose.position.x - start_pose_.position.x);
relative_goal_pose.position.y = goal_pose_.position.y - (next_pose.position.y - start_pose_.position.y);
relative_goal_pose.position.x =
goal_pose_.position.x - (next_pose.position.x - start_pose_.position.x);
relative_goal_pose.position.y =
goal_pose_.position.y - (next_pose.position.y - start_pose_.position.y);
relative_goal_pose.orientation = goal_pose_.orientation;
const auto relative_goal_index = pose2index(costmap_, relative_goal_pose, planner_common_param_.theta_size);
const auto relative_goal_index =
pose2index(costmap_, relative_goal_pose, planner_common_param_.theta_size);

const auto & vertex_indexes_2d = vertex_indexes_table_[relative_goal_index.theta];
bool relative_goal_is_out_of_range = false;
Expand Down

0 comments on commit 5cb1f64

Please sign in to comment.