mirror of
https://github.com/modelec/detection_pot.git
synced 2026-01-18 16:47:33 +01:00
lib
This commit is contained in:
@@ -6,7 +6,11 @@ set(CMAKE_CXX_STANDARD 17)
|
||||
find_package( OpenCV REQUIRED )
|
||||
find_package(PkgConfig REQUIRED)
|
||||
pkg_check_modules(LIBCAMERA REQUIRED libcamera)
|
||||
pkg_check_modules(TCPSocket REQUIRED TCPSocket)
|
||||
|
||||
find_package(Modelec COMPONENTS
|
||||
TCPClient
|
||||
REQUIRED
|
||||
)
|
||||
|
||||
include_directories(${LIBCAMERA_INCLUDE_DIRS} ${OPENCV_INCLUDE_DIRS})
|
||||
|
||||
@@ -46,7 +50,7 @@ add_executable(arucoDetector ${arucoDetectionSources})
|
||||
|
||||
target_link_libraries( arucoDetector -llccv ${OpenCV_LIBS} )
|
||||
|
||||
target_link_libraries( arucoDetector TCPSocket )
|
||||
target_link_libraries( arucoDetector Modelec::TCPClient )
|
||||
|
||||
set(photo
|
||||
${COMMON_SOURCES}
|
||||
|
||||
@@ -9,7 +9,7 @@ void MyClient::handleMessage(const std::string& message)
|
||||
{
|
||||
std::cout << message << std::endl;
|
||||
|
||||
std::vector<std::string> messageSplited = TCPSocket::split(message, ";");
|
||||
std::vector<std::string> messageSplited = Modelec::split(message, ";");
|
||||
|
||||
if (messageSplited.size() != 4) {
|
||||
std::cerr << "Invalid message format" << std::endl;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
#include <TCPSocket/TCPClient.hpp>
|
||||
#include <TCPSocket/TCPUtils.hpp>
|
||||
#include <Modelec/TCPClient.h>
|
||||
#include <Modelec/Utils.h>
|
||||
|
||||
#include "../utils/utils.h"
|
||||
#include "../aruco/ArucoTag.h"
|
||||
|
||||
Reference in New Issue
Block a user