Animations (.animations)#

random_walk#

infinigen2.animations.random_walk.random_walk(...) Object | None[source]#

Animate any pre-posed obj along a random walk within bbox.

Initial posing is the caller’s responsibility; this only drives the walk. Returns obj if a complete path was found, else None.

Parameters:
infinigen2.animations.random_walk.random_walk_step_fn(
...,
) Callable[[Generator, ndarray, ndarray], tuple[ndarray, ndarray, float]][source]#
Parameters:
infinigen2.animations.random_walk.walk_loop(...) Object | None[source]#

Animate obj along a random walk from frame_start to frame_end.

The object must already be positioned at a valid initial pose. A None accept_fn accepts every proposed trajectory. On exhaustion failure_mode selects “error” (raise), “warn” (log and return None) or “return” (return None silently). Returns obj if a complete path was found, else None.

Parameters:

Module contents#