test/test_control_module.cpp
/**
 * @brief      Test to check the working of the control module.
 */
@brief      Test to check the working of the control module.
@brief Test to check the working of the control module .
TEST_F(TestControlModule, processWorking1) {
  cv::Mat img = cv::imread("../data/test_caution_tape1.png");
  pm.computeLinePts(
      img);  
  cm.computeActionPt(
      pm.getPoints());  
  EXPECT_EQ(cm.getControlAction(), "Go left laterally at angle: 89.999992");
}
TEST_F ( TestControlModule , processWorking1 ) { cv :: Mat img = cv :: imread ( " " ) ; pm . computeLinePts ( img ) ; cm . computeActionPt ( pm . getPoints ( ) ) ; EXPECT_EQ ( cm . getControlAction ( ) , " " ) ; }
@brief      Test to check the working of the control module.
@brief Test to check the working of the control module .
// Detect the line in the input image and compute points // on it // Pass the detected points to compute control action // Expected output for the test image