YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
yarp::dev::ITorqueControlRaw Class Referenceabstract

Interface for control boards implementing torque control. More...

#include <yarp/dev/ITorqueControl.h>

+ Inheritance diagram for yarp::dev::ITorqueControlRaw:

Public Member Functions

virtual ~ITorqueControlRaw ()
 Destructor.
 
virtual yarp::dev::ReturnValue getAxes (size_t &ax)=0
 Get the number of controlled axes.
 
virtual yarp::dev::ReturnValue getTorqueRaw (int j, double *t)=0
 Get the value of the torque on a given joint (this is the feedback if you have a torque sensor).
 
virtual yarp::dev::ReturnValue getTorquesRaw (double *t)=0
 Get the value of the torque for all joints (this is the feedback if you have torque sensors).
 
virtual yarp::dev::ReturnValue getTorqueRangeRaw (int j, double *min, double *max)=0
 Get the full scale of the torque sensor of a given joint.
 
virtual yarp::dev::ReturnValue getTorqueRangesRaw (double *min, double *max)=0
 Get the full scale of the torque sensors of all joints.
 
virtual yarp::dev::ReturnValue setRefTorquesRaw (const double *t)=0
 Set the reference value of the torque for all joints.
 
virtual yarp::dev::ReturnValue setRefTorqueRaw (int j, double t)=0
 Set the reference value of the torque for a given joint.
 
virtual yarp::dev::ReturnValue setRefTorquesRaw (const int n_joint, const int *joints, const double *t)=0
 Set new torque reference for a subset of joints.
 
virtual yarp::dev::ReturnValue getRefTorquesRaw (double *t)=0
 Get the reference value of the torque for all joints.
 
virtual yarp::dev::ReturnValue getRefTorqueRaw (int j, double *t)=0
 Set the reference value of the torque for a given joint.
 
virtual yarp::dev::ReturnValue getMotorTorqueParamsRaw (int j, yarp::dev::MotorTorqueParameters *params)=0
 Get the motor parameters.
 
virtual yarp::dev::ReturnValue setMotorTorqueParamsRaw (int j, const yarp::dev::MotorTorqueParameters params)=0
 Set the motor parameters.
 

Detailed Description

Interface for control boards implementing torque control.

Definition at line 139 of file ITorqueControl.h.

Constructor & Destructor Documentation

◆ ~ITorqueControlRaw()

virtual yarp::dev::ITorqueControlRaw::~ITorqueControlRaw ( )
inlinevirtual

Destructor.

Definition at line 145 of file ITorqueControl.h.

Member Function Documentation

◆ getAxes()

virtual yarp::dev::ReturnValue yarp::dev::ITorqueControlRaw::getAxes ( size_t &  ax)
pure virtual

Get the number of controlled axes.

This command asks the number of controlled axes for the current physical interface.

Returns
the number of controlled axes.
true/false on success/failure

Implemented in FakeMotionControl.

◆ getMotorTorqueParamsRaw()

virtual yarp::dev::ReturnValue yarp::dev::ITorqueControlRaw::getMotorTorqueParamsRaw ( int  j,
yarp::dev::MotorTorqueParameters *  params 
)
pure virtual

Get the motor parameters.

Parameters
jjoint number
paramsa struct containing the motor parameters to be retrieved
Returns
true/false on success/failure

Implemented in FakeMotionControl.

◆ getRefTorqueRaw()

virtual yarp::dev::ReturnValue yarp::dev::ITorqueControlRaw::getRefTorqueRaw ( int  j,
double *  t 
)
pure virtual

Set the reference value of the torque for a given joint.

This is NOT the feedback (see getTorque instead).

Parameters
jjoint number
tnew value
Returns
true/false on success/failure

Implemented in FakeMotionControl.

◆ getRefTorquesRaw()

virtual yarp::dev::ReturnValue yarp::dev::ITorqueControlRaw::getRefTorquesRaw ( double *  t)
pure virtual

Get the reference value of the torque for all joints.

This is NOT the feedback (see getTorques instead).

Parameters
tpointer to the array of torque values
Returns
true/false on success/failure

Implemented in FakeMotionControl.

◆ getTorqueRangeRaw()

virtual yarp::dev::ReturnValue yarp::dev::ITorqueControlRaw::getTorqueRangeRaw ( int  j,
double *  min,
double *  max 
)
pure virtual

Get the full scale of the torque sensor of a given joint.

Parameters
jjoint number
minminimum torque of the joint j
maxmaximum torque of the joint j
Returns
true/false on success/failure

Implemented in FakeMotionControl.

◆ getTorqueRangesRaw()

virtual yarp::dev::ReturnValue yarp::dev::ITorqueControlRaw::getTorqueRangesRaw ( double *  min,
double *  max 
)
pure virtual

Get the full scale of the torque sensors of all joints.

Parameters
minpointer to the array that will store minimum torques of the joints
maxpointer to the array that will store maximum torques of the joints
Returns
true/false on success/failure

Implemented in FakeMotionControl.

◆ getTorqueRaw()

virtual yarp::dev::ReturnValue yarp::dev::ITorqueControlRaw::getTorqueRaw ( int  j,
double *  t 
)
pure virtual

Get the value of the torque on a given joint (this is the feedback if you have a torque sensor).

Parameters
jjoint number
Returns
torque value
true/false on success/failure

Implemented in FakeMotionControl.

◆ getTorquesRaw()

virtual yarp::dev::ReturnValue yarp::dev::ITorqueControlRaw::getTorquesRaw ( double *  t)
pure virtual

Get the value of the torque for all joints (this is the feedback if you have torque sensors).

Parameters
tpointer to the array that will store the output
Returns
true/false on success/failure

Implemented in FakeMotionControl.

◆ setMotorTorqueParamsRaw()

virtual yarp::dev::ReturnValue yarp::dev::ITorqueControlRaw::setMotorTorqueParamsRaw ( int  j,
const yarp::dev::MotorTorqueParameters  params 
)
pure virtual

Set the motor parameters.

Parameters
jjoint number
paramsa struct containing the motor parameters to be set
Returns
true/false on success/failure

Implemented in FakeMotionControl.

◆ setRefTorqueRaw()

virtual yarp::dev::ReturnValue yarp::dev::ITorqueControlRaw::setRefTorqueRaw ( int  j,
double  t 
)
pure virtual

Set the reference value of the torque for a given joint.

Parameters
jjoint number
tnew value
Returns
true/false on success/failure

Implemented in FakeMotionControl.

◆ setRefTorquesRaw() [1/2]

virtual yarp::dev::ReturnValue yarp::dev::ITorqueControlRaw::setRefTorquesRaw ( const double *  t)
pure virtual

Set the reference value of the torque for all joints.

Parameters
tpointer to the array of torque values
Returns
true/false on success/failure

Implemented in FakeMotionControl.

◆ setRefTorquesRaw() [2/2]

virtual yarp::dev::ReturnValue yarp::dev::ITorqueControlRaw::setRefTorquesRaw ( const int  n_joint,
const int *  joints,
const double *  t 
)
pure virtual

Set new torque reference for a subset of joints.

Parameters
jointspointer to the array of joint numbers
refspointer to the array specifying the new torque reference
Returns
true/false on success/failure

Implemented in FakeMotionControl.


The documentation for this class was generated from the following file: