From 69c8e9aceaf30fbe5a25f2edab3380e3857cb17f Mon Sep 17 00:00:00 2001 From: acki Date: Thu, 29 May 2025 16:54:45 -0400 Subject: [PATCH] test go home --- src/modelec_strat/src/missions/test.go_home_mission.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/modelec_strat/src/missions/test.go_home_mission.cpp b/src/modelec_strat/src/missions/test.go_home_mission.cpp index 652e633..39396da 100644 --- a/src/modelec_strat/src/missions/test.go_home_mission.cpp +++ b/src/modelec_strat/src/missions/test.go_home_mission.cpp @@ -17,9 +17,9 @@ namespace Modelec score_pub_ = node_->create_publisher("/strat/score", 10); - auto t = nav_->GetCurrentPos(); + auto t = nav_->GetSpawn(); - nav_->GoTo(t->x, 1200, -M_PI_2, true, Pathfinding::FREE | Pathfinding::WALL | Pathfinding::OBSTACLE); + nav_->GoTo(t.x, 1200, -M_PI_2, true, Pathfinding::FREE | Pathfinding::WALL | Pathfinding::OBSTACLE); go_home_time_ = node_->now(); @@ -42,9 +42,9 @@ namespace Modelec case AWAIT_10S: { - auto t = nav_->GetCurrentPos(); + auto t = nav_->GetSpawn(); - nav_->GoTo(t->x, 1700, -M_PI_2, true, Pathfinding::FREE | Pathfinding::WALL | Pathfinding::OBSTACLE); + nav_->GoTo(t.x, 1700, -M_PI_2, true, Pathfinding::FREE | Pathfinding::WALL | Pathfinding::OBSTACLE); step_ = GO_HOME; }