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] authored and Takumi Ito committed Apr 4, 2024
1 parent 036b8f4 commit 73c12f7
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 @@ -260,10 +260,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 73c12f7

Please sign in to comment.