Skip to main content

pypath : A* pathfinding algorithm wrote in C++ for python

Build status

The goal of this project is to provide a fast and efficient python library that can find a path given a list of obstacle.

This module was originally developed for EIRBOT the robotic club of the engineer school Enseirb-Matmeca(French school).

REQUIREMENTS

You will need g++ in order to install pypath-fpa!

Avaliables constructors

  • Coordinates(x,y)
  • Size(width,height)
  • Rectangle(Coordinates,Size)
  • Castar()
  • Field()
  • Field(int robot_diameter)
  • Field(int width, int height, int robot_diameter)

Documentation

Click HERE!

How to use

Here is a simple example :

    field = Field(20)
    castar = Castar()
    field.add_obstacle(Rectangle(Coordinates(60,20), Size(2,40)))
    field.add_obstacle(Rectangle(Coordinates(150,40), Size(10,40)))
    field.add_obstacle(Rectangle(Coordinates(80,80), Size(200,2)))
    err, path = castar.find_path_simplified(Coordinates(10,10), Coordinates(10,100), field)
    if err == 0:
        foo(path)
    field.delete_obstacle(Coordinates(10,40))

Author

CLUZEL Baptiste

Download files

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

Source Distribution

pypath-fpa-0.2.8.tar.gz (141.6 kB view details)

Uploaded Source

File details

Details for the file pypath-fpa-0.2.8.tar.gz.

File metadata

  • Download URL: pypath-fpa-0.2.8.tar.gz
  • Upload date:
  • Size: 141.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.8.5

File hashes

Hashes for pypath-fpa-0.2.8.tar.gz
Algorithm Hash digest
SHA256 963271cf6af88c7b61a0f69c28841a600595d295f563c15216f727a744a8e326
MD5 fdab0b176cc4fc52539b05261bc90d01
BLAKE2b-256 e6d6582f480f5bfd0d43af0691ca70775d5493944f74bc6985251edf13bc0107

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page