An action space representation for learning robot trajectories without exceeding limits on the position, velocity, acceleration and jerk of each robot joint.
Project description
Learning Robot Trajectories subject to Kinematic Joint Constraints
The aim of this package is to enable learning of robot trajectories without without exceeding limits on the position, velocity, acceleration and jerk of each robot joint.
Movements are generated by mapping the predictions of a neural network to safely executable joint accelerations.
This package provides the code to compute the range of safely executable joint accelerations.
Installation
The package can be installed by running
pip install klimits
Trajectory generation
To generate a random trajectory with limited jerk, acceleration, velocity and position run
python -m klimits.test_trajectory_generation
Several parameters can be adjusted to modify the generated trajectory. E.g:
python -m klimits.test_trajectory_generation --time_step=0.1 --pos_limits='[[-2.96705972839, 2.96705972839], [-2.09439510239, 2.09439510239]]' --vel_limits='[[-1.71042266695, 1.71042266695], [-1.71042266695, 1.71042266695]]' --acc_limits='[[-15, 15], [-7.5, 7.5]]' --plot_joint='[1, 0]' --pos_limit_factor=0.9 --vel_limit_factor=0.8 --acc_limit_factor=0.7 --jerk_limit_factor=0.6 --trajectory_duration=20 --plot_safe_acc_limits
Run
python -m klimits.test_trajectory_generation --help
for further details on the optional arguments.
Further reading
A preprint of the corresponding ICRA 2021 publication is available at arXiv.org.
Further information on the implementation can be found here.
This library is used by safeMotions to learn collision-free reaching tasks via reinforcement learning.
Video
Disclaimer
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
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 klimits-1.0.5-cp39-cp39-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 50eb86cb56c81be7e0d1a86c673b3912bee1dcbb622eb1ea82c2d4808b647a33 |
|
MD5 | 3c0211e30cb54f4be3e713d5f78dfe2c |
|
BLAKE2b-256 | 978a019d668c0c95c42b1b11206fe29f4490d1857bc854daae85c61b4f2e76fd |
Hashes for klimits-1.0.5-cp39-cp39-manylinux2010_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d7ab5c2097bf8d916da54a0396f6988dff4ccdf9291f9d3655b8b833dd91e05e |
|
MD5 | 91dda2add8f19310a88ef0365c8a06a9 |
|
BLAKE2b-256 | 8ba2d965c3128c840d0847b5423273baf552fd540e985e4552cebb1aa09161f9 |
Hashes for klimits-1.0.5-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f8b1d9291111f91ddafff28b89edab5ede3e0a9c1a3e95cf1a3c62f923f15ce7 |
|
MD5 | 1613d8dae9551dc8ed8e3b6ec312a23a |
|
BLAKE2b-256 | f11027416f5233e29bf364adeb4fd34433509580a1244a999bd8701308a87d39 |
Hashes for klimits-1.0.5-cp38-cp38-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c3900a7d8391a724f402db03bceaa6f5d6a0926ffebdcdc7dbf15eb0b8674a43 |
|
MD5 | bcc775a04b398d6ed90641c8cd9a9039 |
|
BLAKE2b-256 | faf3bc5971f9a111051775e96d971d382218724c48b10682c5b2c912224a5138 |
Hashes for klimits-1.0.5-cp38-cp38-manylinux2010_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8325b9f9e0fd93e3b131cfa2e13925b7932d8e1fed7e9beba982ead12f694313 |
|
MD5 | 69a55115271e6fb50d78be2db5ee8c47 |
|
BLAKE2b-256 | e21d0a79faf02246f1b22e69bad3d61048c19389246912afcaff18f8b6a664d6 |
Hashes for klimits-1.0.5-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 472d2f6462c4e48b9dccdd97d71c4f5ec5c138ce033c43dd52b5e3aae15aecc0 |
|
MD5 | 2df43e21cef7199d9ff50d94642a6e3b |
|
BLAKE2b-256 | 6466ab08af0823c8efc4026d87af2d08c53031e4dd0cb3ea3cc9a6c8d76f5cce |
Hashes for klimits-1.0.5-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5c14e3c7637485a9fbf0370e81ab5d24cf930908105b0bde043428a3c79c918b |
|
MD5 | 2b4d11cd72785d6f1cfd7fa1bc03d05a |
|
BLAKE2b-256 | a1406a072c1b169c2a5a961e0fe51dec18b9be1fed7bd011431f604da6fd9011 |
Hashes for klimits-1.0.5-cp37-cp37m-manylinux2010_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b8c4284f218ae861346d541b4c1278c6a277bc49bd5b29cc3a232281ae1f6018 |
|
MD5 | 888db912d9e3f836da975de2ca702002 |
|
BLAKE2b-256 | eb441c0c6f92eaad13d92faa332ffa4af3be7440b6f61d9633b02901f4458870 |
Hashes for klimits-1.0.5-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dfa7dcda25c3f4536a0a16206b02b966f1d19e1c4eaf560111dc1a4ec341400e |
|
MD5 | e70e6fe34414a07d67e5279dc1ff2650 |
|
BLAKE2b-256 | 21191065e1073b3dc2ec702569d2de5ce64433997b0aaf40b076c1e17c5a7b41 |
Hashes for klimits-1.0.5-cp36-cp36m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 637874e2f6cd5f5b6e766368b6ac766f530c98ca925e53b9458d6538ff385ecb |
|
MD5 | e565ca03b8f23fff76c49ee6580a97fd |
|
BLAKE2b-256 | 5c7941f29f08a91bd41c2b447a134412c59d098e9fc9599eeb2924dc8eb5fded |
Hashes for klimits-1.0.5-cp36-cp36m-manylinux2010_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 229db79cfdb238cbe6065dbf35ccdfefad11420c550d972cc100f025531910a2 |
|
MD5 | cf0997f0214fc07e0ded21d928cd474e |
|
BLAKE2b-256 | 9139669b389a4aff8414fca2c9ef18f9f182b8d96756d4710cd82d9083f3d4dc |
Hashes for klimits-1.0.5-cp36-cp36m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e6d8df952af81c5db908df2ee1c5fe488214401c0bf05007da74902c49e0a47c |
|
MD5 | a9837775b23c952ee9a05e9e85165768 |
|
BLAKE2b-256 | 6e33f176cd0f95d7f3c91a52577e161b085f3dce3610c82044d53c00f706a345 |