Catalog PyPI
PACKAGE EXPLORERView in registry

acrobotics

PyPI

Primitive robot kinematics and collision checking.

Versions collected1
Direct dependencies0From release 0.0.6
Last observed20 Oct, 18:25 UTC

README

Version 0.0.6 documentation

Build Status codecov PyPI version

Acrobotics

Quickly test motion planning ideas is the goal, and Python seems like a great language for rapid prototyping. There are great libraries for robot simulation and related task, but installing them is can be a hassle and very dependent on operating system and python version. The drawback is that I have to write a lot of stuff myself. I'm not sure if it is useful to do this. But it will be fun and I will learn a bunch.

This library provides robot kinematics and collision checking for serial kinematic chains. The idea is that this library can be easily swapped by another one providing the same functionality.

The acro part comes from ACRO a robotics research group at KU Leuven in Belgium.

Installation

pip install acrobotics

Or for development

git clone https://github.com/JeroenDM/acrobotics.git
cd acrobotics
python setup.py develop

No Windows support for the moment because python-fcl is not supported. :( In the future I will possibly switch to pybullet. In the meantime, use windows subsystem for linux. MacOS is not tested yet.

Gettings started

(Code for example below: examples/getting_started.py)

This library has three main tricks.

Robot kinematics

T = robot.fk(joint_values) IKSolution = robot.ik(T)

Forward kinematics are implemented in a generic RobotKinematics class.

import acrobotics as ab

robot = ab.Kuka()

joint_values = [0.1, 0.2, 0.3, 0.4, 0.5, 0.6]
T_fk = robot.fk(joint_values)

Analytical inverse kinematics only for specific robots:

ik_solution = robot.ik(T_fk)  # T_fk is a numpy 4x4 array

print(f"Inverse kinematics successful? {ik_solution.success}")
for q in ik_solution.solutions:
    print(q)
Inverse kinematics successful? True
[ 0.1        -1.0949727   2.84159265  2.87778828  0.79803563 -1.99992985]
[ 0.1        -1.0949727   2.84159265 -0.26380438 -0.79803563  1.1416628 ]
[0.1 0.2 0.3 0.4 0.5 0.6]
[ 0.1         0.2         0.3        -2.74159265 -0.5        -2.54159265]

Collision checking

bool = robot.is_in_collision(joint_values, planning_scene)

First create a planning scene with obstacles the robot can collide with.

from acrolib.geometry import translation

table = ab.Box(2, 2, 0.1)
T_table = translation(0, 0, -0.2)

obstacle = ab.Box(0.2, 0.2, 1.5)
T_obs = translation(0, 0.5, 0.55)

scene = ab.Scene([table, obstacle], [T_table, T_obs])

Then create a list of robot configurations for wich you want to check collision with the planning scene.

import numpy as np

q_start = np.array([0.5, 1.5, -0.3, 0, 0, 0])
q_goal = np.array([2.5, 1.5, 0.3, 0, 0, 0])
q_path = np.linspace(q_start, q_goal, 10)

And then you could do:

print([robot.is_in_collision(q, scene) for q in q_path])
[False, False, False, False, True, True, True, True, False, False]

Visualization

robot.plot(axes_handle, joint_values) robot.animate_path(figure_handle, axes_handle, joint_path)

from acrolib.plotting import get_default_axes3d

fig, ax = get_default_axes3d()

scene.plot(ax, c="green")
robot.animate_path(fig, ax, q_path)

animation

More details

There's a more in depth explanation in the jupyter-notebooks in the examples folder.

Most of the usefull stuff can be imported similar to common numpy usage:

import acrobotics as ab

For more advanced classes, such as Robot to create a custom robot, you have to explicitly import them:

from acrobotics.robot import Robot
from acrobotics.link import DHLink, JointType, Link

And motion planning?

The package implements a basic sampling-based and optimization-based planner. Examples on how to use them can be found in the test folder, in test_planning_sampling_based.py and test_planning_optimization_based.py. However, there is a non-trivial amount of setting types you have to supply to get it working. These appeared after a major refactor in an attempt to make to code more maintainable, but we went a bit overboard in the settings department...

Downloads & popularity

1downloads
1-day window · source-reported counts20 Oct 2026
3718.50
2026-07-23: 1 · observed 2026-10-21T18:00:00.2773016Z · period 2026-07-23–2026-07-232026-07-24: 1 · observed 2026-10-21T18:00:00.2773016Z · period 2026-07-24–2026-07-242026-07-26: 1 · observed 2026-10-21T18:00:00.2773016Z · period 2026-07-26–2026-07-262026-08-01: 1 · observed 2026-10-21T18:00:00.2773016Z · period 2026-08-01–2026-08-012026-08-02: 1 · observed 2026-10-21T18:00:00.2773016Z · period 2026-08-02–2026-08-022026-08-03: 6 · observed 2026-10-21T18:00:00.2773016Z · period 2026-08-03–2026-08-032026-08-04: 15 · observed 2026-10-21T18:00:00.2773016Z · period 2026-08-04–2026-08-042026-08-05: 17 · observed 2026-10-21T18:00:00.2773016Z · period 2026-08-05–2026-08-052026-08-06: 8 · observed 2026-10-21T18:00:00.2773016Z · period 2026-08-06–2026-08-062026-08-07: 1 · observed 2026-10-21T18:00:00.2773016Z · period 2026-08-07–2026-08-072026-08-08: 1 · observed 2026-10-21T18:00:00.2773016Z · period 2026-08-08–2026-08-082026-08-09: 4 · observed 2026-10-21T18:00:00.2773016Z · period 2026-08-09–2026-08-092026-08-10: 3 · observed 2026-10-21T18:00:00.2773016Z · period 2026-08-10–2026-08-102026-08-14: 3 · observed 2026-10-21T18:00:00.2773016Z · period 2026-08-14–2026-08-142026-08-15: 1 · observed 2026-10-21T18:00:00.2773016Z · period 2026-08-15–2026-08-152026-08-17: 5 · observed 2026-10-21T18:00:00.2773016Z · period 2026-08-17–2026-08-172026-08-18: 37 · observed 2026-10-21T18:00:00.2773016Z · period 2026-08-18–2026-08-182026-08-19: 1 · observed 2026-10-21T18:00:00.2773016Z · period 2026-08-19–2026-08-192026-08-20: 1 · observed 2026-10-21T18:00:00.2773016Z · period 2026-08-20–2026-08-202026-08-24: 2 · observed 2026-10-21T18:00:00.2773016Z · period 2026-08-24–2026-08-242026-09-06: 3 · observed 2026-10-21T18:00:00.2773016Z · period 2026-09-06–2026-09-062026-09-08: 1 · observed 2026-10-21T18:00:00.2773016Z · period 2026-09-08–2026-09-082026-09-09: 1 · observed 2026-10-21T18:00:00.2773016Z · period 2026-09-09–2026-09-092026-09-13: 2 · observed 2026-10-21T18:00:00.2773016Z · period 2026-09-13–2026-09-132026-09-15: 1 · observed 2026-10-21T18:00:00.2773016Z · period 2026-09-15–2026-09-152026-09-19: 3 · observed 2026-10-21T18:00:00.2773016Z · period 2026-09-19–2026-09-192026-09-21: 13 · observed 2026-10-21T18:00:00.2773016Z · period 2026-09-21–2026-09-212026-09-24: 1 · observed 2026-10-21T18:00:00.2773016Z · period 2026-09-24–2026-09-242026-09-26: 3 · observed 2026-10-21T18:00:00.2773016Z · period 2026-09-26–2026-09-262026-09-27: 2 · observed 2026-10-21T18:00:00.2773016Z · period 2026-09-27–2026-09-272026-09-30: 1 · observed 2026-10-21T18:00:00.2773016Z · period 2026-09-30–2026-09-302026-10-01: 6 · observed 2026-10-21T18:00:00.2773016Z · period 2026-10-01–2026-10-012026-10-05: 3 · observed 2026-10-21T18:00:00.2773016Z · period 2026-10-05–2026-10-052026-10-06: 1 · observed 2026-10-21T18:00:00.2773016Z · period 2026-10-06–2026-10-062026-10-07: 1 · observed 2026-10-21T18:00:00.2773016Z · period 2026-10-07–2026-10-072026-10-08: 11 · observed 2026-10-21T18:00:00.2773016Z · period 2026-10-08–2026-10-082026-10-09: 2 · observed 2026-10-21T18:00:00.2773016Z · period 2026-10-09–2026-10-092026-10-10: 1 · observed 2026-10-21T18:00:00.2773016Z · period 2026-10-10–2026-10-102026-10-13: 4 · observed 2026-10-21T18:00:00.2773016Z · period 2026-10-13–2026-10-132026-10-14: 3 · observed 2026-10-21T18:00:00.2773016Z · period 2026-10-14–2026-10-142026-10-18: 4 · observed 2026-10-21T18:00:00.2773016Z · period 2026-10-18–2026-10-182026-10-20: 1 · observed 2026-10-21T18:00:00.2773016Z · period 2026-10-20–2026-10-20
23 Jul20 Oct

pypistats · 42 observations shown. Missing days are unknown. Source category: overall: without mirrors.

View observed values
Date / source periodValueObserved at
2026-10-20 – 2026-10-2012026-10-21T18:00:00.2773016Z
2026-10-18 – 2026-10-1842026-10-21T18:00:00.2773016Z
2026-10-14 – 2026-10-1432026-10-21T18:00:00.2773016Z
2026-10-13 – 2026-10-1342026-10-21T18:00:00.2773016Z
2026-10-10 – 2026-10-1012026-10-21T18:00:00.2773016Z
2026-10-09 – 2026-10-0922026-10-21T18:00:00.2773016Z
2026-10-08 – 2026-10-08112026-10-21T18:00:00.2773016Z
2026-10-07 – 2026-10-0712026-10-21T18:00:00.2773016Z
2026-10-06 – 2026-10-0612026-10-21T18:00:00.2773016Z
2026-10-05 – 2026-10-0532026-10-21T18:00:00.2773016Z
2026-10-01 – 2026-10-0162026-10-21T18:00:00.2773016Z
2026-09-30 – 2026-09-3012026-10-21T18:00:00.2773016Z
2026-09-27 – 2026-09-2722026-10-21T18:00:00.2773016Z
2026-09-26 – 2026-09-2632026-10-21T18:00:00.2773016Z
2026-09-24 – 2026-09-2412026-10-21T18:00:00.2773016Z
2026-09-21 – 2026-09-21132026-10-21T18:00:00.2773016Z
2026-09-19 – 2026-09-1932026-10-21T18:00:00.2773016Z
2026-09-15 – 2026-09-1512026-10-21T18:00:00.2773016Z
2026-09-13 – 2026-09-1322026-10-21T18:00:00.2773016Z
2026-09-09 – 2026-09-0912026-10-21T18:00:00.2773016Z
2026-09-08 – 2026-09-0812026-10-21T18:00:00.2773016Z
2026-09-06 – 2026-09-0632026-10-21T18:00:00.2773016Z
2026-08-24 – 2026-08-2422026-10-21T18:00:00.2773016Z
2026-08-20 – 2026-08-2012026-10-21T18:00:00.2773016Z
2026-08-19 – 2026-08-1912026-10-21T18:00:00.2773016Z
2026-08-18 – 2026-08-18372026-10-21T18:00:00.2773016Z
2026-08-17 – 2026-08-1752026-10-21T18:00:00.2773016Z
2026-08-15 – 2026-08-1512026-10-21T18:00:00.2773016Z
2026-08-14 – 2026-08-1432026-10-21T18:00:00.2773016Z
2026-08-10 – 2026-08-1032026-10-21T18:00:00.2773016Z
2026-08-09 – 2026-08-0942026-10-21T18:00:00.2773016Z
2026-08-08 – 2026-08-0812026-10-21T18:00:00.2773016Z
2026-08-07 – 2026-08-0712026-10-21T18:00:00.2773016Z
2026-08-06 – 2026-08-0682026-10-21T18:00:00.2773016Z
2026-08-05 – 2026-08-05172026-10-21T18:00:00.2773016Z
2026-08-04 – 2026-08-04152026-10-21T18:00:00.2773016Z
2026-08-03 – 2026-08-0362026-10-21T18:00:00.2773016Z
2026-08-02 – 2026-08-0212026-10-21T18:00:00.2773016Z
2026-08-01 – 2026-08-0112026-10-21T18:00:00.2773016Z
2026-07-26 – 2026-07-2612026-10-21T18:00:00.2773016Z
2026-07-24 – 2026-07-2412026-10-21T18:00:00.2773016Z
2026-07-23 – 2026-07-2312026-10-21T18:00:00.2773016Z

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
0.0.64 Nov 20200

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
jeroendm/acrobotics

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 18:25 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:2ba4c0d913ccb33a1182625cf38e6c063e469f18a7f8fbfcbfbe64b06f9de2ec