p = B->move(CC, -i * di * 0.01 / CC->diag_radi());
}
}
+
+struct SamplingInfo ParallelSlot::getSamplingInfo()
+{
+ struct SamplingInfo si;
+ si.x = this->slot().bnodes()[0]->x();
+ si.y = this->slot().bnodes()[0]->y();
+ si.r = BCAR_LENGTH;
+ si.h = 3 * M_PI / 2 - acos(EDIST( // TODO generalize
+ this->slot().bnodes()[0],
+ this->slot().bnodes()[1]
+ ) / BCAR_LENGTH);
+ return si;
+}
PERPENDICULAR
};
+struct SamplingInfo {
+ float x;
+ float y;
+ float r;
+ float h;
+};
+
class ParallelSlot {
private:
float DH_ = 0.01;
);
/** Test possible init poses */
void fpose();
+ /** Return values to set sampling function of RRT */
+ struct SamplingInfo getSamplingInfo();
};
#endif