SIMZEDCam unit tests.
More...
SIMZEDCam 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
- Copyright
- Copyright Mars Rover Design Team 2025 - All Rights Reserved
◆ TEST_F() [1/7]
Test the functionality of the SIMZEDCam 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
78{
79
80 SIMZEDCam simZEDCam(
"ws://127.0.0.1:8080/ZEDFrontCam", 1280, 720, 30, 90.0, 60.0,
false, 1, 12345);
81
82
83 EXPECT_FALSE(simZEDCam.GetCameraIsOpen());
84
85
86}
This class implements and interfaces with the SIM cameras and data. It is designed in such a way that...
Definition SIMZEDCam.h:36
◆ TEST_F() [2/7]
◆ TEST_F() [3/7]
◆ TEST_F() [4/7]
Test the ResetPositionalTracking 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
127{
128
129 SIMZEDCam simZEDCam(
"ws://127.0.0.1:8080/ZEDFrontCam", 1280, 720, 30, 90.0, 60.0,
false, 1, 12345);
130
131
132 auto errorCode = simZEDCam.ResetPositionalTracking();
133
134
135 EXPECT_EQ(errorCode, sl::ERROR_CODE::SUCCESS);
136}
◆ TEST_F() [5/7]
◆ TEST_F() [6/7]
Test the EnablePositionalTracking 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
165{
166
167 SIMZEDCam simZEDCam(
"ws://127.0.0.1:8080/ZEDFrontCam", 1280, 720, 30, 90.0, 60.0,
false, 1, 12345);
168
169
170 auto errorCode = simZEDCam.EnablePositionalTracking(1.0f);
171
172
173 EXPECT_EQ(errorCode, sl::ERROR_CODE::SUCCESS);
174}
◆ TEST_F() [7/7]
Test the DisablePositionalTracking 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
184{
185
186 SIMZEDCam simZEDCam(
"ws://127.0.0.1:8080/ZEDFrontCam", 1280, 720, 30, 90.0, 60.0,
false, 1, 12345);
187
188
189 simZEDCam.DisablePositionalTracking();
190
191
192
193 EXPECT_FALSE(simZEDCam.GetPositionalTrackingEnabled());
194}