Skip to main content

NDCurves

Pipeline status Coverage report PyPI version Code style: black pre-commit.ci status

A template-based Library for creating curves of arbitrary order and dimension, eventually subject to derivative constraints. The main use of the library is the creation of end-effector trajectories for legged robots.

To do so, tools are provided to:

  • create exact splines of arbitrary order (that pass exactly by an arbitrary number waypoints)
  • constrain initial / end velocities and acceleration for the spline.
  • constrain take-off and landing phases to follow a straight line along a given normal (to avoid undesired collisions between the effector and the contact surface)
  • automatically handle 3d rotation of the effector.
  • create curves in SO3
  • support partial symbolic differentiation of curves. You can represent control points as linear variables, and integrate / differentiate those variable curves. You can also compute the cross product of two curves, which is relevant for centroidal dynamics.

Several type of formulation are provided:

  • Polynomials
  • Bezier
  • Hermite (only cubic hermite for now)

The library is template-based, thus generic: the curves can be of any dimension, and can be implemented in double or float and can work with kind variables like Vector, Transform, Matrix, ...

Installation

This package is available as binary in robotpkg

Dependencies

Additional dependencies for python bindings

To handle this with cmake, use the recursive option to clone the repository. For instance, using http:

git clone --recursive https://github.com/loco-3d/ndcurves $NDCURVES_DIR

Where $NDCURVES_DIR is to be replaced to your selected source folder. The library is header only, so the build only serves to build the tests and python bindings:

cd $NDCURVES_DIR && mkdir build && cd build
cmake -DBUILD_PYTHON_INTERFACE=ON .. && make && make test

Switch the BUILD_PYTHON argument to OFF if you don't want to use the python bindings of the package.

If everything went fine you should obtain the following output:

100% tests passed, 0 tests failed out of 3

Optional: Python bindings installation

To install the Python bindings first enable the BUILD_PYTHON_INTERFACE option:

cmake -DBUILD_PYTHON_INTERFACE=ON ..

Then rebuild the library:

cd ${NDCURVES_DIR}/build
make && make test

To see example of use, you can refer to the test file which is rather self explanatory:

In spite of an exhaustive documentation, please refer to the C++ documentation, which mostly applies to python.

Documentation and tutorial

For the C++ / Python detailed documentation, you can consult this pdf available in the doc folder

For a python tutorial, you can refer to the jupyter notebook. The test file is more exhaustive and rather self explanatory.

Citation

If you wish to cite this work please use the bibtex below:

@software{ndcurves,
  author = {Tonneau, Steve and Chemin, Jason and Fernbach, Pierre and Saurel, Guilhem},
  title = {ndcurves},
  url = {https://github.com/loco-3d/ndcurves},
  year = {2013}
}

Metadata

Release files for ndcurves 1.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for ndcurves 1.2.0
File Actions
ndcurves-1.2.0-2-pp39-pypy39_pp73-macosx_11_0_arm64.whl PyPy 3.9 PyPy 3.9 7.3 macOS 11.0+ ARM64 Details for ndcurves-1.2.0-2-pp39-pypy39_pp73-macosx_11_0_arm64.whl
ndcurves-1.2.0-2-pp38-pypy38_pp73-macosx_11_0_arm64.whl PyPy 3.8 PyPy 3.8 7.3 macOS 11.0+ ARM64 Details for ndcurves-1.2.0-2-pp38-pypy38_pp73-macosx_11_0_arm64.whl
ndcurves-1.2.0-2-cp311-cp311-macosx_11_0_arm64.whl CPython 3.11 CPython 3.11 macOS 11.0+ ARM64 Details for ndcurves-1.2.0-2-cp311-cp311-macosx_11_0_arm64.whl
ndcurves-1.2.0-2-cp310-cp310-macosx_11_0_arm64.whl CPython 3.10 CPython 3.10 macOS 11.0+ ARM64 Details for ndcurves-1.2.0-2-cp310-cp310-macosx_11_0_arm64.whl
ndcurves-1.2.0-2-cp39-cp39-macosx_11_0_arm64.whl CPython 3.9 CPython 3.9 macOS 11.0+ ARM64 Details for ndcurves-1.2.0-2-cp39-cp39-macosx_11_0_arm64.whl

Total release size: 6.3 MB

Release files / ndcurves-1.2.0-2-pp39-pypy39_pp73-macosx_11_0_arm64.whl

Download URL ndcurves-1.2.0-2-pp39-pypy39_pp73-macosx_11_0_arm64.whl
Size 1.3 MB
Tags PyPy 3.9 PyPy 3.9 7.3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
18de319c8095e78066c5751375f8b4b09ea5af9b4fc665fcd4b3d3261358f440
BLAKE2b-256 checksum
How to use checksums
152793deb5f2a815b81711c85bf79d6c92c66c66e16a7440c76cfc8825e99d73
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.6

Release files / ndcurves-1.2.0-2-pp38-pypy38_pp73-macosx_11_0_arm64.whl

Download URL ndcurves-1.2.0-2-pp38-pypy38_pp73-macosx_11_0_arm64.whl
Size 1.3 MB
Tags PyPy 3.8 PyPy 3.8 7.3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
66fa8f0910cc4951bd833f96afec867ca3b761497f66976e41649c41a7defbe1
BLAKE2b-256 checksum
How to use checksums
1b2a8f957a71616c7f856d19bbe55e9d13c312dfe8f308025367eb261abb3588
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.6

Release files / ndcurves-1.2.0-2-cp311-cp311-macosx_11_0_arm64.whl

Download URL ndcurves-1.2.0-2-cp311-cp311-macosx_11_0_arm64.whl
Size 1.3 MB
Tags CPython 3.11 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
da8d9e61683710a09f861434f81529b207193ec42d2bf909a1622668bf81f471
BLAKE2b-256 checksum
How to use checksums
587081281c5af54db686b3973089dab9ff30da30ee5997792100007c951c1a62
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.6

Release files / ndcurves-1.2.0-2-cp310-cp310-macosx_11_0_arm64.whl

Download URL ndcurves-1.2.0-2-cp310-cp310-macosx_11_0_arm64.whl
Size 1.3 MB
Tags CPython 3.10 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
b700dcdb198bc8375b51d8b446f74f7840251fb7131ea9bd906135edc1d6c1b4
BLAKE2b-256 checksum
How to use checksums
4877871310bd59b61cbf1435d8edd02dcea95789ca7a14b0b5a593ef8009b7a3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.6

Release files / ndcurves-1.2.0-2-cp39-cp39-macosx_11_0_arm64.whl

Download URL ndcurves-1.2.0-2-cp39-cp39-macosx_11_0_arm64.whl
Size 1.3 MB
Tags CPython 3.9 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
752bc35a130c3595f7f38c95d8fdb502923e632d8a46fe8e2df555200114d663
BLAKE2b-256 checksum
How to use checksums
0ee66643e436e8e1b4dc537be6542889bf5257de09b7fc5cae7f44c407d2a9ff
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.6

Security for ndcurves 1.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page