parking_detection is a package that calculates the coordinates of an empty parking space (If there is one)
That package includes 3 nodes, kinect_freq_mod, pub_transformations and parking_detection
This node is responsible to modulate the frequency of the pointclouds publication (ex. kinect pointclouds) and to 'trim' the pointcloud at certain values (ex. z>0.5, which means that only points with a z coordinate bbigger than 0.5m are published)
Here is necessary to define the transformation matrix between the kinect frame and the axis of the robotic vehicle frame
This node is the one that is responsibe to search for an empty parking space. The conditions of what is a parking space are defined with the existance/no existance of points in four diferent volumes (represented by convexhulls); Those convexhulls change their colour from red to green, if the conditions are satisfied.
There are three important launch files on this package, parking_detection_bagplay.launch, parking_detection_bagrecord.launch and parking_detection.launch
The first one is to run the packadge from a recorded point cloud message, the second one is to recor the point cloud message, and the third one is to run the package in live action.