Provide a Jacobian for the constrained function
mainBecause MPlib uses a projection-based planning method, you must provide the Jacobian of the constraint function. This Jacobian allows the planner to efficiently project configurations onto the constraint manifold. For performance, the Jacobian calculation should be optimized (e.g., by manipulating the forward kinematics Jacobian).
# Example: Jacobian of the constraint function
def constraint_jacobian(q):
# ... implementation logic using single link jacobian ...
return jacobian_vector