Skip to main content

Dynotree - Dynamic Kd tree

Project description

Dynotree

pre-commit C/C++ CI PyPI version

Dynamic Kd-Tree in C++ and Python: Euclidean, SO(2), SO(3) and more!

The underlying KD-tree implementation is based on bucket-pr-kdtree, but dynotree supports non-Euclidean spaces and custom compound spaces. State spaces can be defined at both compile and runtime for both efficiency and flexibility.

The C++ library is header-only, with Eigen as single dependency, and we provide Python bindings for fast development and prototyping.

Try it out!

PYTHON

PIP Package

pip3 install dynotree

A first example: rrt_free.py

A second example: rrt.py

Python from source

C++

Test and examples are in main.cpp

git clone --recurse-submodules https://github.com/quimortiz/dyn_kdtree
cd dyn_kdtree
mkdir build
cd build
cmake ..
make
./main

use

./main --run_test=NAME_OF_TEST

to run only one example or test

Development

Create Python Package (locally)

Create wheels

CMAKE_ARGS="-DBUILD_PYTHON_BINDINGS=1" python3 -m build

Wheels will be in dist/ directory. Install the wheels with (adjust package and python version accordingly)

pip3 install dist/dynotree-0.0.4-cp38-cp38-linux_x86_64.whl 

Create Python Package and Upload to PYPI (locally)

Create wheels

for publishing in pypi

docker pull quay.io/pypa/manylinux2014_x86_64
docker run -it -v $(pwd):/io quay.io/pypa/manylinux2014_x86_64 /io/build-wheels.sh
python3 -m twine upload wheelhouse/*

upload to testpypi

python3 -m twine upload --repository testpypi wheelhouse/*

for creating local package:

TODO

Why dyn_kdtree?

  • Faster than OMPL and simpler than NIGH
  • Dynamic: Add points one by one -- Ideal for Motion Planning
  • Support Euclidean, SO(2), SO(3) and any combination
  • Performant and flexible C++ code based on Eigen.
  • Single Header File
  • Python Bindings for easy integration
  • Extendable with custom spaces!

Python Bindings

Option 1

Option 2

Option 3

Dependencies

Python: No dependencies

C++ Code: Eigen

Develop: Eigen and Boost Testing

Interface

See this for examples.

Benchmark

Check this repo for benchmark against

Roadmap

Code is Stable, currently used in ...

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

dynotree-0.0.5-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (244.3 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

dynotree-0.0.5-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (242.8 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

dynotree-0.0.5-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (243.5 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64

dynotree-0.0.5-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (243.3 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.17+ x86-64

File details

Details for the file dynotree-0.0.5-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for dynotree-0.0.5-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b27b34435861c4f3e50c6403d81e44c3cdde1a877e0362222a05b283d8aa2854
MD5 096d46461bae0561e7103e2dfd881615
BLAKE2b-256 00e7c84ba6e6c9e636ed2e841a2f3c46f6c4b90492d068bb25a4bf5415cb52d0

See more details on using hashes here.

File details

Details for the file dynotree-0.0.5-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for dynotree-0.0.5-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 5856abc036ecec35f55c24114a8e3b95d4f412eea0826304c7f04944c3d0e0d9
MD5 0ce4f46c713fbe0e0eab49111dc29c28
BLAKE2b-256 4eb8e8b1aa28d6968bb611117f05b4bdbf1276c3ebeee9356dad3eb06d67290b

See more details on using hashes here.

File details

Details for the file dynotree-0.0.5-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for dynotree-0.0.5-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ee921dacfbde2bd82722a8d39553ef91799c15461eb01044b8040224b53adab2
MD5 8e45035aa5b1e1caf2ea51413274c4da
BLAKE2b-256 936592023de73152d2eb9779228903892cff514d60e1911bd009e844625e4b5a

See more details on using hashes here.

File details

Details for the file dynotree-0.0.5-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for dynotree-0.0.5-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 2ad0de63a922a712b30a4fcf358a2127c1faa9f1a32277bff2920fe6cca85434
MD5 9c4debf2831350ed378065245580d6e8
BLAKE2b-256 fecf84dfc0c97b1a4f5650b7c7a9eceb44fa4fd48f8e7894f08cf0dc3c14bc3d

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 Pingdom Monitoring Sentry Error logging StatusPage Status page