]> rtime.felk.cvut.cz Git - hubacji1/psp.git/blobdiff - api/psp.h
Rename `possible_inits` to `possible_goals`
[hubacji1/psp.git] / api / psp.h
index 26a8c0e54bfe114b6ad286999c27aa626588ceb0..91e0b9c07a35e3fe3ce638f71832298c45fdbbbd 100644 (file)
--- a/api/psp.h
+++ b/api/psp.h
@@ -19,11 +19,14 @@ class PSPlanner {
                 BicycleCar gc_;
                 ParkingSlot ps_;
 
-                // find entry to slot by reverse approach
+                // find entry to slot
                 void fe_parallel();
                 void fe_perpendicular();
+                // find entry to slot by reverse approach
                 void fer_parallel();
                 void fer_perpendicular();
+                // set goal car
+                void gc_to_4();
         public:
                 /*! \brief Return `true` if there is collision.
 
@@ -65,12 +68,16 @@ class PSPlanner {
                 When any `BicycleCar` of possible inits is reached, then
                 parking maneuver is a peace of cake.
 
+                \param cnt Number of inits.
                 \param dist Distance between inits.
                 */
-                std::vector<BicycleCar> possible_inits(double dist);
-                std::vector<BicycleCar> possible_inits()
+                std::vector<BicycleCar> possible_goals(
+                        unsigned int cnt,
+                        double dist
+                );
+                std::vector<BicycleCar> possible_goals()
                 {
-                        return this->possible_inits(1);
+                        return this->possible_goals(10, 1);
                 }
 
                 // find entry