|
YARP
Yet Another Robot Platform
|
|
Go to the documentation of this file.
24 size_t subIndex =
device.
lut[j].deviceEntry;
47 for (
int j = 0; j < n_joints; j++) {
48 subIndex =
device.
lut[joints[j]].deviceEntry;
72 for (
int j = 0; j < n_joints; j++) {
73 subIndex =
device.
lut[joints[j]].deviceEntry;
78 for (
int j = 0; j < n_joints; j++) {
99 for (
size_t juser = p->
wbase, jdevice = p->
base; juser <= p->wtop; juser++, jdevice++) {
100 modes[juser] = imodes[jdevice];
122 size_t subIndex =
device.
lut[j].deviceEntry;
145 for (
int j = 0; j < n_joints; j++) {
146 subIndex =
device.
lut[joints[j]].deviceEntry;
179 size_t subIndex =
device.
lut[j].deviceEntry;
bool getInteractionModes(int n_joints, int *joints, yarp::dev::InteractionModeEnum *modes) override
Get the current interaction mode of the robot for a set of joints, values can be stiff or compliant.
int * subdev_jointsVectorLen
bool setInteractionMode(int j, yarp::dev::InteractionModeEnum mode) override
Set the interaction mode of the robot, values can be stiff or compliant.
SubDevice ** subdevices_p
const yarp::os::LogComponent & CONTROLBOARDWRAPPER()
bool setInteractionModes(int n_joints, int *joints, yarp::dev::InteractionModeEnum *modes) override
Set the interaction mode of the robot for a set of joints, values can be stiff or compliant.
virtual bool getInteractionMode(int axis, yarp::dev::InteractionModeEnum *mode)=0
Get the current interaction mode of the robot, values can be stiff or compliant.
SubDevice * getSubdevice(size_t i)
SubDeviceVector subdevices
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.
#define yCError(component,...)
bool getInteractionMode(int j, yarp::dev::InteractionModeEnum *mode) override
Get the current interaction mode of the robot, values can be stiff or compliant.
std::vector< DevicesLutEntry > lut
yarp::dev::IInteractionMode * iInteract
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.
virtual bool setInteractionMode(int axis, yarp::dev::InteractionModeEnum mode)=0
Set the interaction mode of the robot, values can be stiff or compliant.
size_t maxNumOfJointsInDevices
void printError(const std::string &func_name, const std::string &info, bool result)