Skip to content

KinematicsSolver

KinematicsSolver provides high-level inverse kinematics entry points:

  • solve_velocity() for one-step velocity IK over registered tasks.
  • solve_position() for iterative position IK with an internal objective stack.
  • solve_position_step() for marker/teleop loops using registered tasks.

Result Diagnostics

Solver result objects include condition_number, the worst Jacobian condition number observed by the singularity-robust inverse during that solve. Values near 1.0 indicate well-conditioned task Jacobians; larger values mean the solve is more sensitive to target changes, numerical tolerances, or near-singular robot postures.

Use this field for logging, test assertions, and tuning UI feedback. It is not a manipulability metric and does not indicate a separate solver mode. A high but finite value can explain weak or unstable-looking motion even when the solve returns SUCCESS.

Runtime Policy

SolverRuntimeConfig stores runtime defaults for interactive loops. See Solver Robustness for the full picture (adaptive dt, elastic band, stall handler, auto layout, weighted fallback). Summary:

cfg = solver.runtime_config()
cfg.enable_auto_task_layout = True
cfg.weighted_fallback_enabled = True
solver.configure_runtime(cfg)

enable_auto_task_layout applies to PoseTaskGroup adapters. It lets the solver try the merged pose layout first, then switch to split position/orientation tasks when the merged rows are binding poorly. The switch happens at solve boundaries, not by mutating the caller's configuration after a rejected attempt.

weighted_fallback_enabled keeps the prioritized solver authoritative on success. If the prioritized path does not find a useful step, the solver may accept a constrained weighted candidate. The candidate uses the same hard constraint machinery, so it is still subject to configured joint limits, collision, CoM, relative-pose, contact projection, and linear constraints.

Disable weighted_fallback_enabled only when you are running an A/B benchmark or need to reproduce historical strict-priority behavior. Disable enable_auto_task_layout when you need a fixed merged or split pose-task layout.

Adaptive dt, elastic band, stall handler

  • Adaptive dt — PositionStepOptions.adaptive_dt scales integration step with position error; capped when collision clearance is tight. Configure defaults via SolverRuntimeConfig.
  • Elastic band — enable_elastic_band() or TaskSolveMode.SCALE_ELASTIC temporarily widens joint limit margins when limit-dominated stalls collapse task scale.
  • Stall handler — enable_stall_handler(nominal_min_distance) + stall_recovery=True relaxes collision margin only when collision rows bind (not on joint-limit stalls).

See Solver Robustness.

Collision recovery floor

Whole-body robots often include link pairs that rest closer than the configured collision clearance. Enable the non-worsening floor when those structural pairs should not trigger an infeasible push to the global min_distance:

solver.set_non_worsening_collision_floor_enabled(True)
solver.set_collision_structural_floor(0.005)  # metres; default 5 mm

The default 5 mm floor preserves the historical non-worsening behavior for positive structural clearances: pairs that already rest above the floor keep their observed clearance rather than being pushed to the global collision margin. When an app deliberately raises the floor, first-seen positive pairs below that raised floor recover toward the floor; first-seen penetrating pairs also recover toward the floor, capped by the active collision margin.

The floor is off by default. Getter/setter pairs: get_non_worsening_collision_floor_enabled() and get_collision_structural_floor().

Collision tuning default

Fresh KinematicsSolver instances default to CollisionTuningMode.BALANCED (sphere broadphase + conservative pair cache). Override with set_collision_tuning_mode() when benchmarking or reproducing older behavior.

Three presets trade latency vs distance fidelity:

Mode Typical use Character
SPEED High-rate teleop Aggressive cache + bounded exact-refinement budget (~300 µs)
BALANCED Default interactive IK Conservative cache, no refinement early-stop
PRECISE Debug / regression Cache off; full exact checks every step

EmbodiK combines these tuned hot paths with post-step penetration guards and optional non-worsening floors so fast modes do not silently accept deepening penetration. See the Collision Constraints guide for tuning walkthroughs, batch parallelization notes, and measured Speed vs Precise timings.

Position-step options (teleop)

