slot is forward.
*/
bool forward();
+ /*! \brief Guess goal car
+
+ Set the goal car guessed from the parking slot.
+ */
+ void guess_gc();
/*! \brief Has current car `cc` left?
Return `true` if the current car `cc` left the parking
{
PSPlanner psp;
psp.ps().border(3, 3, 5, 3, 5, 8, 3, 8);
- psp.gc().x(4);
- psp.gc().y(4);
- psp.gc().h(M_PI / 2);
psp.gc().mtr(10);
psp.gc().wb(2);
psp.gc().w(1);
psp.gc().he(1.5);
psp.gc().df(2 + 0.5);
psp.gc().dr(0.5);
+ psp.guess_gc();
psp.cc() = BicycleCar(psp.gc());
// init orientation
{
PSPlanner psp;
psp.ps().border(3, 3, 8, 3, 8, 5, 3, 5);
- psp.gc().x(7);
- psp.gc().y(4);
- psp.gc().h(M_PI);
psp.gc().mtr(10);
psp.gc().wb(2);
psp.gc().w(1);
psp.gc().he(1.5);
psp.gc().df(2 + 0.5);
psp.gc().dr(0.5);
+ psp.guess_gc();
psp.cc() = BicycleCar(psp.gc());
// init orientation