|
YARP
Yet Another Robot Platform
|
|
Go to the documentation of this file.
23 size_t subIndex =
device.
lut[j].deviceEntry;
49 for (
size_t juser = p->
wbase, jdevice = p->
base; juser <= p->wtop; juser++, jdevice++) {
50 modes[juser] = all_mode[jdevice];
68 for (
int l = 0; l < n_joint; l++) {
70 size_t subIndex =
device.
lut[joints[l]].deviceEntry;
97 size_t subIndex =
device.
lut[j].deviceEntry;
121 for (
int j = 0; j < n_joints; j++) {
122 subIndex =
device.
lut[joints[j]].deviceEntry;
147 for (
int subDev_idx = 0; subDev_idx < nDev; subDev_idx++) {
148 size_t subIndex =
device.
lut[j_wrap].deviceEntry;
154 int wrapped_joints =
static_cast<int>((p->
top - p->
base) + 1);
155 int* joints =
new int[wrapped_joints];
159 for (
int j_dev = 0; j_dev < wrapped_joints; j_dev++) {
160 joints[j_dev] =
static_cast<int>(p->
base + j_dev);
164 j_wrap += wrapped_joints;
167 if (joints !=
nullptr) {
bool setControlModes(const int n_joints, const int *joints, int *modes) override
Set the current control mode for a subset of axes.
bool getControlMode(int j, int *mode) override
Get the current control mode.
virtual bool getControlMode(int j, int *mode)=0
Get 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).
yarp::dev::IControlMode * iMode
int * subdev_jointsVectorLen
SubDevice ** subdevices_p
bool setControlMode(const int j, const int mode) override
Set the current control mode.
const yarp::os::LogComponent & CONTROLBOARDWRAPPER()
SubDevice * getSubdevice(size_t i)
SubDeviceVector subdevices
#define yCError(component,...)
virtual bool setControlMode(const int j, const int mode)=0
Set the current control mode.
std::vector< DevicesLutEntry > lut
bool getControlModes(int *modes) override
Get the current control mode (multiple joints).
size_t maxNumOfJointsInDevices
void printError(const std::string &func_name, const std::string &info, bool result)