Coder Social home page Coder Social logo

uavheading-collisionavoidance's Introduction

UAVHeading-CollisionAvoidance

A*-based collision avoidance for UAV path planning

Table of Contents

Required Modules

Avoidance Scenarios

Head-On Collision

Head-On Collision Path Planning

Non-Head-On Collision

Non-Head-On Collision Path Planning

Simulation Results

50 m/s Head-On Collision

50 m/s Head-On

50 m/s Head-On Collision (Targeted)

50 m/s Targeted Head-On

50 m/s Perpendicular Collision Scenario

50 m/s Perpendicular

Testing

UAVHcfg.py

Configuration file for UAVHeading Class

INTERVAL_SIZE = 0.0012          # defines resolution for A* search
DISTANCE_THRESHOLD = 0.01       # upper bound distance for running UAVHeading.avoid(UAVHeading) function

DECISION_WEIGHTS = [            # weights for sidedWeightDecision in head-on avoidance scenario
    1.0,                            # UAV-0
    6.0,                            # Goal Position for UAV-0
    0.75,                           # Other UAVs
    0.25                            # KeepOut Zoness
]

SHOW_ANIMATION = False          # graph path planning search animation in avoidance function

example.py

Example Test Script

  • Import UAVHeading Class
from UAVHeading import UAVHeading
  • Initialize UAV Objects
                # (pos, waypt, speed, heading, tPossible)
uav0 = UAVHeading((1.515593587271553, -132.53722833033987),
                  (1.5156, -132.5111),
                  50.0,
                  90.0,
                  30.0)

uav1 = UAVHeading((1.5098039166143598, -132.531099),
                  (1.5267, -132.531),
                  50.0,
                  0.0,
                  30.0)
  • Run Avoidance Algorithm
waypoints, _ = uav0.avoid(uav1)

uavheading-collisionavoidance's People

Contributors

jtenglish avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

uavheading-collisionavoidance's Issues

run example.py

[HOTFIX - Line 152 | Area Length for Head-On Collision]
AVOID.


No valid path found.

Hello, how to solve this

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.