YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
ImplementMotor.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_IMPLEMENTMOTOR_H
7#define YARP_DEV_IMPLEMENTMOTOR_H
8
9#include <yarp/dev/IMotor.h>
10
11namespace yarp::dev {
12class ImplementMotor;
13}
14
15namespace yarp::dev::impl {
16
17template <typename T>
18class FixedSizeBuffersManager;
19
20} // namespace yarp::dev::impl
21
22
24{
25protected:
27 void *helper;
28
30
37 bool initialize (int size, const int *amap);
38
43 bool uninitialize ();
44
45public:
46 /* Constructor.
47 * @param y is the pointer to the class instance inheriting from this
48 * implementation.
49 */
51
52
53 virtual ~ImplementMotor();
54
55 bool getNumberOfMotors(int *num) override;
56
57 bool getTemperature (int m, double* val) override;
58 bool getTemperatures (double *vals) override;
59 bool getTemperatureLimit (int m, double* val) override;
60 bool setTemperatureLimit (int m, const double val) override;
61 bool getGearboxRatio (int m, double* val) override;
62 bool setGearboxRatio (int m, const double val) override;
63};
64
65#endif // YARP_DEV_IMPLEMENTMOTOR_H
Control board, encoder interface.
Definition IMotor.h:24
Control board, encoder interface.
Definition IMotor.h:94
bool uninitialize()
Clean up internal data and memory.
yarp::dev::impl::FixedSizeBuffersManager< double > * doubleBuffManager
bool getTemperatureLimit(int m, double *val) override
Retreives the current temperature limit for a specific motor.
bool setTemperatureLimit(int m, const double val) override
Set the temperature limit for a specific motor.
bool getGearboxRatio(int m, double *val) override
Get the gearbox ratio for a specific motor.
bool getTemperatures(double *vals) override
Get temperature of all the motors.
bool initialize(int size, const int *amap)
Initialize the internal data and alloc memory.
bool setGearboxRatio(int m, const double val) override
Set the gearbox ratio for a specific motor.
bool getTemperature(int m, double *val) override
Get temperature of a motor.
bool getNumberOfMotors(int *num) override
Get the number of available motors.
A manager of fixed size buffers in multi-thread environment.
For streams capable of holding different kinds of content, check what they actually have.
Definition jointData.cpp:13
The main, catch-all namespace for YARP.
Definition dirs.h:16
#define YARP_dev_API
Definition api.h:18