#include <yarp/dev/ImplementControlMode.h>
Public Member Functions | |
bool | initialize (int k, const int *amap) |
bool | uninitialize () |
ImplementControlMode (IControlModeRaw *v) | |
~ImplementControlMode () | |
bool | getControlMode (int j, int *f) override |
Get the current control mode. | |
bool | getControlModes (int *modes) override |
Get the current control mode (multiple joints). | |
bool | getControlModes (const int n_joint, const int *joints, int *modes) override |
Get the current control mode for a subset of axes. | |
bool | setControlMode (const int j, const int mode) override |
Set the current control mode. | |
bool | setControlModes (const int n_joint, const int *joints, int *modes) override |
Set the current control mode for a subset of axes. | |
bool | setControlModes (int *modes) override |
Set the current control mode (multiple joints). | |
![]() | |
virtual | ~IControlMode () |
Definition at line 23 of file ImplementControlMode.h.
ImplementControlMode::ImplementControlMode | ( | IControlModeRaw * | v | ) |
Definition at line 16 of file ImplementControlMode.cpp.
ImplementControlMode::~ImplementControlMode | ( | ) |
Definition at line 36 of file ImplementControlMode.cpp.
Get the current control mode.
j | joint number |
mode | a vocab of the current control mode for joint j. |
Implements yarp::dev::IControlMode.
Definition at line 57 of file ImplementControlMode.cpp.
|
overridevirtual |
Get the current control mode for a subset of axes.
n_joints | how many joints this command is referring to |
joints | list of joint numbers, the size of this array is n_joints |
modes | array containing the new controlmodes, one value for each joint, the size is n_joints. The first value will be the new reference for the joint joints[0]. for example: n_joint 3 joints 0 2 4 modes VOCAB_CM_POSITION VOCAB_CM_VELOCITY VOCAB_CM_POSITION |
Implements yarp::dev::IControlMode.
Definition at line 75 of file ImplementControlMode.cpp.
Get the current control mode (multiple joints).
modes | a vector containing vocabs for the current control modes of the joints. |
Implements yarp::dev::IControlMode.
Definition at line 64 of file ImplementControlMode.cpp.
Definition at line 22 of file ImplementControlMode.cpp.
Set the current control mode.
j | joint number |
mode | a vocab of the desired control mode for joint j. |
Implements yarp::dev::IControlMode.
Definition at line 93 of file ImplementControlMode.cpp.
|
overridevirtual |
Set the current control mode for a subset of axes.
n_joints | how many joints this command is referring to |
joints | list of joint numbers, the size of this array is n_joints |
modes | array containing the new controlmodes, one value for each joint, the size is n_joints. The first value will be the new reference for the joint joints[0]. for example: n_joint 3 joints 0 2 4 modes VOCAB_CM_POSITION VOCAB_CM_VELOCITY VOCAB_CM_POSITION |
Implements yarp::dev::IControlMode.
Definition at line 100 of file ImplementControlMode.cpp.
Set the current control mode (multiple joints).
modes | a vector containing vocabs for the desired control modes of the joints. |
Implements yarp::dev::IControlMode.
Definition at line 118 of file ImplementControlMode.cpp.
bool ImplementControlMode::uninitialize | ( | ) |
Definition at line 41 of file ImplementControlMode.cpp.