27 public yarp::dev::IControlMode,
28 public yarp::dev::IPositionDirect,
34 bool open(yarp::os::Searchable & config)
override;
35 bool close()
override;
39#if YARP_VERSION_COMPARE(>=, 4, 0, 0)
40 yarp::dev::ReturnValue getAvailableControlModes(
int j, std::vector<yarp::dev::SelectableControlModeEnum> & avail)
override;
41 yarp::dev::ReturnValue getControlMode(
int j, yarp::dev::ControlModeEnum & mode)
override;
42 yarp::dev::ReturnValue getControlModes(std::vector<yarp::dev::ControlModeEnum> & modes)
override;
43 yarp::dev::ReturnValue getControlModes(
const std::vector<int> & joints, std::vector<yarp::dev::ControlModeEnum> & modes)
override;
44 yarp::dev::ReturnValue setControlMode(
int j, yarp::dev::SelectableControlModeEnum mode)
override;
45 yarp::dev::ReturnValue setControlModes(
const std::vector<int> & joints,
const std::vector<yarp::dev::SelectableControlModeEnum> & modes)
override;
46 yarp::dev::ReturnValue setControlModes(
const std::vector<yarp::dev::SelectableControlModeEnum> & modes)
override;
48 bool getControlMode(
int j,
int * mode)
override;
49 bool getControlModes(
int * modes)
override;
50 bool getControlModes(
int n_joint,
const int * joints,
int * modes)
override;
51 bool setControlMode(
int j,
const int mode)
override;
52 bool setControlModes(
int n_joint,
const int * joints,
int * modes)
override;
53 bool setControlModes(
int * modes)
override;
58#if YARP_VERSION_COMPARE(>=, 4, 0, 0)
59 yarp::dev::ReturnValue getAxes(std::size_t & ax)
override;
60 yarp::dev::ReturnValue setPosition(
int j,
double ref)
override;
61 yarp::dev::ReturnValue setPositions(
int n_joint,
const int * joints,
const double * refs)
override;
62 yarp::dev::ReturnValue setPositions(
const double * refs)
override;
63 yarp::dev::ReturnValue getRefPosition(
int joint,
double * ref)
override;
64 yarp::dev::ReturnValue getRefPositions(
double * refs)
override;
65 yarp::dev::ReturnValue getRefPositions(
int n_joint,
const int * joints,
double * refs)
override;
67 bool getAxes(
int * ax)
override;
68 bool setPosition(
int j,
double ref)
override;
69 bool setPositions(
const double * refs)
override;
70 bool setPositions(
int n_joint,
const int * joints,
const double * refs)
override;
71 bool getRefPosition(
int joint,
double * ref)
override;
72 bool getRefPositions(
double * refs)
override;
73 bool getRefPositions(
int n_joint,
const int * joints,
double * refs)
override;
77 double lastTarget {0.0};
79 yarp::dev::PolyDriver serialDevice;
80 yarp::dev::ISerialDevice * iSerialDevice {
nullptr};
Definition TextilesHand_ParamsParser.h:42
Implementation for the custom UC3M Textiles Hand as a single CAN bus joint (control board raw interfa...
Definition TextilesHand.hpp:30