10 /*! \brief Parking Slot Planner basic class.
12 \param cc Current bicycle car.
13 \param ps Parking slot.
22 unsigned int c_ = 0; // number of cusps
26 void fe_perpendicular();
27 // find entry to slot by reverse approach
29 void fer_perpendicular();
33 /*! \brief Return `true` if there is collision.
35 If the parking slot `ps` collide with current car `cc`,
38 This method depends on `intersection` function that
39 returns `true` or `false` if two line segments collide.
40 Each line segment of current car `cc` (borders) is
41 checked to each line segment of parking slot `ps`
45 /*! \brief Return parking direction
47 Return `true` if the direction of the parking in the
51 /*! \brief Guess goal car
53 Set the goal car guessed from the parking slot.
56 /*! \brief Has current car `cc` left?
58 Return `true` if the current car `cc` left the parking
62 /*! \brief Is the goal car `gc` parked?
64 Return `true` if the goal car `gc` is inside the
68 /*! \brief Return possible starts of parking maneuver
70 When any `BicycleCar` of possible inits is reached, then
71 parking maneuver is a peace of cake.
73 \param cnt Number of inits.
74 \param dist Distance between inits.
76 std::vector<BicycleCar> possible_goals(
80 std::vector<BicycleCar> possible_goals()
82 return this->possible_goals(10, 1);
86 /*! \brief Find entry to the parking slot.
89 /*! \brief Find entry to slot by reverse approach.
91 See `Vorobieva2015` for more information.
96 BicycleCar &cc() { return this->cc_; }
97 BicycleCar &gc() { return this->gc_; }
98 ParkingSlot &ps() { return this->ps_; }
100 unsigned int c() const { return this->c_; }