Example of a real robot control, the Viper robot (arm robot, with 6 degrees of freedom).
#include <visp/vpConfig.h>
#include <visp/vpViper850.h>
#include <visp/vpDebug.h>
#include <iostream>
int main()
{
try {
std::cout << "a test for vpViper850 class..." << std::endl;
std::cout << "-- Default settings for Viper 850 ---"
<< std::endl;
std::cout << viper850 << std::endl;
std::cout << cam << std::endl;
std::cout << "-- Settings associated to the Marlin F033C camera without distortion ---"
<< std::endl;
std::cout << viper850 << std::endl;
std::cout << cam << std::endl;
std::cout << "-- Settings associated to the Marlin F033C camera with distortion ------"
<< std::endl;
std::cout << viper850 << std::endl;
std::cout << cam << std::endl;
#if 1
#else
#endif
std::cout << "fMe:" << std::endl
<<
"\tt: " << t.
t() << std::endl
<<
"\trzyz (rad): " << r.
t() << std::endl
return 0;
}
catch(...) {
return 0;
}
}