33 #include <VisionX/interface/components/TrackingErrorInterface.h>
35 #include <opencv2/opencv.hpp>
37 #include <Image/IplImageAdaptor.h>
40 #include <Eigen/Geometry>
60 defineOptionalProperty<float>(
"Framerate", 0.0,
"the framerate");
61 defineOptionalProperty<std::string>(
"providerName",
"Armar3ImageProvider",
"ImageProvider name");
62 defineOptionalProperty<bool>(
"UseChessBoard",
true,
"use chessboard for feature tracking");
63 defineOptionalProperty<std::string>(
"TrackingErrorTopicName",
"TrackingErrorTopic",
"TrackingErrorTopicName name");
64 defineOptionalProperty<int>(
"Chessboard.Width", 7,
"Chessboard width");
65 defineOptionalProperty<int>(
"Chessboard.Height", 5,
"Chessboard height");
67 defineOptionalProperty<std::string>(
"DebugObserverName",
"DebugObserver",
"Name of the topic the DebugObserver listens on");
91 return "TrackingError";
107 CByteImage** cameraImages;
108 std::string providerName;
109 std::mutex imageMutex;
110 cv::Mat previousImage, old2;
111 std::vector< cv::Point2f > previousFeatures, features2_prev;
114 int chessboardWidth, chessboardHeight, imageWidth, imageHeight;
116 visionx::ImageProviderInterfacePrx imageProviderPrx;
117 TrackingErrorListenerPrx prx;