Skip to main content

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 Open In Colab

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.

exemplary_trajectory

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

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


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

klimits-1.0.3-cp39-cp39-manylinux2010_x86_64.whl (248.3 kB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.12+ x86-64

klimits-1.0.3-cp39-cp39-manylinux2010_i686.whl (216.0 kB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.12+ i686

klimits-1.0.3-cp39-cp39-manylinux1_x86_64.whl (248.3 kB view hashes)

Uploaded CPython 3.9

klimits-1.0.3-cp39-cp39-manylinux1_i686.whl (216.0 kB view hashes)

Uploaded CPython 3.9

klimits-1.0.3-cp39-cp39-macosx_10_9_x86_64.whl (185.6 kB view hashes)

Uploaded CPython 3.9 macOS 10.9+ x86-64

klimits-1.0.3-cp38-cp38-manylinux2010_x86_64.whl (249.5 kB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.12+ x86-64

klimits-1.0.3-cp38-cp38-manylinux2010_i686.whl (216.4 kB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.12+ i686

klimits-1.0.3-cp38-cp38-manylinux1_x86_64.whl (249.5 kB view hashes)

Uploaded CPython 3.8

klimits-1.0.3-cp38-cp38-manylinux1_i686.whl (216.4 kB view hashes)

Uploaded CPython 3.8

klimits-1.0.3-cp38-cp38-macosx_10_9_x86_64.whl (185.5 kB view hashes)

Uploaded CPython 3.8 macOS 10.9+ x86-64

klimits-1.0.3-cp37-cp37m-manylinux2010_x86_64.whl (245.3 kB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.12+ x86-64

klimits-1.0.3-cp37-cp37m-manylinux2010_i686.whl (212.6 kB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.12+ i686

klimits-1.0.3-cp37-cp37m-manylinux1_x86_64.whl (245.3 kB view hashes)

Uploaded CPython 3.7m

klimits-1.0.3-cp37-cp37m-manylinux1_i686.whl (212.6 kB view hashes)

Uploaded CPython 3.7m

klimits-1.0.3-cp37-cp37m-macosx_10_9_x86_64.whl (185.3 kB view hashes)

Uploaded CPython 3.7m macOS 10.9+ x86-64

klimits-1.0.3-cp36-cp36m-manylinux2010_x86_64.whl (244.4 kB view hashes)

Uploaded CPython 3.6m manylinux: glibc 2.12+ x86-64

klimits-1.0.3-cp36-cp36m-manylinux2010_i686.whl (211.7 kB view hashes)

Uploaded CPython 3.6m manylinux: glibc 2.12+ i686

klimits-1.0.3-cp36-cp36m-manylinux1_x86_64.whl (244.4 kB view hashes)

Uploaded CPython 3.6m

klimits-1.0.3-cp36-cp36m-manylinux1_i686.whl (211.7 kB view hashes)

Uploaded CPython 3.6m

klimits-1.0.3-cp36-cp36m-macosx_10_9_x86_64.whl (185.3 kB view hashes)

Uploaded CPython 3.6m macOS 10.9+ x86-64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page