Example of a real robot control, the Afma6 robot (cartesian robot, with 6 degrees of freedom).
#include <visp3/core/vpCameraParameters.h>
#include <visp3/core/vpConfig.h>
#include <visp3/core/vpDebug.h>
#include <visp3/robot/vpAfma6.h>
#include <iostream>
int main()
{
#ifdef ENABLE_VISP_NAMESPACE
#endif
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 EXIT_SUCCESS;
}
std::cout << "Catch an exception: " << e << std::endl;
return EXIT_FAILURE;
}
}
Modelization of Irisa's gantry robot named Afma6.
void getCameraParameters(vpCameraParameters &cam, const unsigned int &image_width, const unsigned int &image_height) const
Generic class defining intrinsic camera parameters.
@ perspectiveProjWithDistortion
Perspective projection with distortion model.
error that can be emitted by ViSP classes.