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
GeoPlannerTests Class Reference

Unit Test Class for the GeoPlanner. More...

Inheritance diagram for GeoPlannerTests:
Collaboration diagram for GeoPlannerTests:

Public Member Functions

 GeoPlannerTests ()
 Construct a new GeoPlannerTests object.
 ~GeoPlannerTests ()
 Destroy the GeoPlannerTests object.
void TestSetup () override
 Setup the GeoPlannerTests object.
void TestTeardown () override
 Teardown the GeoPlannerTests object.
Public Member Functions inherited from TestingBase< GeoPlannerTests >
 TestingBase ()=default
 Construct a new Testing Base object.
virtual ~TestingBase ()=default
 Destroy the Testing Base object.

Protected Attributes

LiDARHandler * m_pLiDARHandler = nullptr

Additional Inherited Members

Static Public Member Functions inherited from TestingBase< GeoPlannerTests >
static void SetCommandLineArgs (int argc, char **argv)
 Mutator for the Command Line Args private member.
Protected Member Functions inherited from TestingBase< GeoPlannerTests >
void RequiredSetup ()
 Required setup for all tests.
void RequiredTeardown ()
 Required teardown for all tests.
void SetupRoveComm ()
 Setup RoveComm for testing.
void TeardownRoveComm ()
 Teardown RoveComm for testing.

Detailed Description

Unit Test Class for the GeoPlanner.

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

Constructor & Destructor Documentation

◆ GeoPlannerTests()

GeoPlannerTests::GeoPlannerTests ( )
inline

Construct a new GeoPlannerTests object.

Author
clayjay3 (clayt.nosp@m.onra.nosp@m.ycowe.nosp@m.n@gm.nosp@m.ail.c.nosp@m.om)
Date
2025-01-09
48{}

◆ ~GeoPlannerTests()

GeoPlannerTests::~GeoPlannerTests ( )
inline

Destroy the GeoPlannerTests object.

Author
clayjay3 (clayt.nosp@m.onra.nosp@m.ycowe.nosp@m.n@gm.nosp@m.ail.c.nosp@m.om)
Date
2025-01-09
56{}

Member Function Documentation

◆ TestSetup()

void GeoPlannerTests::TestSetup ( )
inlineoverridevirtual

Setup the GeoPlannerTests object.

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

Reimplemented from TestingBase< GeoPlannerTests >.

65 {
66 // Initialize the LiDARHandler for this test.
67 m_pLiDARHandler = new LiDARHandler();
68 if (!m_pLiDARHandler->OpenDB("../data/LiDAR/data/databases/Flat_SIM.db"))
69 {
70 // Submit logger message.
71 LOG_ERROR(logging::g_qSharedLogger, "Failed to open LiDAR database for GeoPlanner tests.");
72 // Stop the test.
73 FAIL() << "Failed to open LiDAR database for GeoPlanner tests.";
74 }
75 }

◆ TestTeardown()

void GeoPlannerTests::TestTeardown ( )
inlineoverridevirtual

Teardown the GeoPlannerTests object.

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

Reimplemented from TestingBase< GeoPlannerTests >.

84 {
85 if (m_pLiDARHandler)
86 {
87 delete m_pLiDARHandler;
88 m_pLiDARHandler = nullptr;
89 }
90 }

The documentation for this class was generated from the following file: