pypath : A* pathfinding algorithm wrote in C++ for python
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_mm) Field(int width_mm, int height_mm, int robot_diameter_mm)
Documentation
TODO !
How to use
Here is a simple example :
field = Field(200)
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.1.3.tar.gz
(140.6 kB
view details)
File details
Details for the file pypath-fpa-0.1.3.tar.gz.
File metadata
- Download URL: pypath-fpa-0.1.3.tar.gz
- Upload date:
- Size: 140.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.1 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6a6e4f413aa5ebb9f5485c225833ab0c057bce863468b839ac51a347b3d5549e
|
|
| MD5 |
a8efdd23be7c4ea5ca1c6406c6337c98
|
|
| BLAKE2b-256 |
331db07d40a2c88da19bfab6a8aa0e5caf9bbb93fb01c63a72b006b0b808619b
|