Library for creating smooth cubic splines
Project description
NDCurves
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}
}
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
Hashes for ndcurves-1.3.0-1-pp39-pypy39_pp73-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0625479c80767508106bd94d125bb7902d650af827e5c9768c5c3ebfee225fc8 |
|
MD5 | 3461674fdc73f6d4451bf2decdaa9dcf |
|
BLAKE2b-256 | 134cbd7f6bb7e34def33fcd992dc95b16e9f930b20ede75539aac4320cc2b199 |
Hashes for ndcurves-1.3.0-1-pp38-pypy38_pp73-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bd28c84cb2a8c725e88d963ad9ea913f038021cb97745e56143a57724814b314 |
|
MD5 | 85101fb33553ab45c7eaed454814ef76 |
|
BLAKE2b-256 | bfed1057dcee6b26a2d59a092a182f416694475aa2478f191c33eaa74e925d2c |
Hashes for ndcurves-1.3.0-1-cp311-cp311-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 09241161d8ba32b6209c5a1556e06bbf8c68147eca45975d5d4860fa18d10d4b |
|
MD5 | b268daaae7cff455fa84027b0e368ab4 |
|
BLAKE2b-256 | 04d9de0a16193c463be0b6ea2bdf5452fd571f4e30366c92932a39502f3c3ac5 |
Hashes for ndcurves-1.3.0-1-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 905c1638c85c8a6298e06250115a12ca151f4d839e2186d3ad33490824f4da0e |
|
MD5 | e1b95b78a6f504f0c0f09c62ca595ecb |
|
BLAKE2b-256 | dde17eb7af17ee7fb84ffa6d5edc20a5afa57e861786f38a9bb5ce234de72847 |
Hashes for ndcurves-1.3.0-1-cp311-cp311-manylinux_2_28_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 064f95802b5252e031fafa7d56683a98cb6891280efe0d7253fa975f25de4ccf |
|
MD5 | 70c0b9e99f1973bf226febb9e43cc472 |
|
BLAKE2b-256 | 958c0ccc00c70149938951805666004f79b46d98384f8987dfb1ec84e01682ac |
Hashes for ndcurves-1.3.0-1-cp311-cp311-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9e1ce914556a6fa11e5671f5fc1884292aa8b9e22abd383fd759329e1aff0438 |
|
MD5 | 819ee16953b60b4330823c764d832fb4 |
|
BLAKE2b-256 | f167cf423f82831683392f69fbe80fbc7f830decab71e6524bc4c610558c5a5d |
Hashes for ndcurves-1.3.0-1-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | abd6f5caf9537b9698d419ad3e121881a3febc0c33c365a80d7e82b3a21456fe |
|
MD5 | dc0c553cf54232b1cf3e1ffbf3713bd3 |
|
BLAKE2b-256 | 919a4e391ef0b74b69b389026c489645f491ae7559e88c436e997e2bb36d7bfc |
Hashes for ndcurves-1.3.0-1-cp310-cp310-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dacf665be90a925dec9d6920a206ebafe6276028637cf241032a9486d015e9bc |
|
MD5 | 39d3739b890b08a97b83f547d4f38741 |
|
BLAKE2b-256 | 749ac3d651aa03bda1320ed5e25a94538a1768ed75d19e08b1e0d3c0728d00f4 |
Hashes for ndcurves-1.3.0-1-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e0bd54dbebd10ff90145a978b46f5e156d5774c92e6ed5061751691358378a3a |
|
MD5 | a60f8fc3262459b17a4ae7c3983dd856 |
|
BLAKE2b-256 | 0ea74c80a393951b7333faa849767d51c24758013d0801249efc565451980ce9 |
Hashes for ndcurves-1.3.0-1-cp310-cp310-manylinux_2_28_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 05e08f8ec4b0e4d9c2e79767ba4680d9ef2740a19ecfa690600bc0a26c132bd0 |
|
MD5 | 52a2019ffee3de0942c6eacb1796e35c |
|
BLAKE2b-256 | 82d505ca0b98f013d0b8c3ab204aaf899e997344beddb58666534cf6ed16f824 |
Hashes for ndcurves-1.3.0-1-cp310-cp310-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5f1401da8225504facb37fdca8bcbf1d89222acd3f698834ed30c15aecfe0310 |
|
MD5 | adfc36dd5b4666291b16f8585a5345c4 |
|
BLAKE2b-256 | 66747baa6965732eef0227740fccbf71a6685e3ad8253dfb105f82b6f38f04f8 |
Hashes for ndcurves-1.3.0-1-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7e9604200af2bd343952b1e2f96c51c95602db37957fbe9cd51d416ac03a8f40 |
|
MD5 | ee1bfffae8c53795502e0b79e3210888 |
|
BLAKE2b-256 | 04931a4f45b7aeb30190a9f5621aa5fcbab844d66d6c1444aa288a242861aeac |
Hashes for ndcurves-1.3.0-1-cp39-cp39-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a388e808d1227433d96f87768331bf3e6ee27742cbc65c1a77d3708e2bec150 |
|
MD5 | 781e2d4ca0b4fa0c2b60f3ef93186057 |
|
BLAKE2b-256 | 7df90d1403d8b399715d170f02dca73bf114daef0b194ab86c03707cabe7268f |
Hashes for ndcurves-1.3.0-1-cp39-cp39-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 38f7e23e1ab23221d4ba8200da9f4a9a81a55b4fa6025137f7a607cec63ad526 |
|
MD5 | 33283c5de573e52f2d5c5cfaba3b2aa0 |
|
BLAKE2b-256 | f2293fff457441008d4cbd7dbc6b7a8472f61c6ebb098a54eb84332f85ed0610 |
Hashes for ndcurves-1.3.0-1-cp39-cp39-manylinux_2_28_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | df8d7ec7fecd41c8b25732cbbaef53138c86b247c42f3743cf60a3c2f129f1ea |
|
MD5 | b4d00d7ffdf716d7c6b1272fab759c4f |
|
BLAKE2b-256 | 4aeacff8c01ffefd6cbfce5572118995d871421bfe583b48f9d31cf0bff0dccc |
Hashes for ndcurves-1.3.0-1-cp39-cp39-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 932b75ae728a4f549836f348307d84ba908e22f5158046dc7d5e76daa1782489 |
|
MD5 | 1c0cb969b2ae30c8d01c5978a9de3200 |
|
BLAKE2b-256 | a8d5c4e35424755ebf845728080d27ad4fcc6a1f82b4a8ae683201aadccc4ed4 |
Hashes for ndcurves-1.3.0-1-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 52bbdbd5e1ccf814d3fa9604418581c8c6df1fed84d1801e7294430c3ce9cf05 |
|
MD5 | e8b4538d93748cb30659455a4b11327a |
|
BLAKE2b-256 | 0e3b0f18e7b7f0fae49d6e839f04618d37c3d6d5888bd69e3c4ccad3b7863798 |
Hashes for ndcurves-1.3.0-1-cp38-cp38-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cd59de325371adaab170d57398ba67d6f28d9d0d0c9ba422243f174cfbc4a528 |
|
MD5 | 46349f73813fa5a1ba9f957441cc8f66 |
|
BLAKE2b-256 | 9570ec10ed7fef4346c208dc5acaedc56dde526395141038e77edb5b79ffbc06 |
Hashes for ndcurves-1.3.0-1-cp38-cp38-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8253669309d1756f67687a682fe92d93e788b237ae65a802016ef28f227eeb68 |
|
MD5 | 4a1d21408eced7c89fb165e70b03a19f |
|
BLAKE2b-256 | 2790fd5481ffdffe814c80c15c7f7dad1d4ac9e144b2a6217830196c3369875f |
Hashes for ndcurves-1.3.0-1-cp38-cp38-manylinux_2_28_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 02be00023757bbe2a2ad4a32f4b11ccfceff64edf9f4a10b88b2a4c239e047a1 |
|
MD5 | 319b618772905671619dc9a68005b46b |
|
BLAKE2b-256 | 04e75383b196cc1d50480a50e2f529413c7f042a6d75e82b6ddc79b97175d5e1 |
Hashes for ndcurves-1.3.0-0-pp39-pypy39_pp73-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dd69c849bb9b431d4542957a3114c5cba72a7653fffa7c59f901fd7df48f7893 |
|
MD5 | 261f65349fd53a363fb91da694c997b5 |
|
BLAKE2b-256 | 6cd3c8dbd431126624d0cf79bc8c09f63bd95d0bbc2e0d1cbb6bfa4fc3d82f73 |
Hashes for ndcurves-1.3.0-0-pp38-pypy38_pp73-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a92ec0babcd9239e8a64e918e4fba9fd6672cf699c9d9794dd0cb2740d6a0cbf |
|
MD5 | 642099ad479d78a131397b8405003a82 |
|
BLAKE2b-256 | 64f6228bb7bdf35852e3a680a2a6a7eedfb7108fe19a0d47825e9da734568732 |
Hashes for ndcurves-1.3.0-0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8b6cb8a8f3b9ed04679ba9656179ffd1851955d706394a8ff9addd36f8e66b7b |
|
MD5 | f619da0895b407e6adbca5d3d125f199 |
|
BLAKE2b-256 | 745cc435fde38727e368229c151ad10ba45f57012bdd71d3c2f24ecec7c48f04 |
Hashes for ndcurves-1.3.0-0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 847fcd8ac4b847e2e78a8911221a1ba891adc15affb04fceadbf3902d42f07da |
|
MD5 | d0d47dd5433bae5705b843392e2d5e40 |
|
BLAKE2b-256 | 35bbf877ef14c4b5948b6b1d329dd93b080d3c46430ae01f06d34d6c821f6046 |
Hashes for ndcurves-1.3.0-0-cp39-cp39-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 815e24b39c6ef6f8660c29d559e1161eb24411ad306f8f7a3f397b1662be4308 |
|
MD5 | c58e22ac8aa5fdfaa7bfead3e40c109d |
|
BLAKE2b-256 | afe44434895e359b130aa0c42ab8748d2adff5142f4fa1ef0dd8b8d828d6739a |