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