Shows how to build a task with a
visual feature.
#include <visp3/blob/vpDot2.h>
#include <visp3/core/vpCameraParameters.h>
#include <visp3/core/vpColVector.h>
#include <visp3/core/vpHomogeneousMatrix.h>
#include <visp3/core/vpRotationMatrix.h>
#include <visp3/core/vpTranslationVector.h>
#include <visp3/visual_features/vpFeatureBuilder.h>
#include <visp3/visual_features/vpFeaturePoint.h>
#include <visp3/visual_features/vpFeatureThetaU.h>
#include <visp3/visual_features/vpGenericFeature.h>
#include <visp3/vs/vpServo.h>
#include <iostream>
int main()
{
#ifdef ENABLE_VISP_NAMESPACE
#endif
try {
for (int i = 0; i < 3; i++) {
tu_cdRc[0] = 0.1;
tu_cdRc[1] = 0.2;
tu_cdRc[2] = 0.3;
s.buildFrom(tu_cdRc);
s.print();
task.addFeature(s);
std::cout << "End, call vpServo destructors..." << std::endl;
}
return EXIT_SUCCESS;
}
std::cout << "Catch an exception: " << e << std::endl;
return EXIT_FAILURE;
}
}
error that can be emitted by ViSP classes.
Class that defines a 3D visual feature from a axis/angle parametrization that represent the rotati...
static unsigned int selectTUz()
Implementation of a matrix and operations on matrices.
Implementation of a rotation vector as axis-angle minimal representation.