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
ZEDCam.cc File Reference

ZEDCam unit tests. More...

Include dependency graph for ZEDCam.cc:

Classes

class  ZEDCamTests

Functions

 TEST_F (ZEDCamTests, ConstructorDestructor)
 Test the functionality of the ZEDCam constructor and destructor.
 TEST_F (ZEDCamTests, DoesNotLeak)
 Check that ZEDCam doesn't leak any memory.
 TEST_F (ZEDCamTests, Leaks)
 This should fail when the –check_for_leaks command line flag is specified.
 TEST_F (ZEDCamTests, GetCameraIsOpen)
 Test the GetCameraIsOpen method.

Detailed Description

ZEDCam unit tests.

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

Function Documentation

◆ TEST_F() [1/4]

TEST_F ( ZEDCamTests ,
ConstructorDestructor  )

Test the functionality of the ZEDCam constructor and destructor.

Author
clayjay3 (clayt.nosp@m.onra.nosp@m.ycowe.nosp@m.n@gm.nosp@m.ail.c.nosp@m.om)
Date
2025-01-05
73{
74 // Create a ZEDCam object.
75 ZEDCam zedCam(1280, 720, 30, 90.0, 60.0, false, 0.5f, 20.0f, false, false, false, 1, 0);
76
77 // Check initial camera open status.
78 EXPECT_FALSE(zedCam.GetCameraIsOpen());
79
80 // Destructor will be called automatically when the object goes out of scope.
81}
This class implements and interfaces with the most common ZEDSDK cameras and features....
Definition ZEDCam.h:31
Here is the call graph for this function:

◆ TEST_F() [2/4]

TEST_F ( ZEDCamTests ,
DoesNotLeak  )

Check that ZEDCam 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
2025-01-05
91{
92 // Create a new ZEDCam object.
93 ZEDCam* pZEDCam = new ZEDCam(1280, 720, 30, 90.0, 60.0, false, 0.5f, 20.0f, false, false, false, 1, 0);
94 // Delete object.
95 delete pZEDCam;
96 // Point to null.
97 pZEDCam = nullptr;
98}

◆ TEST_F() [3/4]

TEST_F ( ZEDCamTests ,
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
2025-01-05
108{
109 // Create a new ZEDCam object.
110 ZEDCam* pZEDCam = new ZEDCam(1280, 720, 30, 90.0, 60.0, false, 0.5f, 20.0f, false, false, false, 1, 0);
111 EXPECT_TRUE(pZEDCam != nullptr);
112}

◆ TEST_F() [4/4]

TEST_F ( ZEDCamTests ,
GetCameraIsOpen  )

Test the GetCameraIsOpen method.

Author
clayjay3 (clayt.nosp@m.onra.nosp@m.ycowe.nosp@m.n@gm.nosp@m.ail.c.nosp@m.om)
Date
2025-01-05
122{
123 // Create a ZEDCam object.
124 ZEDCam zedCam(1280, 720, 30, 90.0, 60.0, false, 0.5f, 20.0f, false, false, false, 1, 0);
125
126 // Check initial camera open status.
127 EXPECT_FALSE(zedCam.GetCameraIsOpen());
128}
Here is the call graph for this function: