Example of a real robot control, the Afma4 robot (cylindrical robot, with 4 degrees of freedom).
#include <visp3/core/vpCameraParameters.h>
#include <visp3/core/vpDebug.h>
#include <visp3/robot/vpRobotAfma4.h>
#include <iostream>
#ifdef VISP_HAVE_AFMA4
int main()
{
#ifdef ENABLE_VISP_NAMESPACE
#endif
try {
std::cout << "A test for vpRobotAfma4 class..." << std::endl;
std::cout << afma4 << std::endl;
return EXIT_SUCCESS;
}
std::cout << "Catch an exception: " << e << std::endl;
return EXIT_FAILURE;
}
}
#else
int main()
{
std::cout << "The real Afma4 robot controller is not available." << std::endl;
return EXIT_SUCCESS;
}
#endif
error that can be emitted by ViSP classes.
Control of Irisa's cylindrical robot named Afma4.