28 #include <experimental/memory>
30 #include <opencv2/aruco.hpp>
31 #include <VirtualRobot/VirtualRobot.h>
43 #include <VisionX/interface/components/ArMarkerLocalizerInterface.h>
66 ,
virtual public ArMarkerLocalizerInterface
101 visionx::ArMarkerLocalizationResultList localizeAllMarkersInternal();
108 std::atomic<float> markerSize = 40.0;
109 int dictionary = cv::aruco::DICT_ARUCO_ORIGINAL;
111 std::string referenceFrame =
"DepthCamera";
112 std::string agentName =
"Armar6";
113 std::string imageProviderName =
"ImageProvider";
115 std::size_t cameraIndex = 0;
118 std::vector<float> extraDistortionCoeffs;
120 std::atomic_bool visuEnabled =
false;
133 CByteImage** cameraImages;
134 cv::Mat cameraMatrix, distortionCoeffs;
136 cv::Ptr<cv::aruco::DetectorParameters> arucoParameters =
new cv::aruco::DetectorParameters();
137 cv::Ptr<cv::aruco::Dictionary> arucoDictionary =
new cv::aruco::Dictionary();
139 std::mutex resultMutex;
140 visionx::ArMarkerLocalizationResultList lastLocalizationResult;
145 template <
typename T>
148 template <
typename T>
151 obs_ptr<rw_plugin<armarx::armem::robot_state::VirtualRobotReader>> virtualRobotReaderPlugin =
155 VirtualRobot::RobotNodePtr referenceNode;