Example of a real robot control, the Viper850 robot (arm, with 6 degrees of freedom).
#include <iostream>
#include <visp3/core/vpCameraParameters.h>
#include <visp3/core/vpConfig.h>
#include <visp3/core/vpDebug.h>
#include <visp3/robot/vpRobotViper850.h>
#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
<< std::endl;
std::cout << "Catch an exception: " << e << std::endl;
}
return 0;
}
#else
int main()
{
std::cout << "The real Viper850 robot controller is not available." << std::endl;
return 0;
}
#endif