X-Git-Url: https://rtime.felk.cvut.cz/gitweb/hubacji1/psp.git/blobdiff_plain/80dc0a1da91d86912938881c916854e23b0d167c..262ca6bf5b1dedba858e0d65fd7df8b4c19e9b5e:/api/psp.h diff --git a/api/psp.h b/api/psp.h index 26a8c0e..4c71d3e 100644 --- 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 possible_inits(double dist); + std::vector possible_inits( + unsigned int cnt, + double dist + ); std::vector possible_inits() { - return this->possible_inits(1); + return this->possible_inits(10, 1); } // find entry