return this->slotType_;
}
+float ParallelSlot::poseHeading()
+{
+ return this->poseHeading_;
+}
+
// setter
void ParallelSlot::DH(float dh)
{
float dy = y3 - y0;
float dx = x3 - x0;
this->slotHeading_ = atan2(dy, dx);
- // slot side
+ // pose heading
float y1 = this->slot().bnodes()[1]->y();
float x1 = this->slot().bnodes()[1]->x();
+ dy = y0 - y1;
+ dx = x0 - x1;
+ this->poseHeading_ = atan2(dy, dx);
+ // slot side
if (sgn((x1 - x0) * (y3 - y0) - (y1 - y0) * (x3 - x0)) < 0)
this->slotSide_ = LEFT;
else