|
YARP
Yet Another Robot Platform
|
|
Go to the documentation of this file.
24 size_t subIndex =
device.
lut[j].deviceEntry;
43 for (
size_t subDev_idx = 0; subDev_idx <
device.
subdevices.size(); subDev_idx++) {
50 int wrapped_joints =
static_cast<int>((p->
top - p->
base) + 1);
51 int* joints =
new int[wrapped_joints];
55 for (
int j_dev = 0; j_dev < wrapped_joints; j_dev++) {
56 joints[j_dev] =
static_cast<int>(p->
base + j_dev);
60 j_wrap += wrapped_joints;
65 if (joints !=
nullptr) {
84 for (
int j = 0; j < n_joints; j++) {
85 subIndex =
device.
lut[joints[j]].deviceEntry;
114 size_t subIndex =
device.
lut[j].deviceEntry;
143 for (
size_t juser = p->
wbase, jdevice = p->
base; juser <= p->wtop; juser++, jdevice++) {
144 vels[juser] = references[jdevice];
169 for (
int j = 0; j < n_joints; j++) {
170 subIndex =
device.
lut[joints[j]].deviceEntry;
189 for (
int j = 0; j < n_joints; j++) {
190 subIndex =
device.
lut[joints[j]].deviceEntry;
195 for (
int j = 0; j < n_joints; j++) {
yarp::dev::IVelocityControl * vel
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.
int * subdev_jointsVectorLen
virtual bool getRefVelocity(const int joint, double *vel)
Get the last reference speed set by velocityMove for single joint.
bool velocityMove(int j, double v) override
Start motion at a given speed, single joint.
SubDevice ** subdevices_p
const yarp::os::LogComponent & CONTROLBOARDWRAPPER()
SubDevice * getSubdevice(size_t i)
SubDeviceVector subdevices
#define yCError(component,...)
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.
std::vector< DevicesLutEntry > lut
#define yCTrace(component,...)
size_t maxNumOfJointsInDevices
void printError(const std::string &func_name, const std::string &info, bool result)