A generic interface for an haptic device.
More...
#include <yarp/dev/IHapticDevice.h>
A generic interface for an haptic device.
Definition at line 29 of file IHapticDevice.h.
◆ ~IHapticDevice()
virtual yarp::~IHapticDevice |
( |
| ) |
|
|
inlinevirtual |
◆ getButtons()
Get the status of the available buttons.
- Parameters
-
buttons | vector containing the status of each available button expressed as a double in [0,1]. |
- Returns
- true/false on success/failure.
◆ getMaxFeedback()
Get maximum values for the feedback.
- Parameters
-
max | vector containing the 3 maximum bounds of the feedback. Units are: [N] in Cartesian force mode, [mN*m] in joint torque mode. |
- Returns
- true/false on success/failure.
◆ getOrientation()
Get the instantaneous orientation.
- Parameters
-
rpy | vector containing the returned roll-pitch-yaw coordinates expressed in [deg]. |
- Returns
- true/false on success/failure.
◆ getPosition()
Get the instantaneous position.
- Parameters
-
pos | vector containing the returned x-y-z coordinates expressed in [m]. |
- Returns
- true/false on success/failure.
◆ getTransformation()
Get the current transformation matrix used to modify the position readings and force feedback.
- Parameters
-
T | the returned 4-by-4 transformation matrix. |
- Returns
- true/false on success/failure.
◆ isCartesianForceModeEnabled()
virtual bool yarp::isCartesianForceModeEnabled |
( |
bool & |
ret | ) |
|
|
pure virtual |
Query which feedback mode is active.
- Parameters
-
ret | true iff Cartesian force feedback is active, false iff joint torque feedback is active. |
- Returns
- true/false on success/failure.
◆ setCartesianForceMode()
virtual bool yarp::setCartesianForceMode |
( |
| ) |
|
|
pure virtual |
Enable Cartesian force feedback mode.
- Returns
- true/false on success/failure.
◆ setFeedback()
Set the values for the force/torque feedback.
- Parameters
-
fdbck | vector containing the 3 components of the feedback values. Units are: [N] in Cartesian force mode, [mN*m] in joint torque mode. |
- Returns
- true/false on success/failure.
◆ setJointTorqueMode()
virtual bool yarp::setJointTorqueMode |
( |
| ) |
|
|
pure virtual |
Enable joint torque feedback mode.
- Returns
- true/false on success/failure.
◆ setTransformation()
Set the transformation matrix to be applied to position and force feedback data.
- Parameters
-
T | the 4-by-4 transformation matrix. |
- Returns
- true/false on success/failure.
◆ stopFeedback()
virtual bool yarp::stopFeedback |
( |
| ) |
|
|
pure virtual |
Disable force/torque feedback.
- Returns
- true/false on success/failure.
The documentation for this class was generated from the following file: