Skip to content

Python bindings for sentry's pathfinding source code. May be different than what runs on the robot because there is no fancy CI/CD here.

Notifications You must be signed in to change notification settings

TAMU-Robomasters/pathfinding_python

Repository files navigation

Setup

  • Make sure you have a c++ compiler installed
    • Windows: I've had success using the MSVC 2022 compiler toolset. DON'T use a "developer command prompt" when you run the commands below
  • Install uv
    • Mac/Linux/WSL curl -LsSf https://astral.sh/uv/install.sh | sh
    • Windows powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"

Warning

You may have to restart your Windows machine after installing uv

  • sync environment uv sync
  • run code uv run test.py

How to Edit Dependencies for "test.py"

The --dev flag adds a package as a local development dependency. When another application depends on pathfinding, only project dependencies are installed.

  • Add uv add --dev "[package-name] [lower-num]>=, <[higher-num]"
  • Remove uv remove --dev [package-name]

How to use

Bindings exposes the classes:

  • Point
  • VizGraph

VizGraph has a search method. Use constructVizGraph to build viz graphs

About

Python bindings for sentry's pathfinding source code. May be different than what runs on the robot because there is no fancy CI/CD here.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •