hylo.manip.kinematics¶
Package: hylo-manip · Core contracts
kinematics ¶
Kinematics from a RobotSpec: each arm's model loaded with MuJoCo (MJCF directly, URDF through MuJoCo's importer), forward kinematics of the TCP in the world, geometric Jacobians and damped-least-squares IK with joint limits.
IKResult
dataclass
¶
ArmModel ¶
One arm in its MuJoCo model. Arms loaded from the same file share the model and its data.
finger_adr
instance-attribute
¶
finger_range
instance-attribute
¶
set_hand ¶
Finger joints at command cmd. A parallel hand's one value (0 closed .. 1 open) maps to the joint range's
lower .. upper end; a dexterous hand's command with one value per finger joint is those joint positions.
jacobian ¶
(6, n) world Jacobian of the TCP (linear; angular) after forward().
solve ¶
solve(target: ndarray, q0, free: str | None = None, pos_tol: float = 0.0005, rot_tol: float = 0.005, iters: int = 150, damping: float = 0.02, w_rot: float = 0.3) -> IKResult
Damped least squares from q0, clipped to the joint limits.
ik ¶
ik(target: ndarray, q_now=None, free: str | None = None, rng: Generator | None = None, n_random: int = 12, **kw) -> IKResult
First converged solution over the seeds (current q, home, random), else the smallest residual.
ik_solutions ¶
ik_solutions(target: ndarray, q_now=None, free: str | None = None, rng: Generator | None = None, n_random: int = 12, **kw) -> Iterator[IKResult]
Distinct converged solutions, in seed order (current q, home, random).
Kinematics ¶
resolve_model_path ¶
An absolute path, or a "pkg://