#include <yarp/dev/ImplementVelocityDirect.h>
Inheritance diagram for yarp::dev::ImplementVelocityDirect:Public Member Functions | |
| ImplementVelocityDirect (yarp::dev::IVelocityDirectRaw *y) | |
| Constructor. | |
| virtual | ~ImplementVelocityDirect () |
| Destructor. | |
| yarp::dev::ReturnValue | getAxes (size_t &axes) override |
| Get the number of controlled axes. | |
| yarp::dev::ReturnValue | setRefVelocity (int jnt, double vel) override |
| Set the velocity of single joint. | |
| yarp::dev::ReturnValue | setRefVelocity (const std::vector< double > &vels) override |
| Set the velocity of all joints. | |
| yarp::dev::ReturnValue | setRefVelocity (const std::vector< int > &jnts, const std::vector< double > &vels) override |
| Set the velocity of a subset of joints. | |
| yarp::dev::ReturnValue | getRefVelocity (const int jnt, double &vel) override |
| Get the last reference velocity set by setRefVelocity() for a single joint. | |
| yarp::dev::ReturnValue | getRefVelocity (std::vector< double > &vels) override |
| Get the last reference velocity set by setRefVelocity() for all joints. | |
| yarp::dev::ReturnValue | getRefVelocity (const std::vector< int > &jnts, std::vector< double > &vels) override |
| Get the last reference velocity set by setRefVelocity() for a group of joints. | |
Public Member Functions inherited from yarp::dev::IVelocityDirect | |
| virtual | ~IVelocityDirect () |
| Destructor. | |
Protected Member Functions | |
| 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. | |
Protected Attributes | |
| IVelocityDirectRaw * | m_iVelocityDirectRaw =nullptr |
| void * | m_helper =nullptr |
| std::vector< int > | m_buffer_ints |
| std::vector< double > | m_buffer_doubles |
| std::mutex | m_imp_mutex |
Definition at line 17 of file ImplementVelocityDirect.h.
| ImplementVelocityDirect::ImplementVelocityDirect | ( | yarp::dev::IVelocityDirectRaw * | y | ) |
Constructor.
| y | is the pointer to the class instance inheriting from this implementation. |
Definition at line 22 of file ImplementVelocityDirect.cpp.
|
virtual |
Destructor.
Definition at line 26 of file ImplementVelocityDirect.cpp.
|
overridevirtual |
Get the number of controlled axes.
| axes | returned number of controllable axes |
Implements yarp::dev::IVelocityDirect.
Definition at line 57 of file ImplementVelocityDirect.cpp.
|
overridevirtual |
Get the last reference velocity set by setRefVelocity() for a single joint.
| jnt | joint number |
| vel | returns the velocity reference for the specified joint. |
Implements yarp::dev::IVelocityDirect.
Definition at line 103 of file ImplementVelocityDirect.cpp.
|
overridevirtual |
Get the last reference velocity set by setRefVelocity() for a group of joints.
| jnts | vector containing the ids of the joints to control. |
| vels | vector containing the velocity references of the joints belonging to the required subset. |
Implements yarp::dev::IVelocityDirect.
Definition at line 126 of file ImplementVelocityDirect.cpp.
|
overridevirtual |
Get the last reference velocity set by setRefVelocity() for all joints.
| vels | vector containing the velocity references of all joints. |
Implements yarp::dev::IVelocityDirect.
Definition at line 115 of file ImplementVelocityDirect.cpp.
|
protected |
Initialize the internal data and alloc memory.
| 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. |
Definition at line 31 of file ImplementVelocityDirect.cpp.
|
overridevirtual |
Set the velocity of all joints.
| vels | vector containing joint velocities for all joints |
Implements yarp::dev::IVelocityDirect.
Definition at line 76 of file ImplementVelocityDirect.cpp.
|
overridevirtual |
Set the velocity of a subset of joints.
| jnts | vector containing the ids of the joints to control. |
| vels | vector containing the joint velocities for the required subset. |
Implements yarp::dev::IVelocityDirect.
Definition at line 86 of file ImplementVelocityDirect.cpp.
|
overridevirtual |
Set the velocity of single joint.
| jnt | joint number |
| vel | speed value |
Implements yarp::dev::IVelocityDirect.
Definition at line 65 of file ImplementVelocityDirect.cpp.
|
protected |
Clean up internal data and memory.
Definition at line 46 of file ImplementVelocityDirect.cpp.
|
protected |
Definition at line 23 of file ImplementVelocityDirect.h.
|
protected |
Definition at line 22 of file ImplementVelocityDirect.h.
|
protected |
Definition at line 21 of file ImplementVelocityDirect.h.
|
protected |
Definition at line 24 of file ImplementVelocityDirect.h.
|
protected |
Definition at line 20 of file ImplementVelocityDirect.h.