YARP
Yet Another Robot Platform
ControlBoardWrapperMotor.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_CONTROLBOARDWRAPPERMOTOR_H
10 #define YARP_DEV_CONTROLBOARDWRAPPER_CONTROLBOARDWRAPPERMOTOR_H
11 
12 #include <yarp/dev/IMotor.h>
13 
15 
17  virtual public ControlBoardWrapperCommon,
18  public yarp::dev::IMotor
19 {
20 public:
21  inline bool getNumberOfMotors(int* num) override { return ControlBoardWrapperCommon::getNumberOfMotors(num); }
22  bool getTemperature(int m, double* val) override;
23  bool getTemperatures(double* vals) override;
24  bool getTemperatureLimit(int m, double* val) override;
25  bool setTemperatureLimit(int m, const double val) override;
26  bool getGearboxRatio(int m, double* val) override;
27  bool setGearboxRatio(int m, const double val) override;
28 };
29 
30 #endif // YARP_DEV_CONTROLBOARDWRAPPER_CONTROLBOARDWRAPPERMOTOR_H
ControlBoardWrapperMotor::getTemperatureLimit
bool getTemperatureLimit(int m, double *val) override
Retreives the current temperature limit for a specific motor.
Definition: ControlBoardWrapperMotor.cpp:56
ControlBoardWrapperMotor
Definition: ControlBoardWrapperMotor.h:19
ControlBoardWrapperCommon.h
ControlBoardWrapperMotor::setGearboxRatio
bool setGearboxRatio(int m, const double val) override
Set the gearbox ratio for a specific motor.
Definition: ControlBoardWrapperMotor.cpp:106
ControlBoardWrapperCommon
Definition: ControlBoardWrapperCommon.h:19
ControlBoardWrapperMotor::getNumberOfMotors
bool getNumberOfMotors(int *num) override
Get the number of available motors.
Definition: ControlBoardWrapperMotor.h:21
yarp::dev::IMotor
Control board, encoder interface.
Definition: IMotor.h:99
ControlBoardWrapperCommon::getNumberOfMotors
bool getNumberOfMotors(int *num)
Definition: ControlBoardWrapperCommon.cpp:289
ControlBoardWrapperMotor::getTemperature
bool getTemperature(int m, double *val) override
Get temperature of a motor.
Definition: ControlBoardWrapperMotor.cpp:13
ControlBoardWrapperMotor::getTemperatures
bool getTemperatures(double *vals) override
Get temperature of all the motors.
Definition: ControlBoardWrapperMotor.cpp:30
ControlBoardWrapperMotor::getGearboxRatio
bool getGearboxRatio(int m, double *val) override
Get the gearbox ratio for a specific motor.
Definition: ControlBoardWrapperMotor.cpp:89
ControlBoardWrapperMotor::setTemperatureLimit
bool setTemperatureLimit(int m, const double val) override
Set the temperature limit for a specific motor.
Definition: ControlBoardWrapperMotor.cpp:73
IMotor.h