My Project
Loading...
Searching...
No Matches
CGenericHapticDevice.h
Go to the documentation of this file.
1//==============================================================================
2/*
3 Software License Agreement (BSD License)
4 Copyright (c) 2003-2024, CHAI3D
5 (www.chai3d.org)
6
7 All rights reserved.
8
9 Redistribution and use in source and binary forms, with or without
10 modification, are permitted provided that the following conditions
11 are met:
12
13 * Redistributions of source code must retain the above copyright
14 notice, this list of conditions and the following disclaimer.
15
16 * Redistributions in binary form must reproduce the above
17 copyright notice, this list of conditions and the following
18 disclaimer in the documentation and/or other materials provided
19 with the distribution.
20
21 * Neither the name of CHAI3D nor the names of its contributors may
22 be used to endorse or promote products derived from this software
23 without specific prior written permission.
24
25 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
26 "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
27 LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
28 FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
29 COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
30 INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
31 BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
32 LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
33 CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
34 LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
35 ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
36 POSSIBILITY OF SUCH DAMAGE.
37
38 \author <http://www.chai3d.org>
39 \author Francois Conti
40 \version 3.3.0
41*/
42//==============================================================================
43
44//------------------------------------------------------------------------------
45#ifndef CGenericHapticDeviceH
46#define CGenericHapticDeviceH
47//------------------------------------------------------------------------------
49#include "math/CMaths.h"
50#include "system/CGlobals.h"
52//------------------------------------------------------------------------------
53
54//------------------------------------------------------------------------------
55namespace chai3d {
56//------------------------------------------------------------------------------
57
58//==============================================================================
65//==============================================================================
66
67
68//------------------------------------------------------------------------------
69// GENERAL CONSTANTS
70//------------------------------------------------------------------------------
72const int C_DEVICE_HISTORY_SIZE = 200; // [number of samples]
73
75const double C_DEVICE_MIN_ACQUISITION_TIME = 0.0001; // [s]
76
78const int C_MAX_DOF = 16;
79
80//------------------------------------------------------------------------------
81
82
83//==============================================================================
87//==============================================================================
116
117
118//------------------------------------------------------------------------------
119#ifndef DOXYGEN_SHOULD_SKIP_THIS
120//------------------------------------------------------------------------------
121
122//==============================================================================
130//==============================================================================
131struct cTimestampValue
132{
134 double m_time;
135
137 double m_value;
138};
139
140
141//==============================================================================
149//==============================================================================
150struct cTimestampPos
151{
153 double m_time;
154
156 cVector3d m_pos;
157};
158
159
160//==============================================================================
168//==============================================================================
169struct cTimestampRot
170{
172 double m_time;
173
175 cMatrix3d m_rot;
176};
177
178
179//------------------------------------------------------------------------------
180#endif // DOXYGEN_SHOULD_SKIP_THIS
181//------------------------------------------------------------------------------
182
183
184//==============================================================================
195//==============================================================================
264
265//------------------------------------------------------------------------------
267typedef std::shared_ptr<cGenericHapticDevice> cGenericHapticDevicePtr;
268//------------------------------------------------------------------------------
269
270//==============================================================================
281//==============================================================================
283{
284 //--------------------------------------------------------------------------
285 // CONSTRUCTOR & DESTRUCTOR:
286 //--------------------------------------------------------------------------
287
288public:
289
291 cGenericHapticDevice(unsigned int a_deviceNumber = 0);
292
295
297 static cGenericHapticDevicePtr create(unsigned int a_deviceNumber = 0) { return (std::make_shared<cGenericHapticDevice>(a_deviceNumber)); }
298
299
300 //--------------------------------------------------------------------------
301 // PUBLIC METHODS - GENERAL COMMANDS:
302 //--------------------------------------------------------------------------
303
304public:
305
307 virtual bool open() { return (C_ERROR); }
308
310 virtual bool close() { return (C_ERROR); }
311
313 virtual bool calibrate(bool a_forceCalibration = false) { return (m_deviceReady); }
314
316 virtual bool getPosition(cVector3d& a_position) { a_position.zero(); return (m_deviceReady); }
317
319 virtual bool getLinearVelocity(cVector3d& a_linearVelocity) { a_linearVelocity = m_linearVelocity; return (m_deviceReady); }
320
322 virtual bool getRotation(cMatrix3d& a_rotation) { a_rotation.identity(); return (m_deviceReady); }
323
325 virtual bool getJointAnglesRad(double a_jointAnglesRad[C_MAX_DOF]) { return (C_ERROR); }
326
328 virtual bool getAngularVelocity(cVector3d& a_angularVelocity) { a_angularVelocity = m_angularVelocity; return (m_deviceReady); }
329
331 virtual bool getTransform(cTransform& a_transform);
332
334 virtual bool getGripperAngleRad(double& a_angle);
335
337 inline bool getGripperAngleDeg(double& a_angle) { double angle; bool result = getGripperAngleRad(angle); a_angle = cRadToDeg(angle); return (result); }
338
340 virtual bool getGripperAngularVelocity(double& a_gripperAngularVelocity) { a_gripperAngularVelocity = m_gripperAngularVelocity; return (m_deviceReady); }
341
343 virtual bool getForce(cVector3d& a_force) { a_force = m_prevForce; return (m_deviceReady); }
344
346 virtual bool getTorque(cVector3d& a_torque) { a_torque = m_prevTorque; return (m_deviceReady); }
347
349 virtual bool getGripperForce(double& a_gripperForce) { a_gripperForce = m_prevGripperForce; return (m_deviceReady); }
350
352 virtual bool getUserSwitch(int a_switchIndex, bool& a_status);
353
355 virtual bool getUserSwitches(unsigned int& a_userSwitches) { a_userSwitches = 0; return (m_deviceReady); }
356
359
361 virtual void setEnableGripperUserSwitch(const bool a_status) { m_gripperUserSwitchEnabled = a_status; }
362
365
367 bool setForce(const cVector3d& a_force) { return (setForceAndTorqueAndGripperForce(a_force, cVector3d(0.0,0.0,0.0), 0.0)); }
368
370 bool setForceAndTorque(const cVector3d& a_force, const cVector3d& a_torque) { return (setForceAndTorqueAndGripperForce(a_force, a_torque, 0.0)); }
371
373 virtual bool setForceAndTorqueAndGripperForce(const cVector3d& a_force, const cVector3d& a_torque, double a_gripperForce) { cSleepMs(1); return (m_deviceReady); }
374
376 virtual bool enableForces(bool a_value) { return true; }
377
378
379 //--------------------------------------------------------------------------
380 // PUBLIC STATIC METHODS:
381 //--------------------------------------------------------------------------
382
383public:
384
386 static unsigned int getNumDevices() { return (0); }
387
388
389 //--------------------------------------------------------------------------
390 // PUBLIC MEMBERS - GENERAL:
391 //--------------------------------------------------------------------------
392
393public:
394
397
398
399 //--------------------------------------------------------------------------
400 // PROTECTED MEMBERS - CURRENT VALUES:
401 //--------------------------------------------------------------------------
402
403protected:
404
407
410
413
416
419
422
423
424 //--------------------------------------------------------------------------
425 // PROTECTED MEMBERS - VELOCITY ESTIMATION:
426 //--------------------------------------------------------------------------
427
428protected:
429
432
435
438
441
444
447
450
453
456
459
462
465
468
469
470 //--------------------------------------------------------------------------
471 // PROTECTED MEMBERS - GRIPPER USER SWITCH:
472 //--------------------------------------------------------------------------
473
474protected:
475
478
481
484
487
490
491
492 //--------------------------------------------------------------------------
493 // PROTECTED MEMBERS - SIMULATED GRIPPER FOR DEVICES WITH USER SWITCH:
494 //--------------------------------------------------------------------------
495
496protected:
497
500
503
506
509
512
513
514 //--------------------------------------------------------------------------
515 // PROTECTED METHODS - VELOCITY ESTIMATION:
516 //--------------------------------------------------------------------------
517
518protected:
519
521 void estimateLinearVelocity(cVector3d& a_newPosition);
522
524 void estimateAngularVelocity(cMatrix3d& a_newRotation);
525
527 void estimateGripperVelocity(double a_newGripperPosition);
528
529
530 //--------------------------------------------------------------------------
531 // PROTECTED METHODS - GRIPPER USER SWITCH:
532 //--------------------------------------------------------------------------
533
534protected:
535
537 double computeGripperUserSwitchForce(const double& a_gripperAngle,
538 const double& a_gripperAngularVelocity);
539
542
543
544 //--------------------------------------------------------------------------
545 // PROTECTED METHODS - DEVICE LIBRARY INITIALIZATION:
546 //--------------------------------------------------------------------------
547
548protected:
549
551 static bool openLibraries() { return (C_SUCCESS); }
552
554 static bool closeLibraries() { return (C_SUCCESS); }
555};
556
557//------------------------------------------------------------------------------
558} // namespace chai3d
559//------------------------------------------------------------------------------
560
561//------------------------------------------------------------------------------
562#endif
563//------------------------------------------------------------------------------
Implements a device base class.
Implements option settings for CHAI3D.
Implements general math utility functions.
Implements a high precision clock.
This class implements an abstract class for hardware devices.
Definition CGenericDevice.h:84
bool m_deviceReady
Flag that indicates if connection to device was opened successfully by calling method open().
Definition CGenericDevice.h:137
This class implements a base class for haptic devices.
Definition CGenericHapticDevice.h:283
double m_gripperUserSwitchForceClick
Maximum force level at the force gripper when the "click" occurs.
Definition CGenericHapticDevice.h:486
bool setForce(const cVector3d &a_force)
This method sends a force [N] command to the haptic device.
Definition CGenericHapticDevice.h:367
virtual bool getAngularVelocity(cVector3d &a_angularVelocity)
This method returns the angular velocity of haptic device.
Definition CGenericHapticDevice.h:328
double m_angularVelocityWindowSize
Window time interval for measuring angular velocity.
Definition CGenericHapticDevice.h:461
virtual ~cGenericHapticDevice()
Destructor of cGenericHapticDevice.
Definition CGenericHapticDevice.h:294
double computeGripperUserSwitchForce(const double &a_gripperAngle, const double &a_gripperAngularVelocity)
This method computes the virtual gripper force.
Definition CGenericHapticDevice.cpp:379
cPrecisionClock m_clockGeneral
General clock used to compute velocity signals.
Definition CGenericHapticDevice.h:467
virtual bool getTorque(cVector3d &a_torque)
This method returns the sensed torque [N*m] from the haptic device.
Definition CGenericHapticDevice.h:346
double m_gripperVelocityWindowSize
Window time interval for measuring gripper velocity.
Definition CGenericHapticDevice.h:464
cVector3d m_angularVelocity
Last estimated angular velocity.
Definition CGenericHapticDevice.h:418
int m_indexHistoryRotWin
Last index position used to compute velocity.
Definition CGenericHapticDevice.h:452
virtual bool getTransform(cTransform &a_transform)
This method returns the position and orientation of the haptic device through a transformation matrix...
Definition CGenericHapticDevice.cpp:191
virtual bool close()
This method closes the connection to the haptic device.
Definition CGenericHapticDevice.h:310
double m_gripperUserSwitchAngleStart
Position of the gripper when the user encounters the virtual switch.
Definition CGenericHapticDevice.h:480
virtual bool getForce(cVector3d &a_force)
This method returns the sensed force [N] from the haptic device.
Definition CGenericHapticDevice.h:343
virtual bool setForceAndTorqueAndGripperForce(const cVector3d &a_force, const cVector3d &a_torque, double a_gripperForce)
This method sends a force [N], torque [N*m], and gripper force [N] command to the haptic device.
Definition CGenericHapticDevice.h:373
cTimestampValue m_historyGripper[C_DEVICE_HISTORY_SIZE]
History position of device gripper.
Definition CGenericHapticDevice.h:437
int m_indexHistoryPos
Current index position in history data table.
Definition CGenericHapticDevice.h:440
virtual bool getRotation(cMatrix3d &a_rotation)
This method returns the orientation frame of the haptic device end-effector.
Definition CGenericHapticDevice.h:322
void estimateLinearVelocity(cVector3d &a_newPosition)
Estimate linear velocity of handle by passing the latest position.
Definition CGenericHapticDevice.cpp:213
double m_prevGripperForce
Last gripper force sent to haptic device.
Definition CGenericHapticDevice.h:412
virtual bool getGripperAngleRad(double &a_angle)
This method returns the gripper angle in radian [rad].
Definition CGenericHapticDevice.cpp:464
cVector3d m_linearVelocity
Last estimated linear velocity.
Definition CGenericHapticDevice.h:415
static bool closeLibraries()
This method closes libraries for this class of devices.
Definition CGenericHapticDevice.h:554
cPrecisionClock m_virtualGripperClock
Clock for computing the position/velocity of the virtual gripper.
Definition CGenericHapticDevice.h:511
virtual bool getGripperAngularVelocity(double &a_gripperAngularVelocity)
This method returns the angular velocity of the gripper. Units are in radians per second [rad/s].
Definition CGenericHapticDevice.h:340
cTimestampRot m_historyRot[C_DEVICE_HISTORY_SIZE]
History orientation data of the device.
Definition CGenericHapticDevice.h:434
double m_virtualGripperAngleMin
Virtual gripper minimum angle in radians [rad].
Definition CGenericHapticDevice.h:502
bool getGripperUserSwitch()
This method returns the status of gripper user switch. Return true if virtual user switch is engaged,...
Definition CGenericHapticDevice.cpp:427
int m_indexHistoryGripper
Current index position in history data table.
Definition CGenericHapticDevice.h:446
int m_indexHistoryRot
Current index position in history data table.
Definition CGenericHapticDevice.h:443
cTimestampPos m_historyPos[C_DEVICE_HISTORY_SIZE]
History position data of the device.
Definition CGenericHapticDevice.h:431
double m_gripperAngularVelocity
Last estimated gripper angular velocity.
Definition CGenericHapticDevice.h:421
void estimateAngularVelocity(cMatrix3d &a_newRotation)
Estimate angular velocity of handle by passing the latest orientation frame.
Definition CGenericHapticDevice.cpp:266
virtual bool getUserSwitch(int a_switchIndex, bool &a_status)
This method returns the status of a selected user switch [true = ON / false = OFF].
Definition CGenericHapticDevice.cpp:160
double m_virtualGripperAngleMax
Virtual gripper maximum angle in radians [rad].
Definition CGenericHapticDevice.h:505
virtual bool getGripperForce(double &a_gripperForce)
This method returns the sensed torque [N*m] from the force gripper.
Definition CGenericHapticDevice.h:349
bool m_gripperUserSwitchEnabled
If true then virtual gripper user switch is enabled.
Definition CGenericHapticDevice.h:477
cHapticDeviceInfo getSpecifications()
This method returns the technical specifications of this haptic device.
Definition CGenericHapticDevice.h:358
virtual bool getLinearVelocity(cVector3d &a_linearVelocity)
This method returns the linear velocity of the haptic device.
Definition CGenericHapticDevice.h:319
cVector3d m_prevTorque
Last torque sent to haptic device.
Definition CGenericHapticDevice.h:409
virtual bool calibrate(bool a_forceCalibration=false)
This method calibrates the haptic device.
Definition CGenericHapticDevice.h:313
double m_gripperUserSwitchAngleClick
Position of the gripper when the virtual switch is enabled and the "click" occurs.
Definition CGenericHapticDevice.h:483
static cGenericHapticDevicePtr create(unsigned int a_deviceNumber=0)
Shared cGenericHapticDevice allocator.
Definition CGenericHapticDevice.h:297
double m_gripperUserSwitchForceEngaged
Force level when the gripper is completely closed after the "click" event has occurred.
Definition CGenericHapticDevice.h:489
virtual bool getJointAnglesRad(double a_jointAnglesRad[C_MAX_DOF])
This method returns the joint angles of the haptic device.
Definition CGenericHapticDevice.h:325
int m_indexHistoryPosWin
Last index position used to compute velocity.
Definition CGenericHapticDevice.h:449
void estimateGripperVelocity(double a_newGripperPosition)
Estimate velocity of gripper by passing the latest gripper position.
Definition CGenericHapticDevice.cpp:323
static bool openLibraries()
This method opens libraries for this class of devices.
Definition CGenericHapticDevice.h:551
double m_virtualGripperAngle
Virtual gripper current angle in radians [rad].
Definition CGenericHapticDevice.h:499
virtual void setEnableGripperUserSwitch(const bool a_status)
This method enables or disables the virtual gripper switch.
Definition CGenericHapticDevice.h:361
virtual bool open()
This method opens a connection to the haptic device.
Definition CGenericHapticDevice.h:307
virtual bool enableForces(bool a_value)
This method enables or disables forces.
Definition CGenericHapticDevice.h:376
double m_virtualGripperAngularVelocity
Virtual speed value used for simulating the opening and closing of the virtual gripper [rad/s].
Definition CGenericHapticDevice.h:508
bool getGripperAngleDeg(double &a_angle)
This method returns the gripper angle in degrees [deg].
Definition CGenericHapticDevice.h:337
bool setForceAndTorque(const cVector3d &a_force, const cVector3d &a_torque)
This method sends a force [N] and torque [N*m] command to the haptic device.
Definition CGenericHapticDevice.h:370
int m_indexHistoryGripperWin
Last index position used to compute velocity.
Definition CGenericHapticDevice.h:455
virtual bool getEnableGripperUserSwitch() const
This method returns the status of the virtual gripper user switch. If true, then gripper is used to e...
Definition CGenericHapticDevice.h:364
virtual bool getPosition(cVector3d &a_position)
This method returns the position of the haptic device.
Definition CGenericHapticDevice.h:316
static unsigned int getNumDevices()
This method returns the number of haptic devices available for this class of devices.
Definition CGenericHapticDevice.h:386
cHapticDeviceInfo m_specifications
Technical specifications of haptic device.
Definition CGenericHapticDevice.h:396
double m_linearVelocityWindowSize
Window time interval for measuring linear velocity.
Definition CGenericHapticDevice.h:458
virtual bool getUserSwitches(unsigned int &a_userSwitches)
This method returns the status of all user switches [true = ON / false = OFF].
Definition CGenericHapticDevice.h:355
cVector3d m_prevForce
Last force sent to haptic device.
Definition CGenericHapticDevice.h:406
This class implements a high precision clock.
Definition CPrecisionClock.h:86
Definition CAudioBuffer.cpp:57
double cRadToDeg(const double &a_angleRad)
This function converts an angle from radians to degrees.
Definition CMaths.h:716
const bool C_ERROR
Function returns with an error.
Definition CConstants.h:74
const double C_DEVICE_MIN_ACQUISITION_TIME
Smallest time interval between two position/status reads from a haptic device.
Definition CGenericHapticDevice.h:75
std::shared_ptr< cGenericHapticDevice > cGenericHapticDevicePtr
Definition CGenericHapticDevice.h:267
void cSleepMs(const unsigned int a_interval)
This function suspends the execution of the current thread for a specified interval.
Definition CGlobals.cpp:64
const int C_DEVICE_HISTORY_SIZE
Size of buffer.
Definition CGenericHapticDevice.h:72
cHapticDeviceModel
Definition CGenericHapticDevice.h:89
@ C_HAPTIC_DEVICE_OMEGA_7R
Definition CGenericHapticDevice.h:97
@ C_TRACKER_DEVICE_SIXENSE
Definition CGenericHapticDevice.h:112
@ C_HAPTIC_DEVICE_OMEGA_6L
Definition CGenericHapticDevice.h:94
@ C_HAPTIC_DEVICE_OMEGA_7L
Definition CGenericHapticDevice.h:96
@ C_HAPTIC_DEVICE_OMEGA_3
Definition CGenericHapticDevice.h:93
@ C_HAPTIC_DEVICE_PHANTOM_30_6DOF
Definition CGenericHapticDevice.h:110
@ C_HAPTIC_DEVICE_OMEGA_6R
Definition CGenericHapticDevice.h:95
@ C_HAPTIC_DEVICE_MPR
Definition CGenericHapticDevice.h:105
@ C_HAPTIC_DEVICE_SIGMA_7L
Definition CGenericHapticDevice.h:100
@ C_HAPTIC_DEVICE_DELTA_6
Definition CGenericHapticDevice.h:92
@ C_TRACKER_DEVICE_LEAP
Definition CGenericHapticDevice.h:113
@ C_HAPTIC_DEVICE_PHANTOM_DESKTOP
Definition CGenericHapticDevice.h:108
@ C_HAPTIC_DEVICE_CUSTOM
Definition CGenericHapticDevice.h:114
@ C_HAPTIC_DEVICE_FALCON
Definition CGenericHapticDevice.h:104
@ C_HAPTIC_DEVICE_PHANTOM_OMNI
Definition CGenericHapticDevice.h:107
@ C_HAPTIC_DEVICE_LAMBDA_7L
Definition CGenericHapticDevice.h:102
@ C_HAPTIC_DEVICE_PHANTOM_OTHER
Definition CGenericHapticDevice.h:111
@ C_HAPTIC_DEVICE_SIGMA_7R
Definition CGenericHapticDevice.h:101
@ C_HAPTIC_DEVICE_SIGMA_6L
Definition CGenericHapticDevice.h:98
@ C_HAPTIC_DEVICE_VIRTUAL
Definition CGenericHapticDevice.h:90
@ C_HAPTIC_DEVICE_SIGMA_6R
Definition CGenericHapticDevice.h:99
@ C_HAPTIC_DEVICE_DELTA_3
Definition CGenericHapticDevice.h:91
@ C_HAPTIC_DEVICE_LAMBDA_7R
Definition CGenericHapticDevice.h:103
@ C_HAPTIC_DEVICE_PHANTOM_TOUCH
Definition CGenericHapticDevice.h:106
@ C_HAPTIC_DEVICE_PHANTOM_15_6DOF
Definition CGenericHapticDevice.h:109
const int C_MAX_DOF
Maximum number of joint of a haptic device.
Definition CGenericHapticDevice.h:78
const bool C_SUCCESS
Function returns successfully.
Definition CConstants.h:77
This structure stores all technical specifications of a haptic device.
Definition CGenericHapticDevice.h:197
double m_maxLinearForce
Maximum continuous force in [N] that can be generated by the haptic device in translation.
Definition CGenericHapticDevice.h:208
bool m_rightHand
If true then the device can be used for right hands, false otherwise.
Definition CGenericHapticDevice.h:262
double m_maxAngularStiffness
Maximum closed loop angular stiffness [N*m/rad] for a simulation running at 1 KHz.
Definition CGenericHapticDevice.h:220
cHapticDeviceModel m_model
Haptic device model.
Definition CGenericHapticDevice.h:199
double m_gripperMaxAngleRad
Maximum open angle of the gripper [rad].
Definition CGenericHapticDevice.h:238
bool m_actuatedGripper
If true then device provides an actuated gripper, false otherwise.
Definition CGenericHapticDevice.h:256
bool m_actuatedPosition
If true then device provides actuation capabilities for translation degrees of freedom (x,...
Definition CGenericHapticDevice.h:250
double m_maxAngularDamping
Maximum recommended angular damping factor Kv when using the getAngularVelocity() method from the dev...
Definition CGenericHapticDevice.h:229
double m_maxLinearDamping
Maximum recommended linear damping factor Kv when using the getVelocity() method from the device clas...
Definition CGenericHapticDevice.h:226
bool m_actuatedRotation
If true then device provides actuation capabilities for orientation degrees of freedom (i....
Definition CGenericHapticDevice.h:253
bool m_leftHand
If true then the device can be used for left hands, false otherwise.
Definition CGenericHapticDevice.h:259
bool m_sensedRotation
If true then device supports rotation sensing. (i.e stylus, pen), false otherwise.
Definition CGenericHapticDevice.h:244
double m_maxLinearStiffness
Maximum closed loop linear stiffness [N/m] for a simulation running at 1 KHz.
Definition CGenericHapticDevice.h:217
bool m_sensedGripper
If true then device supports a sensed gripper interface, false otherwise.
Definition CGenericHapticDevice.h:247
std::string m_manufacturerName
Name of the haptic device manufacturer.
Definition CGenericHapticDevice.h:205
bool m_sensedPosition
If true then device supports position sensing (x,y,z axis), false otherwise.
Definition CGenericHapticDevice.h:241
double m_workspaceRadius
Radius which describes the largest sphere (3D devices) or circle (2D Devices) which can be enclosed i...
Definition CGenericHapticDevice.h:235
std::string m_modelName
Name of the haptic device model.
Definition CGenericHapticDevice.h:202
double m_maxGripperAngularDamping
Maximum recommended angular damping factor Kv when using the getGripperAngularVelocity() method from ...
Definition CGenericHapticDevice.h:232
double m_maxGripperForce
Maximum continuous force in [N] that can be produced by the haptic gripper.
Definition CGenericHapticDevice.h:214
double m_maxAngularTorque
Maximum continuous torque in [N*m] that can be generated by the haptic device in orientation.
Definition CGenericHapticDevice.h:211
double m_maxGripperLinearStiffness
Maximum closed loop gripper stiffness [N/m] for a simulation running at 1 KHz.
Definition CGenericHapticDevice.h:223
This class implements a 3D matrix.
Definition CMatrix3d.h:98
void identity()
This method builds an identity matrix.
Definition CMatrix3d.h:325
This class implements a 4D transformation matrix encoded as column-major.
Definition CTransform.h:76
This class implements a 3D vector.
Definition CVector3d.h:89
void zero()
This method clears all vector components with zeros.
Definition CVector3d.h:236