PositionStepOptions fields used by marker/teleop loops:

  • max_steps — inner IK iterations per control tick (bimanual teleop default: 2)
  • primary_solve_mode — mirrors registered EE task solve mode for the primary band
  • primary_allow_min_error_fallback — when True, retry a stalled SCALE/SCALE_ELASTIC primary solve once with MIN_ERROR before accepting freeze

See docs/examples/collision_aware_ik.md for collision-floor, adaptive dt, elastic band, and fallback interaction with configure_collision_constraint().

Position IK Objective Order

solve_position() now supports a three-level stack:

  1. Primary end-effector frame objective (priority 0)
  2. Optional torso orientation/pose objective (priority 1)
  3. Optional nullspace posture bias (priority 2 when torso is enabled, else 1)

PositionIKOptions (torso + nullspace)

import numpy as np
import embodik as eik

opts = eik.PositionIKOptions()
opts.max_iterations = 20
opts.position_gain = 40.0
opts.orientation_gain = 40.0

# Tertiary nullspace bias
opts.nullspace_bias = q_bias
opts.nullspace_gain = 0.01
opts.nullspace_active_joints = [0, 1, 2, 3, 4, 5, 6]
opts.nullspace_joint_weights = np.ones(len(opts.nullspace_active_joints))

# Secondary torso orientation objective
opts.torso_constraint.enabled = True
opts.torso_constraint.frame_name = "base_link"
opts.torso_constraint.orientation_mask = np.array([1.0, 1.0, 0.0])  # roll/pitch only
opts.torso_constraint.orientation_gain = 0.05

# Optional torso pose box bounds (6D: x,y,z,rx,ry,rz)
# Units: x/y/z in meters, rx/ry/rz in radians.
# Bounds are relative to a fixed world-frame torso reference. Inside solve_position,
# that reference does not move across inner iterations. If you call solve_position
# every control tick with a new seed_q, set pose_bounds_reference_pose once (e.g.
# torso.homogeneous() at session start) so the box does not recentre each tick.
half_range = np.array([0.08, 0.08, 0.08, 0.20, 0.20, 0.20])
torso0 = robot.get_frame_pose("base_link")
opts.torso_constraint.pose_bounds_reference_pose = np.asarray(
    torso0.homogeneous(), dtype=float
)
opts.torso_constraint.pose_lower_bounds = -half_range
opts.torso_constraint.pose_upper_bounds = half_range
opts.torso_constraint.pose_axis_mask = np.ones(6)
# Units: [m/s, m/s, m/s, rad/s, rad/s, rad/s]
opts.torso_constraint.velocity_limits = np.full(6, 0.5)
# Units: [m/s^2, m/s^2, m/s^2, rad/s^2, rad/s^2, rad/s^2]
opts.torso_constraint.acceleration_limits = np.full(6, 1.0)

Validation rules:

  • nullspace_bias must match robot.nq.
  • nullspace_active_joints indices must be unique and in [0, robot.nv).
  • nullspace_joint_weights length must match robot.nv (all joints) or len(nullspace_active_joints) (selected joints).
  • Torso pose bounds require both lower and upper vectors, each length 6.
  • Torso 6D ordering is [x, y, z, rx, ry, rz] with units [m, m, m, rad, rad, rad].
  • Optional torso_constraint.pose_bounds_reference_pose (4x4 homogeneous): when set, pose bounds are measured vs this fixed transform; when unset, the reference is the torso frame at seed_q for that solve_position call only.

solve_position Usage

target = np.eye(4)
target[:3, 3] = [0.5, 0.2, 0.3]
result = solver.solve_position(seed_q, target, "end_effector", opts)

API Reference

KinematicsSolver

High-level kinematics solver providing simple API for IK problems

Attributes

dt property writable

dt

Time step for velocity integration

robot property

robot

Get the robot model

tasks property

tasks

Get all tasks

Functions

__init__

__init__(robot)

Create a kinematics solver for the given robot model

add_absolute_frame_task

add_absolute_frame_task(name, frame_a, frame_b, alpha=0.5)

Add an absolute frame task (weighted average of two frames)

add_collision_constraint

add_collision_constraint(link_pairs, min_distance=0.05)

Convenience helper to enable collision avoidance using a specific set of link pairs.

add_com_task

add_com_task(name)

Add a center of mass tracking task

add_contact_frame

add_contact_frame(frame_name, contact_type=ContactType.RIGID_CONTACT)

Add a contact frame for contact-root Jacobian projection.

POINT_CONTACT constrains linear velocity only (3 rows). RIGID_CONTACT constrains full spatial velocity (6 rows).

add_frame_task

add_frame_task(name, frame_name, task_type=TaskType.FRAME_POSE)

Add a frame tracking task

add_joint_task

add_joint_task(name, joint_name, target_value=0.0)

Add a single joint tracking task

add_pose_task_group

add_pose_task_group(
    name,
    tcp_frame,
    base_priority=0,
    rotation_priority_offset=1,
    merged_pose=False,
    auto_switch=False,
)

Add a pose task group adapter backed by regular frame tasks

add_relative_frame_task

add_relative_frame_task(name, frame_a, frame_b)

Add a relative frame task (tracks T_a^{-1} * T_b)

add_tight_frame_pose_constraint

add_tight_frame_pose_constraint(
    frame_name, target_pose, position_epsilon=1e-05, orientation_epsilon=0.0001, axis_mask=...
)

Add a tight 6D frame pose epsilon-box constraint.

add_tight_point_constraint

add_tight_point_constraint(frame_name, target_point, position_epsilon=1e-05, axis_mask=...)

Add a tight 3D point epsilon-box constraint.

append_linear_velocity_constraints

append_linear_velocity_constraints(C, lower_bounds, upper_bounds)

Append user-defined linear velocity constraints.

calculate_velocity_box_constraint

calculate_velocity_box_constraint(
    position_margin_lower,
    position_margin_upper,
    velocity_limit,
    acceleration_limit,
    dt,
    min_velocity_headroom=-1.0,
    headroom_activation_margin=0.01,
)

Compute velocity bounds from position/velocity/acceleration limits.

clear_all_target_velocities

clear_all_target_velocities()

Clear direct target velocities on all registered tasks.

clear_base_bounds

clear_base_bounds()

Clear floating-base bounds (use unlimited bounds)

clear_collision_constraint

clear_collision_constraint()

Disable collision avoidance constraint.

clear_collision_pair_min_distance

clear_collision_pair_min_distance(link_a, link_b)

Remove per-pair min_distance overrides for link_a/link_b geometry pairs. Affected pairs revert to the global min_distance.

clear_com_constraint

clear_com_constraint()

Disable CoM support-polygon constraint.

clear_contact_frames

clear_contact_frames()

Disable contact-root Jacobian projection.

clear_joint_metric_weights

clear_joint_metric_weights()

Clear the joint-space metric (restore unweighted solve)

clear_joint_velocity_limit_overrides

clear_joint_velocity_limit_overrides()

Clear all per-joint velocity-limit overrides

clear_linear_velocity_constraints

clear_linear_velocity_constraints()

Clear all user-defined linear velocity constraints.

clear_relative_pose_constraint

clear_relative_pose_constraint()

Disable relative pose constraint

clear_tasks

clear_tasks()

Remove all tasks

clear_tight_frame_pose_constraints

clear_tight_frame_pose_constraints()

Clear all tight frame pose constraints.

clear_tight_point_constraints

clear_tight_point_constraints()

Clear all tight point constraints.

configure_collision_constraint

configure_collision_constraint(
    min_distance,
    include_pairs=[],
    exclude_pairs=[],
    nearest_points_all_pairs=True,
    max_constraints=1,
)

Enable collision avoidance with optional include/exclude geometry pair filters.

Parameters:

Name Type Description Default
min_distance float

Minimum separation distance to enforce (metres).

required
include_pairs Sequence[tuple[str, str]]

List of (geom_a, geom_b) tuples to consider (empty = all).

[]
exclude_pairs Sequence[tuple[str, str]]

List of (geom_a, geom_b) tuples to ignore.

[]
nearest_points_all_pairs bool

If False, compute nearest points only for the selected pair.

True
max_constraints int

Number of simultaneous QP constraint rows. Each row protects one of the closest pairs independently. Defaults to 1 (original behaviour). Values of 3-5 are recommended for complex robots with multiple tight-clearance regions (e.g. base/leg and arm/torso simultaneously).

1

configure_com_constraint

configure_com_constraint(
    support_polygon,
    margin=0.0,
    frame_name="world",
    com_vel_max=0.4,
    com_acc_max=0.1,
    use_acceleration_limits=True,
    proximity_fraction=0.0,
)

Configure a CoM support-polygon inequality constraint.

Keeps the 2D projection of the center of mass inside the given convex polygon. Velocity and acceleration limits are applied to smoothly saturate CoM velocity near the polygon boundary, bounding tipping energy.

Parameters:

Name Type Description Default
support_polygon Annotated[NDArray[float64], dict(shape=(None, None), order=F)]

Nx2 or Nx3 array of polygon vertices in the XY plane of frame_name (Z column is ignored if Nx3).

required
margin float

Fractional inward shrink in [0, 1]. Applied as margin * char_size (mean distance centroid→vertices). Matches feasibility check.

0.0
frame_name str

Frame in which vertices are expressed.

'world'
com_vel_max float

Maximum CoM velocity (m/s).

0.4
com_acc_max float

Maximum CoM acceleration (m/s²).

0.1
use_acceleration_limits bool

If True, clamp approach velocity by sqrt(2 * com_acc_max * margin) near boundary.

True
proximity_fraction float

Fraction of the polygon inradius used as the per-row activation distance. A half-plane row is only added to the QP when the CoM slack for that row is less than proximity_fraction * inradius. The inradius (minimum perpendicular distance from centroid to any edge) is computed automatically from the vertices. Set to 0 (default) to disable proximity filtering and always include every row. Use get_com_proximity_threshold() to read back the computed threshold in metres.

0.0

configure_contact_frames

configure_contact_frames(frame_names, contact_type=ContactType.RIGID_CONTACT)

Clear and configure multiple contact frames with a shared contact type.

configure_elastic_band

configure_elastic_band(
    delta_max=0.05, expand_rate=0.01, decay_rate=0.2, stall_threshold=3, expand_only_saturated=True
)

Configure elastic band tuning parameters.

configure_relative_pose_constraint

configure_relative_pose_constraint(frame_a, frame_b, lower_bounds, upper_bounds, axis_mask=...)

Configure a relative pose inequality constraint.

Constrains each masked axis of T_a^{-1} * T_b to stay within the given bounds. Uses relative Jacobian as QP inequality rows.

Parameters:

Name Type Description Default
frame_a str

Reference frame name

required
frame_b str

Target frame name

required
lower_bounds Annotated[NDArray[float64], dict(shape=(None,), order=C)]

6D lower bounds (pos xyz + ori xyz)

required
upper_bounds Annotated[NDArray[float64], dict(shape=(None,), order=C)]

6D upper bounds (pos xyz + ori xyz)

required
axis_mask Annotated[NDArray[float64], dict(shape=(None,), order=C)]

6D mask (1=constrained, 0=free). Empty = all.

...

configure_runtime

configure_runtime(config)

Apply bundled runtime defaults. Stamps damping immediately and stores position-step defaults for make_position_step_options().

configure_stall_handler

configure_stall_handler(stall_threshold=5, restore_rate=0.005, floor_fraction=0.3)

Configure stall handler tuning parameters.

disable_elastic_band

disable_elastic_band()

Disable elastic band and reset expansion state.

disable_stall_handler

disable_stall_handler()

Disable the stall handler and restore nominal parameters.

elastic_band_deltas

elastic_band_deltas()

Return per-joint delta vector (size == nv).

elastic_band_enabled

elastic_band_enabled()

Return True if elastic band is enabled.

elastic_band_is_expanded

elastic_band_is_expanded()

Return True if any joint has nonzero expansion.

elastic_band_max_delta

elastic_band_max_delta()

Return the maximum delta currently active across all joints.

enable_acceleration_limits

enable_acceleration_limits(enable)

Enable or disable inter-tick acceleration limit constraints

enable_collision_pair_cache

enable_collision_pair_cache(
    enable, full_refresh_interval=20, candidate_distance_margin=0.03, max_cached_candidates=128
)

Enable conservative collision pair candidate caching.

When enabled, collision distance queries are evaluated on cached active/near-active candidate pairs between periodic full scans. This is intended for teleop loops where active pairs evolve smoothly over time.

Parameters:

Name Type Description Default
enable bool

Enable/disable candidate caching.

required
full_refresh_interval int

Steps between mandatory full pair scans.

20
candidate_distance_margin float

Extra margin (m) above min_distance for retaining near-active pairs in the candidate cache.

0.03
max_cached_candidates int

Cap on cached pair indices.

128

enable_elastic_band

enable_elastic_band(delta_max=0.05)

Enable elastic band joint limit expansion for limit-dominated stalls. Temporarily expands joint limit margins to keep more DOFs active in the SNS solver.

enable_position_ik_debug

enable_position_ik_debug(enable)

Enable verbose logging for position IK iterations

enable_position_limits

enable_position_limits(enable)

Enable or disable position limit constraints

enable_saturation_exit_behavior

enable_saturation_exit_behavior(enable)

Enable velocity-box softening near limits (disabled by default).

enable_sphere_broadphase

enable_sphere_broadphase(enable)

Enable sphere-based broadphase culling for collision queries.

When enabled, cheap sphere-sphere distance bounds skip expensive GJK/EPA calls for pairs whose bounding spheres are far apart. Spheres are auto-computed from collision geometry AABBs.

enable_stall_handler

enable_stall_handler(nominal_min_distance)

Enable the automatic stall handler. Detects consecutive stalled velocity solves (non-success with near-zero ||dq||) and applies collision margin relaxation/restoration to break out of stalls.

enable_timing_breakdown

enable_timing_breakdown(enable)

Enable/disable detailed timing breakdown fields in VelocitySolverResult

enable_velocity_limits

enable_velocity_limits(enable)

Enable or disable velocity limit constraints

evaluate_collision_debug

evaluate_collision_debug(current_q=...)

Evaluate collisions at the provided configuration and return debug info (side-effect free).

evaluate_min_collision_distance

evaluate_min_collision_distance(current_q=...)

Evaluate minimum collision distance at the given configuration. If current_q is empty, uses the current configuration.

evaluate_post_step_collision_distance

evaluate_post_step_collision_distance(current_q)

Evaluate the scalar collision distance used by post-step safety checks. Prefers cached / targeted collision data before falling back to a global scan.

get_active_collision_pairs

get_active_collision_pairs()

Return the list of collision pairs currently considered by the solver.

get_collision_constraint_activation_margin

get_collision_constraint_activation_margin()

Get effective collision-row activation margin in meters.

get_collision_constraint_activation_multiplier

get_collision_constraint_activation_multiplier()

Get collision-row activation multiplier.

get_collision_min_distance

get_collision_min_distance()

Read the current collision min_distance. Returns -1 if no collision constraint is active.

get_collision_pair_min_distance_overrides

get_collision_pair_min_distance_overrides()

Return list of (pair_key, min_distance) tuples for all active per-pair overrides.

get_collision_refinement_time_budget_us

get_collision_refinement_time_budget_us()

Get exact collision refinement budget per solve (microseconds).

get_collision_structural_floor

get_collision_structural_floor()

Return the structural collision recovery floor distance (m).

get_collision_tuning_mode

get_collision_tuning_mode()

Get the active high-level collision tuning preset.

get_com_proximity_threshold

get_com_proximity_threshold()

Return the proximity threshold (m) computed by the last call to configure_com_constraint(). Equals proximity_fraction * inradius where the inradius is the minimum perpendicular distance from the polygon centroid to any edge. Returns 0 if no constraint is set.

get_last_collision_debug

