This package functionality is to detect free spots on the parking site. Provides API for retrieving coordinates of detected free parking places.
External dependencies:
geometry_msgsnav_msgssensor_msgsstd_srvs
To build from source, clone the latest version from the repository into your workspace and compile the package using:
cd workspace/src
git clone https://github.com/pawelir/parking_patrol.git
cd ../
rosdep update
rosdep install -i --from-paths src -y
colcon build --symlink-installNote: ROS should be sourced before: source /opt/ros/<your-distro>/setup.bash
Launch the core functionality with:
ros2 launch parking_patrol parking_patrol.launch.py- parking_patrol.yaml - config file allowing the node parameters settings
- parking_patrol.launch.py - main launch file launching the whole functionality
High level node providing API for restarting detection process and retrieving the data after scanning.
-
~/restart_patrolstd_srvs/Trigger - Trigger cleaning detection bufferros2 service call /parking_patrol_node/restart_patrol std_srvs/srv/Trigger "{}" -
~/finish_patrolparking_patrol_msgs/FreeSpots - Get detected parking spotsros2 service call /parking_patrol_node/finish_patrol parking_patrol_msgs/srv/FreeSpots "{}"
| Name | Type | Default value | Description |
|---|---|---|---|
lidar_angular_resolution |
float | 1.0 | LIDAR angular resolution - depends on your simulation settings or hardware specification |
spot_depth |
float | 0.7 | Spot characteristics - spot depth [m] |
spot_width |
float | 0.4 | Spot characteristics - spot width [m] |
Node responsible only for detecting free spots in the neighborhood.
/odomnav_msgs/msg/Odometry/scansensor_msgs/msg/LaserScan/imusensor_msgs/msg/Imu