uci-uav-forge / uavf_2024

Flight software for Student Unmanned Aerial Systems 2024 competition
MIT License
3 stars 0 forks source link

Collision prediction #175

Open EricPedley opened 5 months ago

EricPedley commented 5 months ago

image

def collision_prediction(drone_positions: list[tuple[np.ndarray, np.ndarray], current_pos: np.ndarray, current_velocity: np.ndarray, next_wp: np.ndarray) -> tuple[time_to_collision: float, no_go_zone: np.ndarray):
'''
drone_position will have each tuple being (x, covariance) where x is [x,y,z,vx,vy,vz,radius] and covariance is a 7x7 matrix describing the covariance of those estimates.

current_pos, current_velocity and next_wp are of shape (3,)

no_go_zone should be of shape (n,3) as a list of 3d points describing a convex shape.
'''
bdoget commented 5 months ago

Image_20240426_131114_186 Image_20240426_131113_956