20 size_t subIndex =
device.
lut[j].deviceEntry;
46 for (
size_t juser = p->
wbase, jdevice = p->
base; juser <= p->wtop; juser++, jdevice++) {
47 modes[juser] = all_mode[jdevice];
65 for (
int l = 0; l < n_joint; l++) {
67 size_t subIndex =
device.
lut[joints[l]].deviceEntry;
94 size_t subIndex =
device.
lut[j].deviceEntry;
118 for (
int j = 0; j < n_joints; j++) {
119 subIndex =
device.
lut[joints[j]].deviceEntry;
144 for (
int subDev_idx = 0; subDev_idx < nDev; subDev_idx++) {
145 size_t subIndex =
device.
lut[j_wrap].deviceEntry;
151 int wrapped_joints =
static_cast<int>((p->
top - p->
base) + 1);
152 int* joints =
new int[wrapped_joints];
156 for (
int j_dev = 0; j_dev < wrapped_joints; j_dev++) {
157 joints[j_dev] =
static_cast<int>(p->
base + j_dev);
161 j_wrap += wrapped_joints;
164 if (joints !=
nullptr) {
const yarp::os::LogComponent & CONTROLBOARD()
void printError(const std::string &func_name, const std::string &info, bool result)
bool getControlModes(int *modes) override
Get the current control mode (multiple joints).
bool setControlMode(const int j, const int mode) override
Set the current control mode.
bool getControlMode(int j, int *mode) override
Get the current control mode.
bool setControlModes(const int n_joints, const int *joints, int *modes) override
Set the current control mode for a subset of axes.
int * subdev_jointsVectorLen
SubDevice ** subdevices_p
yarp::dev::IControlMode * iMode
std::vector< DevicesLutEntry > lut
SubDevice * getSubdevice(size_t i)
size_t maxNumOfJointsInDevices
SubDeviceVector subdevices
virtual bool setControlMode(const int j, const int mode)=0
Set the current control mode.
virtual bool setControlModes(const int n_joint, const int *joints, int *modes)=0
Set the current control mode for a subset of axes.
virtual bool getControlModes(int *modes)=0
Get the current control mode (multiple joints).
virtual bool getControlMode(int j, int *mode)=0
Get the current control mode.
#define yCError(component,...)