37 #ifndef __usRectangleVisualServoingController_h_
38 #define __usRectangleVisualServoingController_h_
41 #include <visp3/ustk_core/usConfig.h>
43 #if (defined(USTK_HAVE_VTK_QT) || defined(USTK_HAVE_QT5)) && defined(VISP_HAVE_MODULE_USTK_TEMPLATE_TRACKING)
45 #include <QApplication>
47 #include <visp3/ustk_confidence_map/usScanlineConfidence2D.h>
48 #include <visp3/ustk_core/usImagePostScan2D.h>
49 #include <visp3/ustk_core/usImagePreScan2D.h>
50 #include <visp3/ustk_core/usPixelMeterConversion.h>
51 #include <visp3/ustk_core/usPreScanToPostScan2DConverter.h>
52 #include <visp3/ustk_template_tracking/usDenseTracker2D.h>
59 class VISP_EXPORT usRectangleVisualServoingController :
public QObject
63 usRectangleVisualServoingController(QObject *parent = NULL);
64 virtual ~usRectangleVisualServoingController();
67 void confidenceBarycenterAngle(
double theta);
69 void updatePobeXVelocity(
int linearVelocity);
70 void updateProbeZOrientation(
int angularVelocity);
71 void newRectTracked(vpRectOriented rect);
73 void trackerXError(
double error);
77 void initTracker(vpRectOriented rect);
79 void activateController(
bool activate);
80 void activateController();
81 void disactivateController();
91 bool m_trackerActivated;
92 bool m_controllerActivated;
Process a pre-scan image to determine the confidence map.