YARP
Yet Another Robot Platform
ControlBoardWrapperTorqueControl.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_CONTROLBOARDWRAPPER_CONTROLBOARDWRAPPERTORQUECONTROL_H
7 #define YARP_DEV_CONTROLBOARDWRAPPER_CONTROLBOARDWRAPPERTORQUECONTROL_H
8 
10 
12 
14  virtual public ControlBoardWrapperCommon,
16 {
17 public:
18  inline bool getAxes(int *ax) override { return ControlBoardWrapperCommon::getAxes(ax); }
19  bool getRefTorques(double* refs) override;
20  bool getRefTorque(int j, double* t) override;
21  bool setRefTorques(const double* t) override;
22  bool setRefTorque(int j, double t) override;
23  bool setRefTorques(const int n_joint, const int* joints, const double* t) override;
24  bool getMotorTorqueParams(int j, yarp::dev::MotorTorqueParameters* params) override;
25  bool setMotorTorqueParams(int j, const yarp::dev::MotorTorqueParameters params) override;
26  bool getTorque(int j, double* t) override;
27  bool getTorques(double* t) override;
28  bool getTorqueRange(int j, double* min, double* max) override;
29  bool getTorqueRanges(double* min, double* max) override;
30 };
31 
32 #endif // YARP_DEV_CONTROLBOARDWRAPPER_CONTROLBOARDWRAPPERTORQUECONTROL_H
float t
bool getMotorTorqueParams(int j, yarp::dev::MotorTorqueParameters *params) override
Get a subset of motor parameters (bemf, ktau etc) useful for torque control.
bool getTorqueRanges(double *min, double *max) override
Get the full scale of the torque sensors of all joints.
bool setMotorTorqueParams(int j, const yarp::dev::MotorTorqueParameters params) override
Set a subset of motor parameters (bemf, ktau etc) useful for torque control.
bool setRefTorque(int j, double t) override
Set the reference value of the torque for a given joint.
bool getRefTorques(double *refs) override
Get the reference value of the torque for all joints.
bool getAxes(int *ax) override
Get the number of controlled axes.
bool getTorque(int j, double *t) override
Get the value of the torque on a given joint (this is the feedback if you have a torque sensor).
bool getTorqueRange(int j, double *min, double *max) override
Get the full scale of the torque sensor of a given joint.
bool getTorques(double *t) override
Get the value of the torque for all joints (this is the feedback if you have torque sensors).
bool getRefTorque(int j, double *t) override
Get the reference value of the torque for a given joint.
bool setRefTorques(const double *t) override
Set the reference value of the torque for all joints.
Interface for control boards implementing torque control.