39 #ifndef vpSimulatorAfma6_HH
40 #define vpSimulatorAfma6_HH
42 #include <visp3/core/vpConfig.h>
43 #include <visp3/robot/vpAfma6.h>
44 #include <visp3/robot/vpRobotWireFrameSimulator.h>
48 #if defined(VISP_HAVE_MODULE_GUI) && defined(VISP_HAVE_THREADS)
180 class VISP_EXPORT vpSimulatorAfma6 :
public vpRobotWireFrameSimulator,
public vpAfma6
183 static const double defaultPositioningVelocity;
187 bool first_time_getdis;
189 double positioningVelocity;
199 VP_EXPLICIT vpSimulatorAfma6(
bool display);
200 virtual ~vpSimulatorAfma6() VP_OVERRIDE;
202 void getCameraParameters(
vpCameraParameters &cam, const
unsigned int &image_width, const
unsigned int &image_height);
205 void getDisplacement(const
vpRobot::vpControlFrameType frame,
vpColVector &displacement) VP_OVERRIDE;
206 void getPosition(const
vpRobot::vpControlFrameType frame,
vpColVector &q) VP_OVERRIDE;
207 void getPosition(const
vpRobot::vpControlFrameType frame,
vpColVector &q,
double ×tamp);
209 void getPosition(const
vpRobot::vpControlFrameType frame,
vpPoseVector &position,
double ×tamp);
210 double getPositioningVelocity(
void) {
return positioningVelocity; }
227 void move(
const char *filename);
229 static bool readPosFile(
const std::string &filename,
vpColVector &q);
230 static bool savePosFile(
const std::string &filename,
const vpColVector &q);
236 double pos5,
double pos6);
237 void setPosition(
const char *filename);
238 void setPositioningVelocity(
double vel) { positioningVelocity = vel; }
249 void computeArticularVelocity() VP_OVERRIDE;
256 for (
int i = 0; i < 8; i++) {
260 m_mutex_fMi.unlock();
262 void init() VP_OVERRIDE;
263 void initArms() VP_OVERRIDE;
265 int isInJointLimit() VP_OVERRIDE;
267 void updateArticularPosition() VP_OVERRIDE;
Modelization of Irisa's gantry robot named Afma6.
void get_cVe(vpVelocityTwistMatrix &cVe) const
void get_cMe(vpHomogeneousMatrix &cMe) const
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.
Generic class defining intrinsic camera parameters.
vpCameraParametersProjType
@ perspectiveProjWithoutDistortion
Perspective projection without distortion model.
Implementation of column vector and the associated operations.
Implementation of an homogeneous matrix and operations on such kind of matrices.
Definition of the vpImage class member functions.
Implementation of a matrix and operations on matrices.
Implementation of a pose vector and operations on poses.
Class that defines a generic virtual robot.