Interface settings the way the robot interacts with the environment: basic interaction types are Stiff and Compliant. More...
#include <yarp/dev/IInteractionMode.h>
Public Member Functions | |
virtual | ~IInteractionModeRaw () |
Destructor. More... | |
virtual bool | getInteractionModeRaw (int axis, yarp::dev::InteractionModeEnum *mode)=0 |
Get the current interaction mode of the robot, values can be stiff or compliant. More... | |
virtual bool | getInteractionModesRaw (int n_joints, int *joints, yarp::dev::InteractionModeEnum *modes)=0 |
Get the current interaction mode of the robot for a set of joints, values can be stiff or compliant. More... | |
virtual bool | getInteractionModesRaw (yarp::dev::InteractionModeEnum *modes)=0 |
Get the current interaction mode of the robot for a all the joints, values can be stiff or compliant. More... | |
virtual bool | setInteractionModeRaw (int axis, yarp::dev::InteractionModeEnum mode)=0 |
Set the interaction mode of the robot, values can be stiff or compliant. More... | |
virtual bool | setInteractionModesRaw (int n_joints, int *joints, yarp::dev::InteractionModeEnum *modes)=0 |
Set the interaction mode of the robot for a set of joints, values can be stiff or compliant. More... | |
virtual bool | setInteractionModesRaw (yarp::dev::InteractionModeEnum *modes)=0 |
Set the interaction mode of the robot for a all the joints, values can be stiff or compliant. More... | |
Interface settings the way the robot interacts with the environment: basic interaction types are Stiff and Compliant.
This setting is intended to work in conjunction with other settings like position or velocity control.
Definition at line 121 of file IInteractionMode.h.
|
inlinevirtual |
Destructor.
Definition at line 127 of file IInteractionMode.h.
|
pure virtual |
Get the current interaction mode of the robot, values can be stiff or compliant.
axis | joint number |
mode | contains the requested information about interaction mode of the joint |
Implemented in FakeMotionControl, and yarp::dev::StubImplInteractionModeRaw.
|
pure virtual |
Get the current interaction mode of the robot for a set of joints, values can be stiff or compliant.
n_joints | how many joints this command is referring to |
joints | list of joints controlled. The size of this array is n_joints |
modes | array containing the requested information about interaction mode, one value for each joint, the size is n_joints. for example: n_joint 3 joints 0 2 4 refs VOCAB_IM_STIFF VOCAB_IM_STIFF VOCAB_IM_COMPLIANT |
Implemented in yarp::dev::StubImplInteractionModeRaw, and FakeMotionControl.
|
pure virtual |
Get the current interaction mode of the robot for a all the joints, values can be stiff or compliant.
mode | array containing the requested information about interaction mode, one value for each joint. |
Implemented in yarp::dev::StubImplInteractionModeRaw, and FakeMotionControl.
|
pure virtual |
Set the interaction mode of the robot, values can be stiff or compliant.
Please note that some robot may not implement certain types of interaction, so always check the return value.
axis | joint number |
mode | the desired interaction mode |
Implemented in FakeMotionControl, and yarp::dev::StubImplInteractionModeRaw.
|
pure virtual |
Set the interaction mode of the robot for a set of joints, values can be stiff or compliant.
Please note that some robot may not implement certain types of interaction, so always check the return value.
n_joints | how many joints this command is referring to |
joints | list of joints controlled. The size of this array is n_joints |
modes | array containing the desired interaction mode, one value for each joint, the size is n_joints. for example: n_joint 3 joints 0 2 4 refs VOCAB_IM_STIFF VOCAB_IM_STIFF VOCAB_IM_COMPLIANT |
Implemented in yarp::dev::StubImplInteractionModeRaw, and FakeMotionControl.
|
pure virtual |
Set the interaction mode of the robot for a all the joints, values can be stiff or compliant.
Some robot may not implement some types of interaction, so always check the return value
mode | array with the desired interaction mode for all joints, length is the total number of joints for the part |
Implemented in yarp::dev::StubImplInteractionModeRaw, and FakeMotionControl.