YARP
Yet Another Robot Platform
ControlBoardWrapperTorqueControl.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2006-2020 Istituto Italiano di Tecnologia (IIT)
3  * All rights reserved.
4  *
5  * This software may be modified and distributed under the terms of the
6  * BSD-3-Clause license. See the accompanying LICENSE file for details.
7  */
8 
9 #ifndef YARP_DEV_CONTROLBOARDWRAPPER_CONTROLBOARDWRAPPERTORQUECONTROL_H
10 #define YARP_DEV_CONTROLBOARDWRAPPER_CONTROLBOARDWRAPPERTORQUECONTROL_H
11 
13 
15 
17  virtual public ControlBoardWrapperCommon,
19 {
20 public:
21  inline bool getAxes(int *ax) override { return ControlBoardWrapperCommon::getAxes(ax); }
22  bool getRefTorques(double* refs) override;
23  bool getRefTorque(int j, double* t) override;
24  bool setRefTorques(const double* t) override;
25  bool setRefTorque(int j, double t) override;
26  bool setRefTorques(const int n_joint, const int* joints, const double* t) override;
27  bool getMotorTorqueParams(int j, yarp::dev::MotorTorqueParameters* params) override;
28  bool setMotorTorqueParams(int j, const yarp::dev::MotorTorqueParameters params) override;
29  bool getTorque(int j, double* t) override;
30  bool getTorques(double* t) override;
31  bool getTorqueRange(int j, double* min, double* max) override;
32  bool getTorqueRanges(double* min, double* max) override;
33 };
34 
35 #endif // YARP_DEV_CONTROLBOARDWRAPPER_CONTROLBOARDWRAPPERTORQUECONTROL_H
ControlBoardWrapperTorqueControl
Definition: ControlBoardWrapperTorqueControl.h:19
t
float t
Definition: FfmpegWriter.cpp:74
yarp::dev::MotorTorqueParameters
Definition: ITorqueControl.h:24
ControlBoardWrapperTorqueControl::getTorqueRange
bool getTorqueRange(int j, double *min, double *max) override
Get the full scale of the torque sensor of a given joint.
Definition: ControlBoardWrapperTorqueControl.cpp:229
ControlBoardWrapperTorqueControl::setRefTorques
bool setRefTorques(const double *t) override
Set the reference value of the torque for all joints.
Definition: ControlBoardWrapperTorqueControl.cpp:63
ControlBoardWrapperTorqueControl::getRefTorques
bool getRefTorques(double *refs) override
Get the reference value of the torque for all joints.
Definition: ControlBoardWrapperTorqueControl.cpp:14
ControlBoardWrapperTorqueControl::getMotorTorqueParams
bool getMotorTorqueParams(int j, yarp::dev::MotorTorqueParameters *params) override
Get a subset of motor parameters (bemf, ktau etc) useful for torque control.
Definition: ControlBoardWrapperTorqueControl.cpp:136
ITorqueControl.h
ControlBoardWrapperTorqueControl::getRefTorque
bool getRefTorque(int j, double *t) override
Get the reference value of the torque for a given joint.
Definition: ControlBoardWrapperTorqueControl.cpp:40
ControlBoardWrapperCommon.h
ControlBoardWrapperCommon
Definition: ControlBoardWrapperCommon.h:19
ControlBoardWrapperTorqueControl::getTorques
bool getTorques(double *t) override
Get the value of the torque for all joints (this is the feedback if you have torque sensors).
Definition: ControlBoardWrapperTorqueControl.cpp:203
ControlBoardWrapperTorqueControl::getAxes
bool getAxes(int *ax) override
Get the number of controlled axes.
Definition: ControlBoardWrapperTorqueControl.h:21
ControlBoardWrapperTorqueControl::setMotorTorqueParams
bool setMotorTorqueParams(int j, const yarp::dev::MotorTorqueParameters params) override
Set a subset of motor parameters (bemf, ktau etc) useful for torque control.
Definition: ControlBoardWrapperTorqueControl.cpp:158
ControlBoardWrapperTorqueControl::getTorqueRanges
bool getTorqueRanges(double *min, double *max) override
Get the full scale of the torque sensors of all joints.
Definition: ControlBoardWrapperTorqueControl.cpp:252
ControlBoardWrapperTorqueControl::getTorque
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).
Definition: ControlBoardWrapperTorqueControl.cpp:180
yarp::dev::ITorqueControl
Interface for control boards implementing torque control.
Definition: ITorqueControl.h:39
ControlBoardWrapperCommon::getAxes
bool getAxes(int *ax)
Definition: ControlBoardWrapperCommon.cpp:14
ControlBoardWrapperTorqueControl::setRefTorque
bool setRefTorque(int j, double t) override
Set the reference value of the torque for a given joint.
Definition: ControlBoardWrapperTorqueControl.cpp:85