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 | ~IInteractionMode () |
Destructor. More... | |
virtual bool | getInteractionMode (int axis, yarp::dev::InteractionModeEnum *mode)=0 |
Get the current interaction mode of the robot, values can be stiff or compliant. More... | |
virtual bool | getInteractionModes (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 | getInteractionModes (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 | setInteractionMode (int axis, yarp::dev::InteractionModeEnum mode)=0 |
Set the interaction mode of the robot, values can be stiff or compliant. More... | |
virtual bool | setInteractionModes (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 | setInteractionModes (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 42 of file IInteractionMode.h.
|
inlinevirtual |
Destructor.
Definition at line 48 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 ControlBoardWrapperInteractionMode, ControlBoardRemapper, yarp::dev::ImplementInteractionMode, and RemoteControlBoard.
|
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::ImplementInteractionMode, RemoteControlBoard, ControlBoardWrapperInteractionMode, and ControlBoardRemapper.
|
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::ImplementInteractionMode, RemoteControlBoard, ControlBoardWrapperInteractionMode, and ControlBoardRemapper.
|
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 ControlBoardWrapperInteractionMode, ControlBoardRemapper, yarp::dev::ImplementInteractionMode, and RemoteControlBoard.
|
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::ImplementInteractionMode, RemoteControlBoard, ControlBoardWrapperInteractionMode, and ControlBoardRemapper.
|
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::ImplementInteractionMode, RemoteControlBoard, ControlBoardWrapperInteractionMode, and ControlBoardRemapper.