21 size_t subIndex =
device.
lut[j].deviceEntry;
40 for (
size_t subDev_idx = 0; subDev_idx <
device.
subdevices.size(); subDev_idx++) {
47 int wrapped_joints =
static_cast<int>((p->
top - p->
base) + 1);
48 int* joints =
new int[wrapped_joints];
52 for (
int j_dev = 0; j_dev < wrapped_joints; j_dev++) {
53 joints[j_dev] =
static_cast<int>(p->
base + j_dev);
57 j_wrap += wrapped_joints;
62 if (joints !=
nullptr) {
81 for (
int j = 0; j < n_joints; j++) {
82 subIndex =
device.
lut[joints[j]].deviceEntry;
111 size_t subIndex =
device.
lut[j].deviceEntry;
140 for (
size_t juser = p->
wbase, jdevice = p->
base; juser <= p->wtop; juser++, jdevice++) {
141 vels[juser] = references[jdevice];
166 for (
int j = 0; j < n_joints; j++) {
167 subIndex =
device.
lut[joints[j]].deviceEntry;
186 for (
int j = 0; j < n_joints; j++) {
187 subIndex =
device.
lut[joints[j]].deviceEntry;
192 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 getRefVelocity(const int joint, double *vel) override
Get the last reference speed set by velocityMove for single joint.
bool getRefVelocities(double *vels) override
Get the last reference speed set by velocityMove for all joints.
bool velocityMove(int j, double v) override
Start motion at a given speed, single joint.
int * subdev_jointsVectorLen
SubDevice ** subdevices_p
yarp::dev::IVelocityControl * vel
std::vector< DevicesLutEntry > lut
SubDevice * getSubdevice(size_t i)
size_t maxNumOfJointsInDevices
SubDeviceVector subdevices
virtual bool getRefVelocity(const int joint, double *vel)
Get the last reference speed set by velocityMove for single joint.
virtual bool velocityMove(int j, double sp)=0
Start motion at a given speed, single joint.
virtual bool getRefVelocities(double *vels)
Get the last reference speed set by velocityMove for all joints.
#define yCError(component,...)
#define yCTrace(component,...)