20 size_t subIndex =
device.
lut[j].deviceEntry;
41 for (
int subDev_idx = 0; subDev_idx < nDev; subDev_idx++) {
42 size_t subIndex =
device.
lut[j_wrap].deviceEntry;
49 int wrapped_joints =
static_cast<int>((p->
top - p->
base) + 1);
50 int* joints =
new int[wrapped_joints];
54 for (
int j_dev = 0; j_dev < wrapped_joints; j_dev++) {
55 joints[j_dev] =
static_cast<int>(p->
base + j_dev);
59 j_wrap += wrapped_joints;
64 if (joints !=
nullptr) {
84 for (
int j = 0; j < n_joints; j++) {
85 subIndex =
device.
lut[joints[j]].deviceEntry;
113 size_t subIndex =
device.
lut[j].deviceEntry;
142 for (
size_t juser = p->
wbase, jdevice = p->
base; juser <= p->wtop; juser++, jdevice++) {
143 spds[juser] = targets[jdevice];
167 for (
int j = 0; j < n_joints; j++) {
168 subIndex =
device.
lut[joints[j]].deviceEntry;
187 for (
int j = 0; j < n_joints; j++) {
188 subIndex =
device.
lut[joints[j]].deviceEntry;
193 for (
int j = 0; j < n_joints; j++) {
211 size_t subIndex =
device.
lut[j].deviceEntry;
232 size_t subIndex =
device.
lut[l].deviceEntry;
259 for (
int j = 0; j < n_joints; j++) {
260 subIndex =
device.
lut[joints[j]].deviceEntry;
288 size_t subIndex =
device.
lut[j].deviceEntry;
325 bool tmp_subdeviceDone =
true;
326 bool tmp_deviceDone =
true;
332 tmp_deviceDone &= tmp_subdeviceDone;
338 *flag = tmp_deviceDone;
355 for (
int j = 0; j < n_joints; j++) {
356 subIndex =
device.
lut[joints[j]].deviceEntry;
389 size_t subIndex =
device.
lut[j].deviceEntry;
408 for (
size_t subDev_idx = 0; subDev_idx <
device.
subdevices.size(); subDev_idx++) {
415 int wrapped_joints =
static_cast<int>((p->
top - p->
base) + 1);
416 int* joints =
new int[wrapped_joints];
420 for (
int j_dev = 0; j_dev < wrapped_joints; j_dev++) {
421 joints[j_dev] =
static_cast<int>(p->
base + j_dev);
425 j_wrap += wrapped_joints;
430 if (joints !=
nullptr) {
450 for (
int j = 0; j < n_joints; j++) {
451 subIndex =
device.
lut[joints[j]].deviceEntry;
479 size_t subIndex =
device.
lut[j].deviceEntry;
507 for (
size_t juser = p->
wbase, jdevice = p->
base; juser <= p->wtop; juser++, jdevice++) {
508 spds[juser] = references[jdevice];
532 for (
int j = 0; j < n_joints; j++) {
533 subIndex =
device.
lut[joints[j]].deviceEntry;
554 for (
int j = 0; j < n_joints; j++) {
555 subIndex =
device.
lut[joints[j]].deviceEntry;
560 for (
int j = 0; j < n_joints; j++) {
const yarp::os::LogComponent & CONTROLBOARD()
void printError(const std::string &func_name, const std::string &info, bool result)
bool getTargetPositions(double *refs) override
Get the last position reference for all axes.
bool getRefSpeeds(double *spds) override
Get reference speed of all joints.
bool getRefSpeed(int j, double *ref) override
Get reference speed for a joint.
bool getTargetPosition(const int joint, double *ref) override
Get the last position reference for the specified axis.
bool checkMotionDone(int j, bool *flag) override
Check if the current trajectory is terminated.
bool positionMove(int j, double ref) override
Set new reference point for a single axis.
bool relativeMove(int j, double delta) override
Set relative position.
bool setRefSpeeds(const double *spds) override
Set reference speed on all joints.
bool setRefSpeed(int j, double sp) override
Set reference speed for a joint, this is the speed used during the interpolation of the trajectory.
int * subdev_jointsVectorLen
SubDevice ** subdevices_p
yarp::dev::IPositionControl * pos
std::vector< DevicesLutEntry > lut
size_t maxNumOfJointsInDevices
SubDeviceVector subdevices
SubDevice * getSubdevice(size_t i)
virtual bool setRefSpeed(int j, double sp)=0
Set reference speed for a joint, this is the speed used during the interpolation of the trajectory.
virtual bool relativeMove(int j, double delta)=0
Set relative position.
virtual bool getTargetPosition(const int joint, double *ref)
Get the last position reference for the specified axis.
virtual bool setRefSpeeds(const double *spds)=0
Set reference speed on all joints.
virtual bool checkMotionDone(int j, bool *flag)=0
Check if the current trajectory is terminated.
virtual bool getRefSpeeds(double *spds)=0
Get reference speed of all joints.
virtual bool getRefSpeed(int j, double *ref)=0
Get reference speed for a joint.
virtual bool positionMove(int j, double ref)=0
Set new reference point for a single axis.
virtual bool getTargetPositions(double *refs)
Get the last position reference for all axes.
#define yCError(component,...)