SCL
1.0
Standard Control Library : Control, dynamics, physics, and simulation
|
#include <CHapticsBase.hpp>
Public Member Functions | |
CHapticsBase () | |
virtual | ~CHapticsBase () |
virtual scl::sInt | connectToDevices ()=0 |
virtual scl::sBool | getHapticDevicePosition (const sUInt arg_id, Eigen::VectorXd &ret_pos_vec) const =0 |
virtual scl::sBool | getAllHapticDevicePositions (std::vector< Eigen::VectorXd > &ret_pos_vec) const =0 |
virtual scl::sBool | setHapticDeviceActuator (const sUInt arg_id, const Eigen::VectorXd &arg_cmd_vec)=0 |
virtual scl::sBool | setAllHapticDeviceActuators (const std::vector< Eigen::VectorXd > &arg_cmd_vec)=0 |
virtual scl::sBool | closeConnectionToDevices ()=0 |
virtual scl::sUInt | getNumDevicesConnected ()=0 |
virtual const std::string & | getType () const |
virtual const std::string & | getName () const |
virtual bool | hasBeenInit () const |
Public Attributes | |
std::string | name_ |
sBool | has_been_init_ |
Protected Attributes | |
std::string | type_ |
This class is a simple API to access a haptics subsystem. It is designed to abstract the actual device initialization and operation. Provides a high level interface to get device positions for multiple haptic devices and specify their control torques.
|
inline |
Default constructor. Does nothing.
|
inlinevirtual |
Default destructor. Closes haptic connections.
|
pure virtual |
Connects to the haptic devices. Returns: success : The number of devices it found. failure : -1
Implemented in scl::CHapticsChai.
|
pure virtual |
Get the present state of all the haptic devices. This is typically the position, but can also include the orientation and/or a push button.
Implemented in scl::CHapticsChai.
|
pure virtual |
Get the present state of a single haptic devices. This is typically the position, but can also include the orientation and/or a push button.
Implemented in scl::CHapticsChai.
|
inlinevirtualinherited |
Get the object's type
|
pure virtual |
Returns the number of currently connected devices
Implemented in scl::CHapticsChai.
|
inlinevirtualinherited |
Get the object's type
|
inlinevirtualinherited |
Get the object's type
|
pure virtual |
Sets the actuators on the haptic devices.
Implemented in scl::CHapticsChai.
|
pure virtual |
Sets the actuators on the haptic devices.
Implemented in scl::CHapticsChai.
|
inherited |
Whether the object is ready for use
|
inherited |
The object's name
|
protectedinherited |
The object's type. Should only be set by the constructor