Skip to content

trusty.control

Tracked points on bodies, and how each step moves them with control inputs.

track

track(
    world: World,
    body: int,
    rest_points: ndarray[float64, (N, 3)],
    inputs: Sequence[int] = [],
) -> None

Track (k, 3) rest-configuration points (m, world frame) on body; each step publishes where they went and, when inputs are given, how they move per unit change in each. An input is an affine revolute or prismatic joint drive (per unit target) or a line muscle (per unit activation). Replaces earlier tracked points. Structural: call before the first step.

tracked_points

tracked_points(
    world: World, body: int
) -> ndarray[float64, (N, 3)]

(k, 3) positions of body's tracked points after the last step (m). Raises before the first step.

sensitivity

sensitivity(
    world: World, body: int
) -> ndarray[float64, (N, M)]

(3k, m) d(tracked points)/d(inputs) of the last step, one column per input given to track (m per input unit). Raises before the first step and for points tracked without inputs.

free_response

free_response(
    world: World, body: int
) -> ndarray[float64, (N, 3)]

(k, 3) the free response: where the next step moves body's tracked points with their inputs held, to first order (m). The next step's points are about tracked_points + free_response + sensitivity @ du. Raises like sensitivity.