phyz-model
Articulated model and state types for phyz.
The static description of a mechanism (Model) and its time-varying
configuration (State). Built with a fluent ModelBuilder; consumed by
phyz-rigid, phyz-diff,
phyz-gpu and the rest of the workspace.
Types
Model— bodies, joints, actuators, gravity,dt,nq,nvModelBuilder—add_revolute_body,add_prismatic_body,add_spherical_body,add_free_body,add_fixed_body,add_bodyBody,Joint,JointType,Geometry,ActuatorState—q,v,ctrl,time,body_xform,qfrc_external
Example
use ;
use ModelBuilder;
let model = new
.gravity
.dt
.add_revolute_body
.add_revolute_body
.build;
let state = model.default_state;
assert_eq!;
Bodies form a kinematic tree: each body names its parent by index, -1 meaning
the world. Joint transforms are Plücker transforms from the parent body frame
to the joint frame.
Part of phyz
phyz is an open-source differentiable
multi-physics simulation workspace in pure Rust. Each crate is independent —
adding this one does not pull in the rest.
Licensed under MIT.