Example of a real robot control, the Viper robot (arm robot, with 6 degrees of freedom).
#include <visp3/core/vpConfig.h>
#include <visp3/core/vpDebug.h>
#include <visp3/robot/vpViper850.h>
#include <iostream>
int main()
{
#ifdef ENABLE_VISP_NAMESPACE
#endif
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
<< std::endl;
return EXIT_SUCCESS;
}
return EXIT_FAILURE;
}
}
Generic class defining intrinsic camera parameters.
@ perspectiveProjWithDistortion
Perspective projection with distortion model.
Implementation of column vector and the associated operations.
error that can be emitted by ViSP classes.
const std::string & getStringMessage() const
Implementation of an homogeneous matrix and operations on such kind of matrices.
void extract(vpRotationMatrix &R) const
static double rad(double deg)
static double deg(double rad)
Implementation of a rotation matrix and operations on such kind of matrices.
Implementation of a rotation vector as Euler angle minimal representation.
vpRzyzVector & buildFrom(const vpRotationMatrix &R)
Class that consider the case of a translation vector.
Modelization of the ADEPT Viper 850 robot.
void getCameraParameters(vpCameraParameters &cam, const unsigned int &image_width, const unsigned int &image_height) const
@ TOOL_MARLIN_F033C_CAMERA
void get_fMe(const vpColVector &q, vpHomogeneousMatrix &fMe) const