Autonomy Software C++ 24.5.1
Welcome to the Autonomy Software repository of the Mars Rover Design Team (MRDT) at Missouri University of Science and Technology (Missouri S&T)! API reference contains the source code and other resources for the development of the autonomy software for our Mars rover. The Autonomy Software project aims to compete in the University Rover Challenge (URC) by demonstrating advanced autonomous capabilities and robust navigation algorithms.
Loading...
Searching...
No Matches
GeoPlanner.cc File Reference

Unit test for GeoPlanner class. More...

Include dependency graph for GeoPlanner.cc:

Classes

class  GeoPlannerTests
 Unit Test Class for the GeoPlanner. More...

Functions

 TEST_F (GeoPlannerTests, DoesNotLeak)
 Check that GeoPlanner doesn't leak any memory.
 TEST_F (GeoPlannerTests, Leaks)
 This should fail when the –check_for_leaks command line flag is specified.
 TEST_F (GeoPlannerTests, PlanPathBasic)
 Test GeoPlanner path planning functionality (stub).

Detailed Description

Unit test for GeoPlanner class.

Author
clayjay3 (clayt.nosp@m.onra.nosp@m.ycowe.nosp@m.n@gm.nosp@m.ail.c.nosp@m.om)
Date
2025-07-30

Function Documentation

◆ TEST_F() [1/3]

TEST_F ( GeoPlannerTests ,
DoesNotLeak  )

Check that GeoPlanner doesn't leak any memory.

Author
clayjay3 (clayt.nosp@m.onra.nosp@m.ycowe.nosp@m.n@gm.nosp@m.ail.c.nosp@m.om)
Date
2024-04-28
101{
102 // Create a new GeoPlanner object.
104 // Delete object.
105 delete pGeoPlanner;
106 // Point to null.
107 pGeoPlanner = nullptr;
108}
This class implements a geospatial path planner that uses a discrete 2.5D Costmap and a fast Weighted...
Definition GeoPlanner.h:49

◆ TEST_F() [2/3]

TEST_F ( GeoPlannerTests ,
Leaks  )

This should fail when the –check_for_leaks command line flag is specified.

Author
clayjay3 (clayt.nosp@m.onra.nosp@m.ycowe.nosp@m.n@gm.nosp@m.ail.c.nosp@m.om)
Date
2024-04-28
118{
119 // Create a new GeoPlanner object.
121 EXPECT_TRUE(pGeoPlanner != nullptr);
122}

◆ TEST_F() [3/3]

TEST_F ( GeoPlannerTests ,
PlanPathBasic  )

Test GeoPlanner path planning functionality (stub).

Author
clayjay3 (clayt.nosp@m.onra.nosp@m.ycowe.nosp@m.n@gm.nosp@m.ail.c.nosp@m.om)
Date
2025-07-30
132{
133 // This is a stub test. In a real test, you would mock LiDARHandler and provide known data.
134 // Here, we just check that PlanPath can be called and returns a vector.
135 ASSERT_NE(m_pLiDARHandler, nullptr);
136 pathplanners::GeoPlanner GeoPlanner;
137
138 // Fugitive Beach.
139 geoops::UTMCoordinate stStart(614082.79, 4190057.07, 15);
140 geoops::UTMCoordinate stEnd(614203.77, 4189924.81, 15);
141 std::vector<geoops::Waypoint> vPath = GeoPlanner.PlanPath(m_pLiDARHandler, stStart, stEnd, 2.0, 240.0, true);
142
143 // We can't guarantee a path exists without a real/mocked DB, but we can check type and no crash.
144 EXPECT_TRUE(vPath.size() >= 0);
145}
std::vector< geoops::Waypoint > PlanPath(LiDARHandler *pLiDARHandler, const geoops::UTMCoordinate &stStart, const geoops::UTMCoordinate &stEnd, double dSearchRadius=3.0, double dMaxSearchTimeSeconds=120.0, double dCorridorPadding=100.0)
Plan an optimal trajectory path from the start UTM to the end UTM coordinate utilizing a 2....
Definition GeoPlanner.cpp:116
This struct stores/contains information about a UTM coordinate.
Definition GeospatialOperations.hpp:211
Here is the call graph for this function: