Inverse Kinematics
IK solver accepting one target link or a sequence, using names or indices.
Number of solutions returned per target instance.
Update a term's weight in-place: scalar for uniform, per-link sequence for terms on the target links.
Set which actuated joints are active (1.0) or locked (0.0).
Set active (1.0)/locked (0.0) base DOFs [x,y,z,roll,pitch,yaw]; needs enable_T_world_base=True.
Eagerly build the multi-candidate solver for a given batch size.
Solve IK and return instance-major final-stage solutions shaped (batch * num_solutions, dofs); solver.rank_final=True sorts them best first within each instance.
Task-space accuracy of state against T_world_target, independent of term weights.
Robot state to score; any solver's output works, not just this one's.
[batch, num_targets] wp_vec7 targets on this solver's device.
Success threshold on translation error.
Success threshold on rotation error.
Buffers to write in place, from an earlier call; allocated when omitted.
Errors per target and per-batch success.
compute_metrics for numpy targets shaped (7,), (batch, 7) or (batch, num_targets, 7).
Robot state to score; any solver's output works, not just this one's.
Targets as [x, y, z, q_w, q_x, q_y, q_z].
Success threshold on translation error.
Success threshold on rotation error.
Errors per target and per-batch success, as numpy arrays.
Robot-free IK configuration; build it with IKSolver(config, robot, target_links).
Optimization task templates; IKContext lists their inputs.
Task templates that rank candidates at each select without changing optimization; empty ranks by cost.
Candidate schedule and LM settings; the last segment's width is the solutions returned per target.
Joint noise of the initial candidates; scale is a fraction of each joint's range around init_state.
Per-axis base translation noise (m) around init_state, for a floating base.
Optimize the six floating-base DOFs along with the joints.
Active (1.0) or locked (0.0) base DOFs [x, y, z, roll, pitch, yaw]; locking needs enable_T_world_base.
Return the term added under name, so a caller can complete a preset stub.