Disable opencv info logging; Run loop until cin reads input
This commit is contained in:
parent
3e7c057ae0
commit
0e76610608
@ -1,11 +1,15 @@
|
|||||||
#include "lfr.h"
|
#include "lfr.h"
|
||||||
|
|
||||||
|
#include <opencv2/core/utils/logger.hpp>
|
||||||
|
|
||||||
int main(void)
|
int main(void)
|
||||||
{
|
{
|
||||||
|
//Disable opencv logging messages
|
||||||
|
cv::utils::logging::setLogLevel(cv::utils::logging::LOG_LEVEL_WARNING);
|
||||||
|
|
||||||
LFR lfr;
|
LFR lfr;
|
||||||
//todo: Future will block leaving the scope of startLoop(). You will have to think of a way to break the loop properly.
|
|
||||||
lfr.startLoop();
|
lfr.startLoop();
|
||||||
std::cout<<"AutonomousMode: Loop started\n";
|
char a;
|
||||||
|
std::cin >> a;
|
||||||
lfr.endLoop();
|
lfr.endLoop();
|
||||||
std::cout<<"AutonomousMode: Loop ended\n";
|
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user