]> rtime.felk.cvut.cz Git - hubacji1/psp.git/blobdiff - api/psp.h
Merge branch 'feature/refactor-bfs-parallel-parking-left-parking-slot'
[hubacji1/psp.git] / api / psp.h
index 2294a5b3f4175539062ebee59cd01b86ecc634f4..70bbf79c42ee500131942f8e196f1e00ec6ad1e4 100644 (file)
--- a/api/psp.h
+++ b/api/psp.h
@@ -90,6 +90,15 @@ class PSPlanner {
                 {
                         return this->possible_goals(10, 0.5);
                 }
+                /*! \brief Shrink parking slot to perfect length.
+
+                Based on goal car dimensions, shrink `p1` and `p2`
+                towards the `p3` and `p4`. (Because backward parallel
+                parking).
+
+                NOTE: This function works for parallel parking only.
+                */
+                void shrink_to_perfect_len();
 
                 // find entry
                 /*! \brief Find entry to the parking slot.