YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
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
16namespace yarp::dev {
17class IHapticDevice;
18}
19
20
26class YARP_dev_API yarp::dev::IHapticDevice
27{
28public:
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
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:39
virtual bool setCartesianForceMode()=0
Enable Cartesian force feedback mode.
virtual ~IHapticDevice()
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.
For streams capable of holding different kinds of content, check what they actually have.
Definition jointData.cpp:13
The main, catch-all namespace for YARP.
Definition dirs.h:16
#define YARP_dev_API
Definition api.h:18