36 #include <visp3/core/vpConfig.h>
37 #if defined(VISP_HAVE_MODULE_GUI) && defined(VISP_HAVE_THREADS)
41 #include <visp3/core/vpDebug.h>
42 #include <visp3/core/vpImagePoint.h>
43 #include <visp3/core/vpIoTools.h>
44 #include <visp3/core/vpMeterPixelConversion.h>
45 #include <visp3/core/vpPoint.h>
46 #include <visp3/core/vpTime.h>
47 #include <visp3/robot/vpRobotException.h>
48 #include <visp3/robot/vpSimulatorAfma6.h>
50 #include "../wireframe-simulator/vpBound.h"
51 #include "../wireframe-simulator/vpRfstack.h"
52 #include "../wireframe-simulator/vpScene.h"
53 #include "../wireframe-simulator/vpVwstack.h"
63 positioningVelocity(defaultPositioningVelocity), zeroPos(), reposPos(), toolCustom(false), arm_dir()
83 positioningVelocity(defaultPositioningVelocity), zeroPos(), reposPos(), toolCustom(false), arm_dir()
107 for (
int i = 0; i < 6; i++)
128 std::vector<std::string> arm_dirs =
vpIoTools::splitChain(std::string(VISP_ROBOT_ARMS_DIR), std::string(
";"));
129 bool armDirExists =
false;
130 for (
size_t i = 0; i < arm_dirs.size(); i++)
132 arm_dir = arm_dirs[i];
139 std::cout <<
"The simulator uses data from VISP_ROBOT_ARMS_DIR=" << arm_dir << std::endl;
142 std::cout <<
"Cannot get VISP_ROBOT_ARMS_DIR environment variable" << std::endl;
158 reposPos[1] = -M_PI / 2;
160 reposPos[4] = M_PI / 2;
167 first_time_getdis =
true;
228 unsigned int name_length = 30;
229 if (arm_dir.size() > FILENAME_MAX)
231 unsigned int full_length = (
unsigned int)arm_dir.size() + name_length;
232 if (full_length > FILENAME_MAX)
251 char *name_arm =
new char[full_length];
252 strcpy(name_arm, arm_dir.c_str());
253 strcat(name_arm,
"/afma6_tool_ccmop.bnd");
274 char *name_arm =
new char[full_length];
275 strcpy(name_arm, arm_dir.c_str());
276 strcat(name_arm,
"/afma6_tool_gripper.bnd");
298 char *name_arm =
new char[full_length];
300 strcpy(name_arm, arm_dir.c_str());
301 strcat(name_arm,
"/afma6_tool_vacuum.bnd");
309 std::cout <<
"The custom tool is not handled in vpSimulatorAfma6.cpp" << std::endl;
313 std::cout <<
"The Intel D435 camera is not handled in vpSimulatorAfma6.cpp" << std::endl;
317 std::cout <<
"The generic camera is not handled in vpSimulatorAfma6.cpp" << std::endl;
343 const unsigned int &image_height)
352 if (image_width == 640 && image_height == 480) {
358 vpTRACE(
"Cannot get default intrinsic camera parameters for this image "
365 if (image_width == 640 && image_height == 480) {
371 vpTRACE(
"Cannot get default intrinsic camera parameters for this image "
377 std::cout <<
"The generic tool is not handled in vpSimulatorAfma6.cpp" << std::endl;
381 std::cout <<
"The Intel D435 camera is not handled in vpSimulatorAfma6.cpp" << std::endl;
385 std::cout <<
"The generic camera is not handled in vpSimulatorAfma6.cpp" << std::endl;
389 std::cout <<
"The vacuum tool is not handled in vpSimulatorAfma6.cpp" << std::endl;
443 double tcur_1 =
tcur;
446 bool setVelocityCalled_ =
false;
463 double ellapsedTime = (
tcur -
tprev) * 1e-3;
482 articularVelocities = 0.0;
488 articularCoordinates[0] = articularCoordinates[0] + ellapsedTime * articularVelocities[0];
489 articularCoordinates[1] = articularCoordinates[1] + ellapsedTime * articularVelocities[1];
490 articularCoordinates[2] = articularCoordinates[2] + ellapsedTime * articularVelocities[2];
491 articularCoordinates[3] = articularCoordinates[3] + ellapsedTime * articularVelocities[3];
492 articularCoordinates[4] = articularCoordinates[4] + ellapsedTime * articularVelocities[4];
493 articularCoordinates[5] = articularCoordinates[5] + ellapsedTime * articularVelocities[5];
499 ellapsedTime = (
_joint_min[(
unsigned int)(-jl - 1)] - articularCoordinates[(
unsigned int)(-jl - 1)]) /
500 (articularVelocities[(
unsigned int)(-jl - 1)]);
502 ellapsedTime = (
_joint_max[(
unsigned int)(jl - 1)] - articularCoordinates[(
unsigned int)(jl - 1)]) /
503 (articularVelocities[(
unsigned int)(jl - 1)]);
505 for (
unsigned int i = 0; i < 6; i++)
506 articularCoordinates[i] = articularCoordinates[i] + ellapsedTime * articularVelocities[i];
546 for (
unsigned int k = 1; k < 7; k++) {
661 fMit[4][0][0] = s4 * s5;
662 fMit[4][1][0] = -c4 * s5;
664 fMit[4][0][1] = s4 * c5;
665 fMit[4][1][1] = -c4 * c5;
670 fMit[4][0][3] = c4 * this->
_long_56 + q1;
671 fMit[4][1][3] = s4 * this->
_long_56 + q2;
674 fMit[5][0][0] = s4 * s5 * c6 + c4 * s6;
675 fMit[5][1][0] = -c4 * s5 * c6 + s4 * s6;
676 fMit[5][2][0] = c5 * c6;
677 fMit[5][0][1] = -s4 * s5 * s6 + c4 * c6;
678 fMit[5][1][1] = c4 * s5 * s6 + s4 * c6;
679 fMit[5][2][1] = -c5 * s6;
680 fMit[5][0][2] = -s4 * c5;
681 fMit[5][1][2] = c4 * c5;
683 fMit[5][0][3] = c4 * this->
_long_56 + q1;
684 fMit[5][1][3] = s4 * this->
_long_56 + q2;
687 fMit[6][0][0] = fMit[5][0][0];
688 fMit[6][1][0] = fMit[5][1][0];
689 fMit[6][2][0] = fMit[5][2][0];
690 fMit[6][0][1] = fMit[5][0][1];
691 fMit[6][1][1] = fMit[5][1][1];
692 fMit[6][2][1] = fMit[5][2][1];
693 fMit[6][0][2] = fMit[5][0][2];
694 fMit[6][1][2] = fMit[5][1][2];
695 fMit[6][2][2] = fMit[5][2][2];
696 fMit[6][0][3] = fMit[5][0][3];
697 fMit[6][1][3] = fMit[5][1][3];
698 fMit[6][2][3] = fMit[5][2][3];
709 for (
int i = 0; i < 8; i++) {
732 std::cout <<
"Change the control mode from velocity to position control.\n";
743 std::cout <<
"Change the control mode from stop to velocity control.\n";
835 "use setRobotState(vpRobot::STATE_VELOCITY_CONTROL) first) ");
837 "Cannot send a velocity to the robot "
838 "use setRobotState(vpRobot::STATE_VELOCITY_CONTROL) first) ");
843 double scale_sat = 1;
855 vpERROR_TRACE(
"The velocity vector must have a size of 6 !!!!");
859 for (
unsigned int i = 0; i < 3; ++i) {
860 vel_abs = fabs(vel[i]);
862 vel_trans_max = vel_abs;
868 vel_abs = fabs(vel[i + 3]);
870 vel_rot_max = vel_abs;
877 double scale_trans_sat = 1;
878 double scale_rot_sat = 1;
885 if ((scale_trans_sat < 1) || (scale_rot_sat < 1)) {
886 if (scale_trans_sat < scale_rot_sat)
887 scale_sat = scale_trans_sat;
889 scale_sat = scale_rot_sat;
897 vpERROR_TRACE(
"The velocity vector must have a size of 6 !!!!");
900 for (
unsigned int i = 0; i < 6; ++i) {
901 vel_abs = fabs(vel[i]);
903 vel_rot_max = vel_abs;
909 double scale_rot_sat = 1;
912 if (scale_rot_sat < 1)
913 scale_sat = scale_rot_sat;
918 "functionality not implemented");
922 "functionality not implemented");
962 articularVelocity = eJe_ * eVc * velocityframe;
972 articularVelocity = fJe_ * velocityframe;
977 articularVelocity = velocityframe;
990 for (
unsigned int i = 0; i < 6; ++i) {
991 double vel_abs = fabs(articularVelocity[i]);
993 vel_rot_max = vel_abs;
996 articularVelocity[i], i + 1);
999 double scale_rot_sat = 1;
1000 double scale_sat = 1;
1003 if (scale_rot_sat < 1)
1004 scale_sat = scale_rot_sat;
1078 vel = cVe * eJe_ * articularVelocity;
1082 vel = articularVelocity;
1088 vel = fJe_ * articularVelocity;
1097 "Case not taken in account.");
1202 double velmax = fabs(q[0]);
1203 for (
unsigned int i = 1; i < 6; i++) {
1204 if (velmax < fabs(q[i]))
1205 velmax = fabs(q[i]);
1294 "Modification of the robot state");
1309 for (
unsigned int i = 0; i < 3; i++) {
1324 qdes = articularCoordinates;
1332 error = qdes - articularCoordinates;
1336 if (errsqr < 1e-4) {
1348 }
while (errsqr > 1e-8 && nbSol > 0);
1356 error = q - articularCoordinates;
1363 if (errsqr < 1e-4) {
1370 }
while (errsqr > 1e-8);
1380 for (
unsigned int i = 0; i < 3; i++) {
1390 qdes = articularCoordinates;
1396 error = qdes - articularCoordinates;
1400 if (errsqr < 1e-4) {
1410 }
while (errsqr > 1e-8 && nbSol > 0);
1414 vpERROR_TRACE(
"Positioning error. Mixt frame not implemented");
1416 "MIXT_FRAME not implemented.");
1419 vpERROR_TRACE(
"Positioning error. Mixt frame not implemented");
1421 "END_EFFECTOR_FRAME not implemented.");
1493 double pos4,
double pos5,
double pos6)
1653 for (
unsigned int i = 0; i < 3; i++) {
1662 "Mixt frame not implemented.");
1666 "End-effector frame not implemented.");
1724 for (
unsigned int j = 0; j < 3; j++) {
1725 position[j] = posRxyz[j];
1726 position[j + 3] = RtuVect[j];
1760 vpTRACE(
"Joint limit vector has not a size of 6 !");
1788 bool cond = fabs(q5 - M_PI / 2) < 1e-1;
1816 for (
unsigned int i = 0; i < 6; i++) {
1817 if (articularCoordinates[i] <=
_joint_min[i]) {
1818 difft =
_joint_min[i] - articularCoordinates[i];
1821 artNumb = -(int)i - 1;
1826 for (
unsigned int i = 0; i < 6; i++) {
1827 if (articularCoordinates[i] >=
_joint_max[i]) {
1828 difft = articularCoordinates[i] -
_joint_max[i];
1831 artNumb = (int)(i + 1);
1837 std::cout <<
"\nWarning: Velocity control stopped: axis " << fabs((
float)artNumb) <<
" on joint limit!"
1868 if (!first_time_getdis) {
1871 std::cout <<
"getDisplacement() CAMERA_FRAME not implemented\n";
1875 displacement = q_cur - q_prev_getdis;
1879 std::cout <<
"getDisplacement() REFERENCE_FRAME not implemented\n";
1883 std::cout <<
"getDisplacement() MIXT_FRAME not implemented\n";
1887 std::cout <<
"getDisplacement() END_EFFECTOR_FRAME not implemented\n";
1893 first_time_getdis =
false;
1897 q_prev_getdis = q_cur;
1949 std::ifstream fd(filename.c_str(), std::ios::in);
1951 if (!fd.is_open()) {
1956 std::string key(
"R:");
1957 std::string id(
"#AFMA6 - Position");
1958 bool pos_found =
false;
1963 while (std::getline(fd, line)) {
1966 if (!(line.compare(0,
id.size(),
id) == 0)) {
1967 std::cout <<
"Error: this position file " << filename <<
" is not for Afma6 robot" << std::endl;
1971 if ((line.compare(0, 1,
"#") == 0)) {
1974 if ((line.compare(0, key.size(), key) == 0)) {
1977 if (chain.size() <
njoint + 1)
1979 if (chain.size() <
njoint + 1)
1982 std::istringstream ss(line);
1985 for (
unsigned int i = 0; i <
njoint; i++)
2000 std::cout <<
"Error: unable to find a position for Afma6 robot in " << filename << std::endl;
2032 fd = fopen(filename.c_str(),
"w");
2037 #AFMA6 - Position - Version 2.01\n\
2040 # Joint position: X, Y, Z: translations in meters\n\
2041 # A, B, C: rotations in degrees\n\
2174 std::string scene_dir_;
2175 std::vector<std::string> scene_dirs =
vpIoTools::splitChain(std::string(VISP_SCENES_DIR), std::string(
";"));
2176 bool sceneDirExists =
false;
2177 for (
size_t i = 0; i < scene_dirs.size(); i++)
2179 scene_dir_ = scene_dirs[i];
2180 sceneDirExists =
true;
2183 if (!sceneDirExists) {
2186 std::cout <<
"The simulator uses data from VISP_SCENES_DIR=" << scene_dir_ << std::endl;
2189 std::cout <<
"Cannot get VISP_SCENES_DIR environment variable" << std::endl;
2193 unsigned int name_length = 30;
2194 if (scene_dir_.size() > FILENAME_MAX)
2196 unsigned int full_length = (
unsigned int)scene_dir_.size() + name_length;
2197 if (full_length > FILENAME_MAX)
2200 char *name_cam =
new char[full_length];
2202 strcpy(name_cam, scene_dir_.c_str());
2203 strcat(name_cam,
"/camera.bnd");
2206 if (arm_dir.size() > FILENAME_MAX)
2208 full_length = (
unsigned int)arm_dir.size() + name_length;
2209 if (full_length > FILENAME_MAX)
2212 char *name_arm =
new char[full_length];
2213 strcpy(name_arm, arm_dir.c_str());
2214 strcat(name_arm,
"/afma6_gate.bnd");
2215 std::cout <<
"name arm: " << name_arm << std::endl;
2217 strcpy(name_arm, arm_dir.c_str());
2218 strcat(name_arm,
"/afma6_arm1.bnd");
2219 set_scene(name_arm,
robotArms + 1, 1.0);
2220 strcpy(name_arm, arm_dir.c_str());
2221 strcat(name_arm,
"/afma6_arm2.bnd");
2222 set_scene(name_arm,
robotArms + 2, 1.0);
2223 strcpy(name_arm, arm_dir.c_str());
2224 strcat(name_arm,
"/afma6_arm3.bnd");
2225 set_scene(name_arm,
robotArms + 3, 1.0);
2226 strcpy(name_arm, arm_dir.c_str());
2227 strcat(name_arm,
"/afma6_arm4.bnd");
2228 set_scene(name_arm,
robotArms + 4, 1.0);
2232 strcpy(name_arm, arm_dir.c_str());
2235 strcat(name_arm,
"/afma6_tool_ccmop.bnd");
2239 strcat(name_arm,
"/afma6_tool_gripper.bnd");
2243 strcat(name_arm,
"/afma6_tool_vacuum.bnd");
2247 std::cout <<
"The custom tool is not handled in vpSimulatorAfma6.cpp" << std::endl;
2251 std::cout <<
"The Intel D435 camera is not handled in vpSimulatorAfma6.cpp" << std::endl;
2255 std::cout <<
"The generic camera is not handled in vpSimulatorAfma6.cpp" << std::endl;
2259 set_scene(name_arm,
robotArms + 5, 1.0);
2261 add_rfstack(IS_BACK);
2263 add_vwstack(
"start",
"depth", 0.0, 100.0);
2264 add_vwstack(
"start",
"window", -0.1, 0.1, -0.1, 0.1);
2265 add_vwstack(
"start",
"type", PERSPECTIVE);
2278 bool changed =
false;
2282 if (std::fabs(displacement[2][3]) > std::numeric_limits<double>::epsilon())
2303 float w44o[4][4], w44cext[4][4], x, y, z;
2307 add_vwstack(
"start",
"cop", w44cext[3][0], w44cext[3][1], w44cext[3][2]);
2308 x = w44cext[2][0] + w44cext[3][0];
2309 y = w44cext[2][1] + w44cext[3][1];
2310 z = w44cext[2][2] + w44cext[3][2];
2311 add_vwstack(
"start",
"vrp", x, y, z);
2312 add_vwstack(
"start",
"vpn", w44cext[2][0], w44cext[2][1], w44cext[2][2]);
2313 add_vwstack(
"start",
"vup", w44cext[1][0], w44cext[1][1], w44cext[1][2]);
2314 add_vwstack(
"start",
"window", -u, u, -v, v);
2322 vp2jlc_matrix(fMit[0], w44o);
2325 vp2jlc_matrix(fMit[2], w44o);
2328 vp2jlc_matrix(fMit[3], w44o);
2331 vp2jlc_matrix(fMit[4], w44o);
2334 vp2jlc_matrix(fMit[5], w44o);
2341 cMe = fMit[6] * cMe;
2342 vp2jlc_matrix(cMe, w44o);
2347 vp2jlc_matrix(
fMo, w44o);
2390 std::cout <<
"Used joint coordinates (rad): " << articularCoordinates.
t() << std::endl;
2422 fMo = fMit[7] * cMo_;
2452 const double lambda = 5.;
2456 unsigned int i, iter = 0;
2461 if (Iint !=
nullptr) {
2474 v = -lambda * cdRc.
t() * cdTc;
2475 w = -lambda * cdTUc;
2476 for (i = 0; i < 3; ++i) {
2480 err[i + 3] = cdTUc[i];
2499 #elif !defined(VISP_BUILD_SHARED_LIBS)
2502 void dummy_vpSimulatorAfma6() { };
Modelization of Irisa's gantry robot named Afma6.
static const char *const CONST_CCMOP_CAMERA_NAME
static const unsigned int njoint
Number of joint.
int getInverseKinematics(const vpHomogeneousMatrix &fMc, vpColVector &q, const bool &nearest=true, const bool &verbose=false) const
void get_cMe(vpHomogeneousMatrix &cMe) const
void setToolType(vpAfma6::vpAfma6ToolType tool)
Set the current tool type.
vpAfma6ToolType getToolType() const
Get the current tool type.
static const char *const CONST_GRIPPER_CAMERA_NAME
vpHomogeneousMatrix get_fMc(const vpColVector &q) const
vpCameraParameters::vpCameraParametersProjType projModel
void get_eJe(const vpColVector &q, vpMatrix &eJe) const
void get_fJe(const vpColVector &q, vpMatrix &fJe) const
vpAfma6ToolType
List of possible tools that can be attached to the robot end-effector.
unsigned int getRows() const
Generic class defining intrinsic camera parameters.
void initPersProjWithoutDistortion(double px, double py, double u0, double v0)
vpCameraParametersProjType
Implementation of column vector and the associated operations.
double frobeniusNorm() const
void resize(unsigned int i, bool flagNullify=true)
static const vpColor none
static const vpColor green
static void display(const vpImage< unsigned char > &I)
static void displayLine(const vpImage< unsigned char > &I, const vpImagePoint &ip1, const vpImagePoint &ip2, const vpColor &color, unsigned int thickness=1, bool segment=true)
static void displayFrame(const vpImage< unsigned char > &I, const vpHomogeneousMatrix &cMo, const vpCameraParameters &cam, double size, const vpColor &color=vpColor::none, unsigned int thickness=1, const vpImagePoint &offset=vpImagePoint(0, 0), const std::string &frameName="", const vpColor &textColor=vpColor::black, const vpImagePoint &textOffset=vpImagePoint(15, 15))
static void flush(const vpImage< unsigned char > &I)
static void displayCamera(const vpImage< unsigned char > &I, const vpHomogeneousMatrix &cMo, const vpCameraParameters &cam, double size, const vpColor &color, unsigned int thickness)
error that can be emitted by ViSP classes.
@ dimensionError
Bad dimension.
void track(const vpHomogeneousMatrix &cMo)
Implementation of an homogeneous matrix and operations on such kind of matrices.
vpHomogeneousMatrix & buildFrom(const vpTranslationVector &t, const vpRotationMatrix &R)
vpHomogeneousMatrix inverse() const
void extract(vpRotationMatrix &R) const
Class that defines a 2D point in an image. This class is useful for image processing and stores only ...
unsigned int getWidth() const
unsigned int getHeight() const
static double rad(double deg)
static Type maximum(const Type &a, const Type &b)
static Type minimum(const Type &a, const Type &b)
static double deg(double rad)
Implementation of a matrix and operations on matrices.
vpMatrix pseudoInverse(double svThreshold=1e-6) const
static void convertPoint(const vpCameraParameters &cam, const double &x, const double &y, double &u, double &v)
Class that defines a 3D point in the object frame and allows forward projection of a 3D point in the ...
double get_y() const
Get the point y coordinate in the image plane.
double get_x() const
Get the point x coordinate in the image plane.
Implementation of a pose vector and operations on poses.
Error that can be emitted by the vpRobot class and its derivatives.
@ wrongStateError
Wrong robot state.
@ positionOutOfRangeError
Position is out of range.
@ lowLevelError
Error thrown by the low level sdk.
double getSamplingTime() const
This class aims to be a basis used to create all the simulators of robots.
vpHomogeneousMatrix get_cMo()
vpColVector get_velocity()
vpColVector get_artCoord()
void set_velocity(const vpColVector &vel)
static void launcher(vpRobotWireFrameSimulator &simulator)
void set_displayBusy(const bool &status)
vpHomogeneousMatrix * fMi
void getInternalView(vpImage< vpRGBa > &I)
vpCameraParameters cameraParam
vpHomogeneousMatrix getExternalCameraPosition() const
std::mutex m_mutex_robotStop
vpDisplayRobotType displayType
void set_artCoord(const vpColVector &coord)
unsigned int jointLimitArt
bool constantSamplingTimeMode
void setExternalCameraPosition(const vpHomogeneousMatrix &camMf_)
std::mutex m_mutex_setVelocityCalled
void set_artVel(const vpColVector &vel)
bool singularityManagement
virtual vpRobotStateType getRobotState(void) const
vpControlFrameType getRobotFrame(void) const
@ STATE_POSITION_CONTROL
Initialize the position controller.
@ STATE_VELOCITY_CONTROL
Initialize the velocity controller.
@ STATE_ACCELERATION_CONTROL
Initialize the acceleration controller.
@ STATE_STOP
Stops robot motion especially in velocity and acceleration control.
double getMaxRotationVelocity(void) const
virtual vpRobotStateType setRobotState(const vpRobot::vpRobotStateType newState)
double getMaxTranslationVelocity(void) const
void setMaxRotationVelocity(double maxVr)
vpControlFrameType setRobotFrame(vpRobot::vpControlFrameType newFrame)
void setMaxTranslationVelocity(double maxVt)
Implementation of a rotation matrix and operations on such kind of matrices.
vpRotationMatrix t() const
Implementation of a rotation vector as Euler angle minimal representation.
void getDisplacement(const vpRobot::vpControlFrameType frame, vpColVector &displacement) VP_OVERRIDE
void get_fJe(vpMatrix &fJe) VP_OVERRIDE
static bool savePosFile(const std::string &filename, const vpColVector &q)
void setCameraParameters(const vpCameraParameters &cam)
void get_cVe(vpVelocityTwistMatrix &cVe)
void initialiseObjectRelativeToCamera(const vpHomogeneousMatrix &cMo)
static bool readPosFile(const std::string &filename, vpColVector &q)
void getCameraParameters(vpCameraParameters &cam, const unsigned int &image_width, const unsigned int &image_height)
void get_fMi(vpHomogeneousMatrix *fMit) VP_OVERRIDE
void setVelocity(const vpRobot::vpControlFrameType frame, const vpColVector &velocity) VP_OVERRIDE
void computeArticularVelocity() VP_OVERRIDE
void setPosition(const vpRobot::vpControlFrameType frame, const vpColVector &q) VP_OVERRIDE
int isInJointLimit() VP_OVERRIDE
bool initialiseCameraRelativeToObject(const vpHomogeneousMatrix &cMo)
void initArms() VP_OVERRIDE
void findHighestPositioningSpeed(vpColVector &q)
void move(const char *filename)
bool singularityTest(const vpColVector &q, vpMatrix &J)
vpRobot::vpRobotStateType setRobotState(const vpRobot::vpRobotStateType newState) VP_OVERRIDE
virtual ~vpSimulatorAfma6() VP_OVERRIDE
void setJointLimit(const vpColVector &limitMin, const vpColVector &limitMax)
void updateArticularPosition() VP_OVERRIDE
void getVelocity(const vpRobot::vpControlFrameType frame, vpColVector &q)
void get_eJe(vpMatrix &eJe) VP_OVERRIDE
void getExternalImage(vpImage< vpRGBa > &I)
double getPositioningVelocity(void)
void get_cMe(vpHomogeneousMatrix &cMe)
void getPosition(const vpRobot::vpControlFrameType frame, vpColVector &q) VP_OVERRIDE
static const double defaultPositioningVelocity
Implementation of a rotation vector as axis-angle minimal representation.
vpThetaUVector & buildFrom(const vpHomogeneousMatrix &M)
Class that consider the case of a translation vector.
vpVelocityTwistMatrix & buildFrom(const vpTranslationVector &t, const vpRotationMatrix &R)
vpHomogeneousMatrix camMf2
void display_scene(Matrix mat, Bound_scene &sc, const vpImage< vpRGBa > &I, const vpColor &color)
vpHomogeneousMatrix camMf
void setExternalCameraParameters(const vpCameraParameters &cam)
vpHomogeneousMatrix navigation(const vpImage< vpRGBa > &I, bool &changed)
VISP_EXPORT int wait(double t0, double t)
VISP_EXPORT double getMinTimeForUsleepCall()
VISP_EXPORT double measureTimeSecond()
VISP_EXPORT double measureTimeMs()