10 /*! \brief Parking Slot Planner basic class.
12 \param cc Current bicycle car.
13 \param ps Parking slot.
24 void fe_perpendicular();
25 // find entry to slot by reverse approach
27 void fer_perpendicular();
31 /*! \brief Return `true` if there is collision.
33 If the parking slot `ps` collide with current car `cc`,
36 This method depends on `intersection` function that
37 returns `true` or `false` if two line segments collide.
38 Each line segment of current car `cc` (borders) is
39 checked to each line segment of parking slot `ps`
43 /*! \brief Return parking direction
45 Return `true` if the direction of the parking in the
49 /*! \brief Guess goal car
51 Set the goal car guessed from the parking slot.
54 /*! \brief Has current car `cc` left?
56 Return `true` if the current car `cc` left the parking
60 /*! \brief Is the goal car `gc` parked?
62 Return `true` if the goal car `gc` is inside the
66 /*! \brief Return possible starts of parking maneuver
68 When any `BicycleCar` of possible inits is reached, then
69 parking maneuver is a peace of cake.
71 \param cnt Number of inits.
72 \param dist Distance between inits.
74 std::vector<BicycleCar> possible_goals(
78 std::vector<BicycleCar> possible_goals()
80 return this->possible_goals(10, 1);
84 /*! \brief Find entry to the parking slot.
87 /*! \brief Find entry to slot by reverse approach.
89 See `Vorobieva2015` for more information.
94 BicycleCar &cc() { return this->cc_; }
95 BicycleCar &gc() { return this->gc_; }
96 ParkingSlot &ps() { return this->ps_; }