Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Collision prediction #175

Open
EricPedley opened this issue Apr 18, 2024 · 1 comment
Open

Collision prediction #175

EricPedley opened this issue Apr 18, 2024 · 1 comment
Assignees

Comments

@EricPedley
Copy link
Member

EricPedley commented Apr 18, 2024

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
Copy link
Contributor

bdoget commented Apr 26, 2024

Image_20240426_131114_186
Image_20240426_131113_956

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants