Install & Compatibility
Where this runs
tested against v? · pip install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslpy 3.10–3.95 runs
build_error
glibcpy 3.10–3.95 runs
build_error
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
Ruckig
✓ from ruckig import Ruckig
✗ import Ruckig
Common mistake: Ruckig is a class inside the module, not a top-level import.
InputParameter
✓ from ruckig import InputParameter
OutputParameter
✓ from ruckig import OutputParameter
Result
✓ from ruckig import Result
Basic example of generating a 1-DOF trajectory from current state to target.
from ruckig import Ruckig, InputParameter, OutputParameter, Result
# Create Ruckig instance (DOF=1)
otg = Ruckig(1)
# Set input parameters
inp = InputParameter(1)
inp.current_position = [0.0]
inp.current_velocity = [0.0]
inp.current_acceleration = [0.0]
inp.target_position = [1.0]
inp.target_velocity = [0.0]
inp.target_acceleration = [0.0]
inp.max_velocity = [1.0]
inp.max_acceleration = [1.0]
inp.max_jerk = [10.0]
out = OutputParameter(1)
result = otg.calculate(inp, out)
if result == Result.Working:
print('Trajectory generated: {} steps'.format(out.trajectory.duration))
elif result == Result.Finished:
print('Already at target.')
else:
print('Invalid input.')
Errors
Common errors & fixes
ImportError: cannot import name 'Ruckig' from 'ruckig'
Trying to import Ruckig directly with `import Ruckig` instead of `from ruckig import Ruckig`.
fixUse `from ruckig import Ruckig`.
TypeError: __init__() missing 1 required positional argument: 'dofs'
Creating a Ruckig instance without specifying the number of degrees of freedom.
fixPass DOF as an integer: `Ruckig(1)` for single-degree-of-freedom.
ValueError: The input parameter vector size does not match the DOFs.
Setting a field (e.g., `current_position`) with a list of wrong length or a scalar.
fixEnsure all field lists have length equal to DOF. For 1 DOF, use `[value]`.
Upgrade
Version history
0.17.3latest on PyPI · released Mar 24, 2026
Audit
Dependencies
pybind11requiredHeader-only library for binding C++ to Python, included as a build dependency.