Polytopes as constraints in control
The half-space representation \(Hx \leq d\) of a capacity polytope is a set of linear inequalities, so it can be used directly as a constraint in the quadratic programs (QP) of a controller. The examples of the examples/control folder show it on real-world problems.
pip install pycapacity mujoco robot_descriptions "qpsolvers[proxqp]"
Each example has a full version (real robot and human models, animation) and a minimal version of a few lines with random Jacobians, in examples/control/minimal.