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

Unit Test Class for the Aruco Tag Detection using OpenCV. More...

Inheritance diagram for ArucoDetectionTests:
Collaboration diagram for ArucoDetectionTests:

Public Member Functions

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

Protected Member Functions

template<typename T>
bool PointsAreEqual (const cv::Point_< T > &p1, const cv::Point_< T > &p2)
 Are two points equal to each other.
cv::Mat LoadImageFromRelativePath (const std::string &relativePath)
Protected Member Functions inherited from TestingBase< ArucoDetectionTests >
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.

Additional Inherited Members

Static Public Member Functions inherited from TestingBase< ArucoDetectionTests >
static void SetCommandLineArgs (int argc, char **argv)
 Mutator for the Command Line Args private member.

Detailed Description

Unit Test Class for the Aruco Tag Detection using OpenCV.

Author
Eli Byrd (edbgk.nosp@m.k@ms.nosp@m.t.edu)
Date
2025-01-09

Constructor & Destructor Documentation

◆ ArucoDetectionTests()

ArucoDetectionTests::ArucoDetectionTests ( )
inline

Construct a new Tag Detect OpenCV Tests object.

Author
Eli Byrd (edbgk.nosp@m.k@ms.nosp@m.t.edu)
Date
2025-01-10
72{}

◆ ~ArucoDetectionTests()

ArucoDetectionTests::~ArucoDetectionTests ( )
inline

Destroy the Tag Detect OpenCV Tests object.

Author
Eli Byrd (edbgk.nosp@m.k@ms.nosp@m.t.edu)
Date
2025-01-10
80{}

Member Function Documentation

◆ PointsAreEqual()

template<typename T>
bool ArucoDetectionTests::PointsAreEqual ( const cv::Point_< T > & p1,
const cv::Point_< T > & p2 )
inlineprotected

Are two points equal to each other.

Template Parameters
T- Data type of the points coordinates (int, double, float, ..)
Parameters
p1- first point
p2- second point
Returns
true - points are equal to each other
false - points are not equal to each other
Author
JSpencerPittman (jspen.nosp@m.cerp.nosp@m.ittma.nosp@m.n@gm.nosp@m.ail.c.nosp@m.om)
Date
2023-10-11
54 {
55 return p1.x == p2.x && p1.y == p2.y;
56 }
cv::Point2i p1

◆ LoadImageFromRelativePath()

cv::Mat ArucoDetectionTests::LoadImageFromRelativePath ( const std::string & relativePath)
inlineprotected
59 {
60 std::filesystem::path pathParentDir = std::filesystem::path(__FILE__).parent_path();
61 std::filesystem::path pathImage = pathParentDir / relativePath;
62 return cv::imread(pathImage, cv::IMREAD_COLOR);
63 }
IMREAD_COLOR
Mat imread(const String &filename, int flags=IMREAD_COLOR)

◆ TestSetup()

void ArucoDetectionTests::TestSetup ( )
inlineoverridevirtual

Setup the Tag Detect OpenCV Tests object.

Author
Eli Byrd (edbgk.nosp@m.k@ms.nosp@m.t.edu)
Date
2025-01-10

Reimplemented from TestingBase< ArucoDetectionTests >.

89{}

◆ TestTeardown()

void ArucoDetectionTests::TestTeardown ( )
inlineoverridevirtual

Teardown the Tag Detect OpenCV Tests object.

Author
Eli Byrd (edbgk.nosp@m.k@ms.nosp@m.t.edu)
Date
2025-01-10

Reimplemented from TestingBase< ArucoDetectionTests >.

97{}

The documentation for this class was generated from the following file:
  • tests/Unit/src/vision/aruco/ArucoDetectionTests.cc