get_last_collision_debug()

Retrieve debug information for the closest active collision pair after the last solve, if available. When max_constraints > 1, use get_last_collision_debug_list() for all active pairs.

get_last_collision_debug_list

get_last_collision_debug_list()

Retrieve debug information for all active collision constraint pairs after the last solve (one entry per constraint row, up to max_constraints). Returns an empty list when no collision constraint is configured or no solve has been performed.

get_linear_velocity_constraint_rows

get_linear_velocity_constraint_rows()

Return active user-defined linear constraint row count.

get_proximity_gated_collision_activation_enabled

get_proximity_gated_collision_activation_enabled()

Get whether proximity-gated collision-row activation is enabled.

get_task

get_task(name)

Get a task by name

has_contact_frames

has_contact_frames()

Return true if contact-root projection is active.

make_position_step_options

make_position_step_options()

Return fresh PositionStepOptions populated from runtime defaults.

pose_task_group

pose_task_group(name)

Get a pose task group by name

remove_task

remove_task(name)

Remove a task by name

reset_adaptive_state

reset_adaptive_state()

Reset default-off stateful runtime adapters without changing the stored runtime configuration.

runtime_config

runtime_config()

Return the last-applied runtime defaults.

saturation_exit_behavior_enabled

saturation_exit_behavior_enabled()

Return whether saturation-exit softening is enabled.

set_acceleration_limits

set_acceleration_limits(limits)

Set per-joint acceleration limits (rad/s^2)

set_base_orientation_bounds

set_base_orientation_bounds(lower, upper)

Set floating-base orientation bounds (3D, in velocity space)

set_base_position_bounds

set_base_position_bounds(lower, upper)

Set floating-base position bounds (3D)

set_collision_constraint_activation_multiplier

set_collision_constraint_activation_multiplier(multiplier)

Set proximity-gated collision-row activation multiplier.

Effective activation margin is multiplier * min_distance. Values <= 0 disable gating and preserve legacy row-emission behavior.

set_collision_max_separation_speed_nonpenetrating

set_collision_max_separation_speed_nonpenetrating(mps)

Max separation speed (m/s) for non-penetrating recovery. Default 0.15 m/s.

set_collision_min_distance

set_collision_min_distance(min_distance)

Update only the min_distance of an already-configured collision constraint without rebuilding pair masks. Returns True if updated, False if no constraint exists.

set_collision_pair_min_distance

set_collision_pair_min_distance(link_a, link_b, min_distance, activate_when_clear=True)

Set a custom minimum distance for all collision geometry pairs whose parent frame name contains link_a and link_b respectively.

activate_when_clear=True (default): the override is pending until the pair first achieves the desired clearance during a solve, then latches on permanently. Safe to call from any starting configuration.

activate_when_clear=False: override takes effect immediately (use when the robot is already above the threshold and you need instant effect).

Call after configure_collision_constraint().

set_collision_recovery_scale

set_collision_recovery_scale(scale)

Fraction of desired recovery velocity applied inside min_distance. Default 0.2.

set_collision_refinement_time_budget_us

set_collision_refinement_time_budget_us(budget_us)

Set optional exact collision refinement budget per solve in microseconds. Values <= 0 disable budgeting.

set_collision_repulsion_deadband

set_collision_repulsion_deadband(metres)

Width (m) of the no-braking zone above min_distance. Default 0.003 m. Set to 0 to eliminate the discontinuity that causes boundary oscillation.

set_collision_structural_floor

set_collision_structural_floor(metres)

Minimum clearance (m) maintained for structurally-close pairs when the non-worsening floor is enabled. Default 0.005 m.

set_collision_tuning_mode

set_collision_tuning_mode(mode)

Apply high-level collision tuning preset.

Modes

PRECISE - full exact checks (highest accuracy, highest cost) BALANCED - conservative cache cadence without time budget SPEED - fastest teleop-oriented path

set_constraint_tolerance

set_constraint_tolerance(epsilon)

Set constraint violation deadband and COD pseudoinverse relative threshold (VelocitySolverConfig.epsilon).

