diff --git a/aruco/ArucoDetector.cpp b/aruco/ArucoDetector.cpp index 4b84312..966976f 100644 --- a/aruco/ArucoDetector.cpp +++ b/aruco/ArucoDetector.cpp @@ -1,6 +1,6 @@ #include "ArucoDetector.h" -ArucoDetector::ArucoDetector(Type::RobotPose* pose, const std::string& calibrationPath, const Team team, const int cameraId, const bool headless) : robotPose(pose), headless(headless), team(team) +ArucoDetector::ArucoDetector(Type::RobotPose* pose, const std::string& calibrationPath, const Team team, const bool headless) : robotPose(pose), headless(headless), team(team) { // opencv 4.8 // this->detector = cv::aruco::ArucoDetector(getPredefinedDictionary(cv::aruco::DICT_4X4_50), cv::aruco::DetectorParameters()); @@ -19,19 +19,12 @@ ArucoDetector::ArucoDetector(Type::RobotPose* pose, const std::string& calibrati ); this->readCameraParameters(calibrationPath); - // this->cap = cv::VideoCapture(cameraId); this->cam = new lccv::PiCamera; cam->options->video_width=1920; cam->options->video_height=1080; cam->options->framerate=10; cam->options->verbose=true; -/* if (!cap.isOpened()) { - std::cerr << "Error opening camera." << std::endl; - } else - { - started = true; - }*/ started = true; if (!headless) diff --git a/aruco/ArucoDetector.h b/aruco/ArucoDetector.h index 82e6daf..4c1da3b 100644 --- a/aruco/ArucoDetector.h +++ b/aruco/ArucoDetector.h @@ -32,7 +32,7 @@ class ArucoDetector { bool started = false; public: - ArucoDetector(Type::RobotPose* pose, const std::string& calibrationPath, Team team, int cameraId = 0, bool headless = false); + ArucoDetector(Type::RobotPose* pose, const std::string& calibrationPath, Team team, bool headless = false); ~ArucoDetector(); diff --git a/arucoDetector.cpp b/arucoDetector.cpp index 0f137ad..7d3a84a 100644 --- a/arucoDetector.cpp +++ b/arucoDetector.cpp @@ -25,7 +25,7 @@ int main(int argc, char *argv[]) { if (std::string(argv[i]) == "--help") { - std::cout << "Usage: " << argv[0] << "