Example of a real robot control, the Viper850 robot (arm, with 6 degrees of freedom).
#include <visp/vpConfig.h>
#include <visp/vpRobotViper850.h>
#include <visp/vpDebug.h>
#include <visp/vpCameraParameters.h>
#include <iostream>
#ifdef VISP_HAVE_VIPER850
int main()
{
try {
std::cout << "a test for vpRobotViper850 class..." << std::endl;
std::cout << "-- Default settings for Viper850 ---"
<< 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;
std::cout << "-- Current joint position:" << std::endl;
std::cout <<
" " << q.
t() << std::endl;
std::cout << "-- Current fMe:" << std::endl;
std::cout << "fMe:" << std::endl
<<
"\tt: " << t.
t() << std::endl
return 0;
}
catch(...) {
return 0;
}
}
#else
int main()
{
std::cout << "The real Viper850 robot controller is not available." << std::endl;
return 0;
}
#endif