This assesment simulates three drones flying in a 3D space with conflict avoidance system. It detects potential conflicts between the primary and simulated drones, reports them and adjusts the waypoint's accordingly while minimizing the change in area.
- Collision Detection: Identifies close approaches within the threshold.
- Area Calculation: Calculates the area using vector cross product between the waypoints.
- Path Adjustment: Adjusts the path with an offset to avoid collisions.
- Python 3
- numpy
- matplotlib
- ffmpeg (animation)
- Run python collision_avoidance_system_multi.ipynb
- Console will display: area calculations, collision detection results, path adjustment vector, area difference
- Animation will be saved in the same folder in the name of collision_avoidance_test.mp4
- The parameters of the drone are mutable.
- Eg: primary_drone = { "name": "Primary Drone", "waypoints": [(0.6, 0, 0), (1, 0, 0), (1, 0, 1), (0, 1, 0.4)], "t_start": 0, # Start time (seconds) "t_end": 5, # End time (seconds) "color": "red" }
- Another file is present in the name of collision_avoidance_system_wo_intersection.ipynb in which the waypoints of the primary drone are modified such that it does not intersect with the other simulated drones path, just to show an example. (without conflict)