set_damping

set_damping(damping)

Set singularity robust damping factor

set_joint_metric_weights

set_joint_metric_weights(weights)

Soft per-joint joint-space metric (size nv): higher weight => that joint contributes less to the achieved task motion (weighted least-norm). All-ones is a no-op. Torso-vs-arm contribution knob.

set_joint_velocity_limit

set_joint_velocity_limit(nv_idx, limit)

Override one joint's velocity limit (nv index); throttles that joint so the solver recruits other DOFs to keep tracking

set_limit_exit_release_margin

set_limit_exit_release_margin(margin)

Set release margin that relaxes tiny post-limit recovery forcing.

set_limit_recovery_gain

set_limit_recovery_gain(gain)

Set joint limit recovery gain in [0, 1]

set_limit_recovery_hysteresis

set_limit_recovery_hysteresis(enter_epsilon, exit_epsilon)

Set enter/exit hysteresis epsilons for joint-limit recovery.

set_linear_velocity_constraints

set_linear_velocity_constraints(C, lower_bounds, upper_bounds)

Replace user-defined linear velocity constraints.

Enforces lower_bounds <= C @ dq <= upper_bounds.

set_max_iterations

set_max_iterations(max_iter)

Set maximum solver iterations

set_non_worsening_collision_floor_enabled

set_non_worsening_collision_floor_enabled(enable)

Enable the per-pair non-worsening (ratcheting) collision recovery floor. When enabled, links that rest closer than min_distance are maintained at their achievable distance instead of triggering an infeasible recovery. Off by default on a new solver; the bimanual teleop app opts in.

set_proximity_gated_collision_activation_enabled

set_proximity_gated_collision_activation_enabled(enabled)

Enable/disable proximity-gated collision-row activation without changing multiplier or margin values.

set_regularization_epsilon

set_regularization_epsilon(epsilon)

Alias of set_tolerance(): set singular-value damping threshold for the regularized pseudoinverse.

set_solver_recovery_enabled

set_solver_recovery_enabled(enable)

Deprecated no-op. Recovery state machine has been removed.

set_tolerance

set_tolerance(tolerance)

Set singular-value damping threshold for the regularized pseudoinverse (default 0.1).

solve_position

solve_position(seed_q, target_pose, frame_name, options=...)

Solve position-level IK to reach target pose. With options.classify_stagnation_as_no_progress=True, stagnation exits return SolverStatus.NO_PROGRESS.

solve_position_in_tcp

solve_position_in_tcp(seed_q, relative_target, frame_name, options=...)

Solve position-level IK with target relative to TCP frame

solve_velocity

solve_velocity(current_q=..., apply_limits=True, stall_recovery=False)

Solve for joint velocities without integration. Returns velocities and identifies saturated joints. When stall_recovery=True, enables automatic stall detection and collision-margin relaxation / restoration. The handler stays active across calls so stall counts accumulate correctly in user loops.

solve_velocity_dq

solve_velocity_dq(current_q=..., apply_limits=True, stall_recovery=False)

Solve for joint velocities and return only dq as a NumPy array. When stall_recovery=True, enables automatic stall handler.

solver_recovery_enabled

solver_recovery_enabled()

Deprecated no-op. Always returns False.

sphere_broadphase_enabled

sphere_broadphase_enabled()

Whether sphere broadphase culling is enabled.

stall_handler_consecutive_stall_steps

stall_handler_consecutive_stall_steps()

Return the number of consecutive stall steps.

stall_handler_current_min_distance

stall_handler_current_min_distance()

Return the current effective collision min_distance.

stall_handler_enabled

stall_handler_enabled()

Return True if the stall handler is enabled.

stall_handler_floor_fraction

stall_handler_floor_fraction()

Return the current stall-handler floor fraction.

stall_handler_is_relaxed

stall_handler_is_relaxed()

Return True if collision margin is currently relaxed.

stall_handler_restore_rate

stall_handler_restore_rate()

Return the current stall-handler restore rate.

stall_handler_threshold

stall_handler_threshold()

Return the current stall threshold.