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 .. && make && make test
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 a python tutorial, you can refer to the jupyter notebook. The test file is more exhaustive and rather self explanatory.
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.1.5.1-0-pp39-pypy39_pp73-manylinux_2_17_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 99fca8309e405117572d1f5df1058cf34186c8aa2230e894f8d8a955ecdef369 |
|
MD5 | 96ca174e3e1af71c8e436defc9fef5d7 |
|
BLAKE2b-256 | f12282bf3850323be57efa35ca79eab49571036456ce5b1d0ef2c3509caeab30 |
Hashes for ndcurves-1.1.5.1-0-pp39-pypy39_pp73-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 267daed5855262390c34559d25d145263dd47b3b922959df29c33631aad1d91c |
|
MD5 | 77777421b422c11703c4251424dd7158 |
|
BLAKE2b-256 | 3867cdc699b408be7b1f4d567ef06a9a30c5df9a4b6557e0cca1a2c6d95a1200 |
Hashes for ndcurves-1.1.5.1-0-pp38-pypy38_pp73-manylinux_2_17_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fb57feb9523a7f96cdc64a68090a47e8fd272c6b1ae4b30fd124affdc94d2f51 |
|
MD5 | aaa8c4f6098387e8bbeaf9fe07b1b207 |
|
BLAKE2b-256 | f4ccc81ef60a3018cf46a4a39216376ebdda069325a27839ed001f4c91e68080 |
Hashes for ndcurves-1.1.5.1-0-pp38-pypy38_pp73-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 694995282aff526987db048bf1e2f224b86898ec2741e9887b4bab6c767bc9b0 |
|
MD5 | 21bd8532b9aa852babb4cebe56ce6deb |
|
BLAKE2b-256 | 2442f1c781b442423705d2a06863069bb48f19c862d557773c3acc35e0d25d61 |
Hashes for ndcurves-1.1.5.1-0-pp37-pypy37_pp73-manylinux_2_17_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2ebac221e938fc54a7a1413ac13e7decf389fa6f81cf0a191ed1680b6e4534e3 |
|
MD5 | a9f559ee023c1c75d63c40155c8cc88f |
|
BLAKE2b-256 | fe5d7ba2ebba161a4569e0993d087480983ccc80a190362a9e4b9033e4e4d82f |
Hashes for ndcurves-1.1.5.1-0-pp37-pypy37_pp73-macosx_12_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bcb7bd9780196947f44de9db1cadb60b32ad97538882a02c6b6affa34278968d |
|
MD5 | 802a980bfcbbae1597c5f25504811be9 |
|
BLAKE2b-256 | bcb75e4a0fd09fe970d97c9ea220e6154ab7c2976b1aaadcab4527659de6c599 |
Hashes for ndcurves-1.1.5.1-0-cp311-cp311-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e3b4b828d74f1ae54bef206fadc941c5edfa96791166359a1a2c2ff746967f24 |
|
MD5 | 453def20dd6fb88bb64a1d7b64ffadc1 |
|
BLAKE2b-256 | 5d78b6779c0ffbbc2dd55a7694b6e6d4f680dd55e9ac1fc6664dbf18fb087cfd |
Hashes for ndcurves-1.1.5.1-0-cp311-cp311-manylinux_2_28_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6f52f52befb563f9b10330c453fc58f31c3ec2e53bcf7c78a090adf41095176d |
|
MD5 | 5db6e79346990ff143b5c3163fbbac97 |
|
BLAKE2b-256 | 83a491d394b625a3090864e258ef980088b2bad0e27cf76072e67c09adc17a19 |
Hashes for ndcurves-1.1.5.1-0-cp311-cp311-manylinux_2_17_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e65d4259ba887428806cc7a5293eb268da85dc8a9a15a317db528ab5998ced79 |
|
MD5 | c240c9e1f140061d2eddb67ddb75785e |
|
BLAKE2b-256 | 705cfa1e5e092e4443d3c2175deef4250efdb6fc8ce325963c6a8a612ed496d0 |
Hashes for ndcurves-1.1.5.1-0-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ceb23f355c10b2c09025dba199e0b239407397d639e96d71ff1caac6cb0bcced |
|
MD5 | ce351dd63d0abae6b8321781bec2e403 |
|
BLAKE2b-256 | d5926ecac3c8f1e33a6edfe2cacf0dce2586ed58d2b80b686fad069ffb45a130 |
Hashes for ndcurves-1.1.5.1-0-cp310-cp310-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7ac8aa5541b10c59d80050243bc89aab42aa8ec98874413a3180a6bbaebcc7a2 |
|
MD5 | 4a9c751ee2b18b4401319f3365568498 |
|
BLAKE2b-256 | 5654738ada4f6641aac7089342fd208a1cf4012a943c62c397dbfe77c02f5b51 |
Hashes for ndcurves-1.1.5.1-0-cp310-cp310-manylinux_2_28_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8ca61ce497b8073cdbc8a8eb309694cc40f9e380c839455b458d87454f647797 |
|
MD5 | 4641201b410e1ca6999f8716ae3b5ea3 |
|
BLAKE2b-256 | 13b0e9adb63dcde3c6891974db9b4804e45cd0ab726a7a756708bd325a4abcc5 |
Hashes for ndcurves-1.1.5.1-0-cp310-cp310-manylinux_2_17_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c7a9011d09573e2ed37c2188a461f2b21ac7c8a17ea2b585dc408c830802a9aa |
|
MD5 | 19ee6fde788e9f07d92960340ff35f46 |
|
BLAKE2b-256 | 11b18c8b1837238a28b18cb7b7ebd96a56b1a86425766ef6630eff074dc70038 |
Hashes for ndcurves-1.1.5.1-0-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8d3e2655e74f6f7d09108f0db71eace64b5deeacda3741b210563baa850fe231 |
|
MD5 | f2bbf6156447d1d28ee27e7203c12804 |
|
BLAKE2b-256 | da01861819167dca270546485c0cfb7853d1035078f8a6f00ef0b83a28c8ed95 |
Hashes for ndcurves-1.1.5.1-0-cp39-cp39-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 85de3c06f7a7151a68c6ab4a89191e7537e4fc51b819e0d7b2eaeb41c106d9a5 |
|
MD5 | 3d577599c857ba97147c788b1216acf3 |
|
BLAKE2b-256 | 383be60d8207acd833455884bcc6120848c32684d92086538306a443c5b65b21 |
Hashes for ndcurves-1.1.5.1-0-cp39-cp39-manylinux_2_28_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 978e24d10b38a1fbfcd62d958dc6af89ca08d09bbd4ed2bda48900b88d019edd |
|
MD5 | 91246279c29642d0ef8af58a0be03089 |
|
BLAKE2b-256 | 28c4d37ec3ab471df1d4360ddc79189c42835947fc28a664bff7684a5ca961ca |
Hashes for ndcurves-1.1.5.1-0-cp39-cp39-manylinux_2_17_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8783bc9a8ec1e850c9aaf26806728afbcf632bd9902b26fc46641f2b418f03bb |
|
MD5 | eeb57b30fe94e3602f51bba68fdeafd3 |
|
BLAKE2b-256 | 571d20c3d6e9799fcf4b0d679dff07890c383ef8ae498f93b3fde9d31958bf37 |
Hashes for ndcurves-1.1.5.1-0-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a6218e6717a4a90b23ae666aa04af7678a6e6d710829abb280b4f6284bae2805 |
|
MD5 | 10a7009beb3a72469c66b368a4b185d6 |
|
BLAKE2b-256 | 832c6cb52f4666d2a60dcb716877c7ea72933b6c6f6ecfa297b1108c2694028c |
Hashes for ndcurves-1.1.5.1-0-cp38-cp38-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d86cf1e56d7568376e77ace114e4ba8da0a244e3e8ee8959abc8322b40d38228 |
|
MD5 | 94d7118b2917405207897889154f65eb |
|
BLAKE2b-256 | c1e696d1ab298063fe2d30587643224c1d37b152e80aecc046f37119b3cac979 |
Hashes for ndcurves-1.1.5.1-0-cp38-cp38-manylinux_2_28_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e5ff895b62a5896aa891deb2457dc2c4c83df3b4abf30f3e87425361d7ea454d |
|
MD5 | d575054a419ce3d30df21d3cadeca593 |
|
BLAKE2b-256 | 8a77054b2a8b043c1f25e245f21a7400d7510fd48849ca995c436bf1c2e085e3 |
Hashes for ndcurves-1.1.5.1-0-cp38-cp38-manylinux_2_17_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ddd86dd00b71a578f2d5ac00435864816739794a918eb00998e1df96f0db6371 |
|
MD5 | ee69c5107e3d0cbcbd0dc4fc814de55a |
|
BLAKE2b-256 | 8d80c2251bb3fa46f5c774f152e0c694d6138ae32b3d8272e494a7b6895db048 |
Hashes for ndcurves-1.1.5.1-0-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 56fe59c39b1a175628bca9cc95edbf71f1a92fa398a833824219bd925a25672a |
|
MD5 | dfe4c71ab08f0ad785f21f1d81cacd45 |
|
BLAKE2b-256 | 6975917096c2541e773a1ca70c7a6aa77f7b5970bd3471a4ee041048715ccf19 |
Hashes for ndcurves-1.1.5.1-0-cp37-cp37m-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 13960a6a5335850c9784a026954e24c716d5443f1816d63bd0cd2caa1735ec60 |
|
MD5 | a35b4c6be9b8a4e6961c7397a2ad3d96 |
|
BLAKE2b-256 | e2bc5795fd9b0874eec2b57d6d2b057ced1c5d6824cd445354d1fbe42bc029bf |
Hashes for ndcurves-1.1.5.1-0-cp37-cp37m-manylinux_2_28_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 295c0f95c099f3dbbd2d8a505619e87fe90220c4aa2dc3030bcdf630605ac062 |
|
MD5 | 1e44e27b536150bffeddd41c1b5dfd05 |
|
BLAKE2b-256 | 909e49050c6b1c23e049e0282968f91545f86c2427d8121f0dd7e77b8fde066b |
Hashes for ndcurves-1.1.5.1-0-cp37-cp37m-manylinux_2_17_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c5a180a40ced12d36e7afbea5b7a2ad5bd8b28f8e95f328deadea324fded4a3a |
|
MD5 | 13cf686af62216d7df770c40a28d3a71 |
|
BLAKE2b-256 | b99a4a21b205a8197f2fd565649397e8886be41763cf86120e90c189088e59c2 |
Hashes for ndcurves-1.1.5.1-0-cp37-cp37m-macosx_10_16_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3e2c90370eb1a574f2a320be3b6d212e6174092cd6f3bb50b11984ffe63b103b |
|
MD5 | d3c6884e18afec02e0d2208964a86dec |
|
BLAKE2b-256 | 376075c6cd09135400558670a282bdd632437a617843a6454b212caba9c5cd03 |