Browse Source

Move main method in own file instead of lfr.cpp

pull/1/head
Tim Zeuner 2 years ago
parent
commit
36b65fdf07
3 changed files with 10 additions and 10 deletions
  1. 1
    1
      CMakeLists.txt
  2. 9
    0
      autonomous_mode_main.cpp
  3. 0
    9
      lfr.cpp

+ 1
- 1
CMakeLists.txt View File

@@ -33,7 +33,7 @@ target_include_directories(ControlModule PRIVATE .)
target_include_directories(Interpreter PRIVATE .)
target_include_directories(IntersectionHandler PRIVATE .)

add_executable(lfr_image_processing lfr.cpp)
add_executable(lfr_image_processing lfr.cpp autonomous_mode_main.cpp)

target_link_libraries( lfr_image_processing ${OpenCV_LIBS} Input Processing ControlModule Interpreter IntersectionHandler )


+ 9
- 0
autonomous_mode_main.cpp View File

@@ -0,0 +1,9 @@
#include "lfr.h"

int main(void)
{
//Mat image1 = input.readFile("C:\\Line-Following-Robot\\Test_data\\*.jpeg");

LFR lfr;
lfr.startLoop();
}

+ 0
- 9
lfr.cpp View File

@@ -33,13 +33,4 @@ void LFR::startLoop()
void LFR::endLoop()
{
std::cout<<"The loop has been started. You may not dare to tell it to stop.";
}


int main(void)
{
//Mat image1 = input.readFile("C:\\Line-Following-Robot\\Test_data\\*.jpeg");

LFR lfr;
lfr.startLoop();
}

Loading…
Cancel
Save