Skip to main content

A vehicle collision detector

Project description

collision detection for vehicles with uncertainty in the position represented as a gaussian distribution The implementation is based on an approximate but quick and accurate method.

import collide

Functions:

collide.collides(x1, y1, x2, y2, L1, W1, theta1, L2, W2, theta2)

collide.plot(x1, y1, x2, y2, L1, W1, theta1, L2, W2, theta2)

collide.collides(x1, y1, x2, y2, L1, W1, theta1, L2, W2, theta2, cov1, cov2, method, sample_size)

variables:

x,y: position

L,W: length and width

theta: angle of the vehicle in radian

In case of uncertinity:

define cov1, cov2: 2x2 array

method: ‘s’:sampling with sample_size(has default value of 100), ‘g’ euclidean gaussian distribution, ‘e’ epsilon shadow

source-code: https://github.com/rashid1844/collides/

Change Log

0.0.1 (12/10/2020)

  • First Release

0.0.2 (13/10/2020)

  • README changes

0.0.3 (13/10/2020)

  • README changes

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

collides-0.0.4.tar.gz (4.6 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page