#include <yarp/dev/ImplementControlMode.h>
Inheritance diagram for yarp::dev::ImplementControlMode: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. More... | |
| bool | getControlModes (int *modes) override |
| Get the current control mode (multiple joints). More... | |
| bool | getControlModes (const int n_joint, const int *joints, int *modes) override |
| Get the current control mode for a subset of axes. More... | |
| bool | setControlMode (const int j, const int mode) override |
| Set the current control mode. More... | |
| bool | setControlModes (const int n_joint, const int *joints, int *modes) override |
| Set the current control mode for a subset of axes. More... | |
| bool | setControlModes (int *modes) override |
| Set the current control mode (multiple joints). More... | |
Public Member Functions inherited from yarp::dev::IControlMode | |
| virtual | ~IControlMode () |
Definition at line 32 of file ImplementControlMode.h.
| ImplementControlMode::ImplementControlMode | ( | IControlModeRaw * | v | ) |
Definition at line 19 of file ImplementControlMode.cpp.
| ImplementControlMode::~ImplementControlMode | ( | ) |
Definition at line 38 of file ImplementControlMode.cpp.
|
overridevirtual |
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 59 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 77 of file ImplementControlMode.cpp.
|
overridevirtual |
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 66 of file ImplementControlMode.cpp.
| bool ImplementControlMode::initialize | ( | int | k, |
| const int * | amap | ||
| ) |
Definition at line 25 of file ImplementControlMode.cpp.
|
overridevirtual |
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 94 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 101 of file ImplementControlMode.cpp.
|
overridevirtual |
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 43 of file ImplementControlMode.cpp.