YARP
Yet Another Robot Platform
ControlBoardWrapperCurrentControl.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_CONTROLBOARDWRAPPERCURRENTCONTROL_H
10 #define YARP_DEV_CONTROLBOARDWRAPPER_CONTROLBOARDWRAPPERCURRENTCONTROL_H
11 
13 
15 
17  virtual public ControlBoardWrapperCommon,
19 {
20 public:
21  inline bool getNumberOfMotors(int* num) override { return ControlBoardWrapperCommon::getNumberOfMotors(num); }
22  inline bool getCurrent(int m, double *curr) override { return ControlBoardWrapperCommon::getCurrent(m, curr); }
23  inline bool getCurrents(double *currs) override { return ControlBoardWrapperCommon::getCurrents(currs); }
24  bool getCurrentRange(int j, double* min, double* max) override;
25  bool getCurrentRanges(double* min, double* max) override;
26  bool setRefCurrents(const double* t) override;
27  bool setRefCurrent(int j, double t) override;
28  bool setRefCurrents(const int n_joint, const int* joints, const double* t) override;
29  bool getRefCurrents(double* t) override;
30  bool getRefCurrent(int j, double* t) override;
31 };
32 
33 #endif // YARP_DEV_CONTROLBOARDWRAPPER_CONTROLBOARDWRAPPERCURRENTCONTROL_H
t
float t
Definition: FfmpegWriter.cpp:74
ControlBoardWrapperCurrentControl
Definition: ControlBoardWrapperCurrentControl.h:19
ControlBoardWrapperCurrentControl::setRefCurrents
bool setRefCurrents(const double *t) override
Set the reference value of the currents for all motors.
Definition: ControlBoardWrapperCurrentControl.cpp:66
ControlBoardWrapperCommon::getCurrent
bool getCurrent(int m, double *curr)
Definition: ControlBoardWrapperCommon.cpp:327
ControlBoardWrapperCurrentControl::getCurrent
bool getCurrent(int m, double *curr) override
Get the instantaneous current measurement for a single motor.
Definition: ControlBoardWrapperCurrentControl.h:22
ControlBoardWrapperCurrentControl::setRefCurrent
bool setRefCurrent(int j, double t) override
Set the reference value of the current for a single motor.
Definition: ControlBoardWrapperCurrentControl.cpp:88
ControlBoardWrapperCurrentControl::getRefCurrent
bool getRefCurrent(int j, double *t) override
Get the reference value of the current for a single motor.
Definition: ControlBoardWrapperCurrentControl.cpp:165
ControlBoardWrapperCurrentControl::getNumberOfMotors
bool getNumberOfMotors(int *num) override
Retrieves the number of controlled axes from the current physical interface.
Definition: ControlBoardWrapperCurrentControl.h:21
ControlBoardWrapperCommon.h
ControlBoardWrapperCommon
Definition: ControlBoardWrapperCommon.h:19
ControlBoardWrapperCurrentControl::getCurrentRange
bool getCurrentRange(int j, double *min, double *max) override
Get the full scale of the current measurement for a given motor (e.g.
Definition: ControlBoardWrapperCurrentControl.cpp:14
ControlBoardWrapperCurrentControl::getCurrentRanges
bool getCurrentRanges(double *min, double *max) override
Get the full scale of the current measurements for all motors motor (e.g.
Definition: ControlBoardWrapperCurrentControl.cpp:37
yarp::dev::ICurrentControl
Interface for control boards implementing current control.
Definition: ICurrentControl.h:28
ICurrentControl.h
ControlBoardWrapperCommon::getCurrents
bool getCurrents(double *currs)
Definition: ControlBoardWrapperCommon.cpp:296
ControlBoardWrapperCurrentControl::getCurrents
bool getCurrents(double *currs) override
Get the instantaneous current measurement for all motors.
Definition: ControlBoardWrapperCurrentControl.h:23
ControlBoardWrapperCommon::getNumberOfMotors
bool getNumberOfMotors(int *num)
Definition: ControlBoardWrapperCommon.cpp:289
ControlBoardWrapperCurrentControl::getRefCurrents
bool getRefCurrents(double *t) override
Get the reference value of the currents for all motors.
Definition: ControlBoardWrapperCurrentControl.cpp:139