39 #ifndef vpSimulatorViper850_HH
40 #define vpSimulatorViper850_HH
42 #include <visp3/core/vpConfig.h>
43 #include <visp3/robot/vpRobotWireFrameSimulator.h>
44 #if defined(VISP_HAVE_MODULE_GUI) && defined(VISP_HAVE_THREADS)
48 #include <visp3/robot/vpViper850.h>
209 class VISP_EXPORT vpSimulatorViper850 :
public vpRobotWireFrameSimulator,
public vpViper850
212 static const double defaultPositioningVelocity;
216 bool first_time_getdis;
218 double positioningVelocity;
227 vpSimulatorViper850();
228 VP_EXPLICIT vpSimulatorViper850(
bool display);
229 virtual ~vpSimulatorViper850() VP_OVERRIDE;
231 void getCameraParameters(
vpCameraParameters &cam, const
unsigned int &image_width, const
unsigned int &image_height);
235 void getDisplacement(const
vpRobot::vpControlFrameType frame,
vpColVector &displacement) VP_OVERRIDE;
237 void getPosition(const
vpRobot::vpControlFrameType frame,
vpColVector &q) VP_OVERRIDE;
238 void getPosition(const
vpRobot::vpControlFrameType frame,
vpColVector &q,
double ×tamp);
240 void getPosition(const
vpRobot::vpControlFrameType frame,
vpPoseVector &position,
double ×tamp);
241 double getPositioningVelocity(
void) {
return positioningVelocity; }
259 void move(
const char *filename);
261 static bool readPosFile(
const std::string &filename,
vpColVector &q);
262 static bool savePosFile(
const std::string &filename,
const vpColVector &q);
268 double pos5,
double pos6);
269 void setPosition(
const char *filename);
270 void setPositioningVelocity(
double vel) { positioningVelocity = vel; }
280 void computeArticularVelocity() VP_OVERRIDE;
288 for (
int i = 0; i < 8; i++) {
291 m_mutex_fMi.unlock();
293 void init() VP_OVERRIDE;
294 void initArms() VP_OVERRIDE;
296 int isInJointLimit() VP_OVERRIDE;
298 void updateArticularPosition() VP_OVERRIDE;
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.
Modelization of the ADEPT Viper 850 robot.
vpToolType
List of possible tools that can be attached to the robot end-effector.
void get_cMe(vpHomogeneousMatrix &cMe) const
void get_fJe(const vpColVector &q, vpMatrix &fJe) const
void get_eJe(const vpColVector &q, vpMatrix &eJe) const
void get_cVe(vpVelocityTwistMatrix &cVe) const