21 size_t subIndex =
device.
lut[j].deviceEntry;
44 for (
int j = 0; j < n_joints; j++) {
45 subIndex =
device.
lut[joints[j]].deviceEntry;
69 for (
int j = 0; j < n_joints; j++) {
70 subIndex =
device.
lut[joints[j]].deviceEntry;
75 for (
int j = 0; j < n_joints; j++) {
96 for (
size_t juser = p->
wbase, jdevice = p->
base; juser <= p->wtop; juser++, jdevice++) {
97 modes[juser] = imodes[jdevice];
119 size_t subIndex =
device.
lut[j].deviceEntry;
142 for (
int j = 0; j < n_joints; j++) {
143 subIndex =
device.
lut[joints[j]].deviceEntry;
176 size_t subIndex =
device.
lut[j].deviceEntry;
const yarp::os::LogComponent & CONTROLBOARD()
void printError(const std::string &func_name, const std::string &info, bool result)
bool setInteractionMode(int j, yarp::dev::InteractionModeEnum mode) override
Set the interaction mode of the robot, values can be stiff or compliant.
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.
bool getInteractionMode(int j, yarp::dev::InteractionModeEnum *mode) override
Get the current interaction mode of the robot, values can be stiff or compliant.
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
SubDevice ** subdevices_p
yarp::dev::IInteractionMode * iInteract
std::vector< DevicesLutEntry > lut
SubDevice * getSubdevice(size_t i)
size_t maxNumOfJointsInDevices
SubDeviceVector subdevices
virtual bool getInteractionMode(int axis, yarp::dev::InteractionModeEnum *mode)=0
Get the current interaction mode of the robot, values can be stiff or compliant.
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 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.
virtual bool setInteractionMode(int axis, yarp::dev::InteractionModeEnum mode)=0
Set the interaction mode of the robot, values can be stiff or compliant.
#define yCError(component,...)