YARP
Yet Another Robot Platform
IHapticDevice.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: 2006-2021 Istituto Italiano di Tecnologia (IIT)
3  * SPDX-License-Identifier: BSD-3-Clause
4  */
5 
6 #ifndef YARP_DEV_HAPTICDEVICE_H
7 #define YARP_DEV_HAPTICDEVICE_H
8 
9 #include <yarp/sig/Vector.h>
10 #include <yarp/sig/Matrix.h>
11 
16 namespace yarp {
17  namespace dev {
18  class IHapticDevice;
19  }
20 }
21 
22 
26 class YARP_dev_API yarp::dev::IHapticDevice
27 {
28 public:
29  virtual ~IHapticDevice() { }
30 
37  virtual bool getPosition(yarp::sig::Vector &pos) = 0;
38 
45  virtual bool getOrientation(yarp::sig::Vector &rpy) = 0;
46 
53  virtual bool getButtons(yarp::sig::Vector &buttons) = 0;
54 
61  virtual bool isCartesianForceModeEnabled(bool &ret) = 0;
62 
67  virtual bool setCartesianForceMode() = 0;
68 
73  virtual bool setJointTorqueMode() = 0;
74 
84  virtual bool getMaxFeedback(yarp::sig::Vector &max) = 0;
85 
95  virtual bool setFeedback(const yarp::sig::Vector &fdbck) = 0;
96 
101  virtual bool stopFeedback() = 0;
102 
109  virtual bool setTransformation(const yarp::sig::Matrix &T) = 0;
110 
117  virtual bool getTransformation(yarp::sig::Matrix &T) = 0;
118 };
119 
120 #endif
bool ret
contains the definition of a Matrix type
contains the definition of a Vector type
A class for a Matrix.
Definition: Matrix.h:43
virtual bool setCartesianForceMode()=0
Enable Cartesian force feedback mode.
virtual ~IHapticDevice()
Definition: IHapticDevice.h:29
virtual bool setJointTorqueMode()=0
Enable joint torque feedback mode.
virtual bool getMaxFeedback(yarp::sig::Vector &max)=0
Get maximum values for the feedback.
virtual bool getPosition(yarp::sig::Vector &pos)=0
Get the instantaneous position.
virtual bool getOrientation(yarp::sig::Vector &rpy)=0
Get the instantaneous orientation.
virtual bool setTransformation(const yarp::sig::Matrix &T)=0
Set the transformation matrix to be applied to position and force feedback data.
virtual bool getTransformation(yarp::sig::Matrix &T)=0
Get the current transformation matrix used to modify the position readings and force feedback.
virtual bool stopFeedback()=0
Disable force/torque feedback.
virtual bool setFeedback(const yarp::sig::Vector &fdbck)=0
Set the values for the force/torque feedback.
virtual bool getButtons(yarp::sig::Vector &buttons)=0
Get the status of the available buttons.
virtual bool isCartesianForceModeEnabled(bool &ret)=0
Query which feedback mode is active.
The main, catch-all namespace for YARP.
Definition: dirs.h:16
#define YARP_dev_API
Definition: api.h:18