|
YARP
Yet Another Robot Platform
|
|
Go to the documentation of this file.
23 size_t subIndex =
device.
lut[j].deviceEntry;
44 for (
int subDev_idx = 0; subDev_idx < nDev; subDev_idx++) {
45 size_t subIndex =
device.
lut[j_wrap].deviceEntry;
52 int wrapped_joints =
static_cast<int>((p->
top - p->
base) + 1);
53 int* joints =
new int[wrapped_joints];
57 for (
int j_dev = 0; j_dev < wrapped_joints; j_dev++) {
58 joints[j_dev] =
static_cast<int>(p->
base + j_dev);
62 j_wrap += wrapped_joints;
67 if (joints !=
nullptr) {
87 for (
int j = 0; j < n_joints; j++) {
88 subIndex =
device.
lut[joints[j]].deviceEntry;
116 size_t subIndex =
device.
lut[j].deviceEntry;
145 for (
size_t juser = p->
wbase, jdevice = p->
base; juser <= p->wtop; juser++, jdevice++) {
146 spds[juser] = targets[jdevice];
170 for (
int j = 0; j < n_joints; j++) {
171 subIndex =
device.
lut[joints[j]].deviceEntry;
190 for (
int j = 0; j < n_joints; j++) {
191 subIndex =
device.
lut[joints[j]].deviceEntry;
196 for (
int j = 0; j < n_joints; j++) {
214 size_t subIndex =
device.
lut[j].deviceEntry;
235 size_t subIndex =
device.
lut[l].deviceEntry;
262 for (
int j = 0; j < n_joints; j++) {
263 subIndex =
device.
lut[joints[j]].deviceEntry;
291 size_t subIndex =
device.
lut[j].deviceEntry;
328 bool tmp_subdeviceDone =
true;
329 bool tmp_deviceDone =
true;
335 tmp_deviceDone &= tmp_subdeviceDone;
341 *flag = tmp_deviceDone;
358 for (
int j = 0; j < n_joints; j++) {
359 subIndex =
device.
lut[joints[j]].deviceEntry;
392 size_t subIndex =
device.
lut[j].deviceEntry;
411 for (
size_t subDev_idx = 0; subDev_idx <
device.
subdevices.size(); subDev_idx++) {
418 int wrapped_joints =
static_cast<int>((p->
top - p->
base) + 1);
419 int* joints =
new int[wrapped_joints];
423 for (
int j_dev = 0; j_dev < wrapped_joints; j_dev++) {
424 joints[j_dev] =
static_cast<int>(p->
base + j_dev);
428 j_wrap += wrapped_joints;
433 if (joints !=
nullptr) {
453 for (
int j = 0; j < n_joints; j++) {
454 subIndex =
device.
lut[joints[j]].deviceEntry;
482 size_t subIndex =
device.
lut[j].deviceEntry;
510 for (
size_t juser = p->
wbase, jdevice = p->
base; juser <= p->wtop; juser++, jdevice++) {
511 spds[juser] = references[jdevice];
535 for (
int j = 0; j < n_joints; j++) {
536 subIndex =
device.
lut[joints[j]].deviceEntry;
557 for (
int j = 0; j < n_joints; j++) {
558 subIndex =
device.
lut[joints[j]].deviceEntry;
563 for (
int j = 0; j < n_joints; j++) {
virtual bool positionMove(int j, double ref)=0
Set new reference point for a single axis.
yarp::dev::IPositionControl * pos
bool getTargetPosition(const int joint, double *ref) override
Get the last position reference for the specified axis.
bool positionMove(int j, double ref) override
Set new reference point for a single axis.
int * subdev_jointsVectorLen
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 getRefSpeeds(double *spds)=0
Get reference speed of 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.
SubDevice ** subdevices_p
const yarp::os::LogComponent & CONTROLBOARDWRAPPER()
bool getTargetPositions(double *refs) override
Get the last position reference for all axes.
virtual bool getRefSpeed(int j, double *ref)=0
Get reference speed for a joint.
virtual bool checkMotionDone(int j, bool *flag)=0
Check if the current trajectory is terminated.
SubDevice * getSubdevice(size_t i)
SubDeviceVector subdevices
bool getRefSpeed(int j, double *ref) override
Get reference speed for a joint.
virtual bool relativeMove(int j, double delta)=0
Set relative position.
virtual bool getTargetPositions(double *refs)
Get the last position reference for all axes.
#define yCError(component,...)
std::vector< DevicesLutEntry > lut
virtual bool setRefSpeeds(const double *spds)=0
Set reference speed on all joints.
bool getRefSpeeds(double *spds) override
Get reference speed of all joints.
bool setRefSpeeds(const double *spds) override
Set reference speed on all joints.
virtual bool getTargetPosition(const int joint, double *ref)
Get the last position reference for the specified axis.
bool relativeMove(int j, double delta) override
Set relative position.
size_t maxNumOfJointsInDevices
bool checkMotionDone(int j, bool *flag) override
Check if the current trajectory is terminated.
void printError(const std::string &func_name, const std::string &info, bool result)