Example of a real robot control, the Afma6 robot (cartesian robot, with 6 degrees of freedom).
#include <visp/vpConfig.h>
#include <visp/vpAfma6.h>
#include <visp/vpDebug.h>
#include <visp/vpCameraParameters.h>
#include <iostream>
int main()
{
try {
std::cout << "a test for vpAfma6 class..." << std::endl;
std::cout << "-- Default settings for Afma6 ---"
<< std::endl;
std::cout << afma6 << std::endl;
std::cout << cam << std::endl;
std::cout << "-- Settings associated to the CCMOP tool without distortion ---"
<< std::endl;
std::cout << afma6 << std::endl;
std::cout << cam << std::endl;
std::cout << "-- Settings associated to the CCMOP tool with distortion ------"
<< std::endl;
std::cout << afma6 << std::endl;
std::cout << cam << std::endl;
std::cout << "-- Settings associated to the gripper tool without distortion ---"
<< std::endl;
std::cout << afma6 << std::endl;
std::cout << cam << std::endl;
std::cout << "-- Settings associated to the gripper tool with distortion ------"
<< std::endl;
std::cout << afma6 << std::endl;
std::cout << cam << std::endl;
return 0;
}
std::cout << "Catch an exception: " << e << std::endl;
return 1;
}
}