Skip to content

Commit

Permalink
Fix research goal current2start
Browse files Browse the repository at this point in the history
  • Loading branch information
kosuke55 committed May 9, 2022
1 parent 33614c1 commit 0e917ff
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -245,11 +245,11 @@ void PullOverModule::researchGoal()
for (const auto area : pull_over_areas_) {
const Pose start_to_search = inverseTransformPose(search_pose, area.start_pose);
const Pose end_to_search = inverseTransformPose(search_pose, area.end_pose);
const Pose current_to_search = inverseTransformPose(search_pose, current_pose);
const Pose search_to_current = inverseTransformPose(current_pose, search_pose);
if (
start_to_search.position.x > parameters_.goal2obj_margin &&
end_to_search.position.x < -parameters_.goal2obj_margin &&
current_to_search.position.x > -parameters_.backward_ignore_distance) {
search_to_current.position.x < parameters_.backward_ignore_distance) {
GoalCandidate goal_candidate;
goal_candidate.goal_pose = search_pose;
goal_candidate.distance_from_original_goal =
Expand Down

0 comments on commit 0e917ff

Please sign in to comment.