class ImplementControlLimits; class StubImplControlLimitsRaw;
More...
#include <yarp/dev/ImplementControlLimits.h>
|
| | ImplementControlLimits (yarp::dev::IControlLimitsRaw *y) |
| | Constructor.
|
| |
| virtual | ~ImplementControlLimits () |
| | Destructor.
|
| |
| yarp::dev::ReturnValue | setPosLimits (int axis, double min, double max) override |
| | Set the software limits for a particular axis, the behavior of the control card when these limits are exceeded, depends on the implementation.
|
| |
| yarp::dev::ReturnValue | getPosLimits (int axis, double *min, double *max) override |
| | Get the software limits for a particular axis.
|
| |
| yarp::dev::ReturnValue | setVelLimits (int axis, double min, double max) override |
| | Set the software speed limits for a particular axis, the behavior of the control card when these limits are exceeded, depends on the implementation.
|
| |
| yarp::dev::ReturnValue | getVelLimits (int axis, double *min, double *max) override |
| | Get the software speed limits for a particular axis.
|
| |
| virtual | ~IControlLimits () |
| | Destructor.
|
| |
|
| bool | initialize (int size, const int *amap, const double *enc, const double *zos) |
| | Initialize the internal data and alloc memory.
|
| |
| bool | uninitialize () |
| | Clean up internal data and memory.
|
| |
class ImplementControlLimits; class StubImplControlLimitsRaw;
Interface for control devices, commands to get/set position and veloity limits
Definition at line 24 of file ImplementControlLimits.h.
◆ ImplementControlLimits()
Constructor.
- Parameters
-
| y | is the pointer to the class instance inheriting from this implementation. |
Definition at line 18 of file ImplementControlLimits.cpp.
◆ ~ImplementControlLimits()
| ImplementControlLimits::~ImplementControlLimits |
( |
| ) |
|
|
virtual |
◆ getPosLimits()
| ReturnValue ImplementControlLimits::getPosLimits |
( |
int |
axis, |
|
|
double * |
min, |
|
|
double * |
max |
|
) |
| |
|
overridevirtual |
Get the software limits for a particular axis.
- Parameters
-
| axis | joint number |
| pointer | to store the value of the lower limit |
| pointer | to store the value of the upper limit |
- Returns
- true if everything goes fine, false otherwise.
Implements yarp::dev::IControlLimits.
Definition at line 83 of file ImplementControlLimits.cpp.
◆ getVelLimits()
| ReturnValue ImplementControlLimits::getVelLimits |
( |
int |
axis, |
|
|
double * |
min, |
|
|
double * |
max |
|
) |
| |
|
overridevirtual |
Get the software speed limits for a particular axis.
- Parameters
-
| axis | joint number |
| min | pointer to store the value of the lower limit |
| max | pointer to store the value of the upper limit |
- Returns
- true if everything goes fine, false otherwise.
Implements yarp::dev::IControlLimits.
Definition at line 124 of file ImplementControlLimits.cpp.
◆ initialize()
| bool ImplementControlLimits::initialize |
( |
int |
size, |
|
|
const int * |
amap, |
|
|
const double * |
enc, |
|
|
const double * |
zos |
|
) |
| |
|
protected |
Initialize the internal data and alloc memory.
- Parameters
-
| size | is the number of controlled axes the driver deals with. |
| amap | is a lookup table mapping axes onto physical drivers. |
| enc | is an array containing the encoder to angles conversion factors. |
| zos | is an array containing the zeros of the encoders. respect to the control/output values of the driver. |
- Returns
- true if initialized succeeded, false if it wasn't executed, or assert.
Definition at line 43 of file ImplementControlLimits.cpp.
◆ setPosLimits()
| ReturnValue ImplementControlLimits::setPosLimits |
( |
int |
axis, |
|
|
double |
min, |
|
|
double |
max |
|
) |
| |
|
overridevirtual |
Set the software limits for a particular axis, the behavior of the control card when these limits are exceeded, depends on the implementation.
- Parameters
-
| axis | joint number (why am I telling you this) |
| min | the value of the lower limit |
| max | the value of the upper limit |
- Returns
- true or false on success or failure
Implements yarp::dev::IControlLimits.
Definition at line 59 of file ImplementControlLimits.cpp.
◆ setVelLimits()
| ReturnValue ImplementControlLimits::setVelLimits |
( |
int |
axis, |
|
|
double |
min, |
|
|
double |
max |
|
) |
| |
|
overridevirtual |
Set the software speed limits for a particular axis, the behavior of the control card when these limits are exceeded, depends on the implementation.
- Parameters
-
| axis | joint number |
| min | the value of the lower limit |
| max | the value of the upper limit |
- Returns
- true or false on success or failure
Implements yarp::dev::IControlLimits.
Definition at line 109 of file ImplementControlLimits.cpp.
◆ uninitialize()
| bool ImplementControlLimits::uninitialize |
( |
| ) |
|
|
protected |
Clean up internal data and memory.
- Returns
- true if uninitialization is executed, false otherwise.
Definition at line 33 of file ImplementControlLimits.cpp.
◆ m_buffer_doubles
| std::vector<double> yarp::dev::ImplementControlLimits::m_buffer_doubles |
|
protected |
◆ m_buffer_ints
| std::vector<int> yarp::dev::ImplementControlLimits::m_buffer_ints |
|
protected |
◆ m_helper
| void* yarp::dev::ImplementControlLimits::m_helper =nullptr |
|
protected |
◆ m_imp_mutex
| std::mutex yarp::dev::ImplementControlLimits::m_imp_mutex |
|
protected |
◆ m_iraw
The documentation for this class was generated from the following files: