newton.sim.eval_fk#
- newton.sim.eval_fk(model, joint_q, joint_qd, state, mask=None)[source]#
Evaluates the model’s forward kinematics given the joint coordinates and updates the state’s body information (
State.body_q
andState.body_qd
).- Parameters:
model (Model) – The model to evaluate.
joint_q (array) – Generalized joint position coordinates, shape [joint_coord_count], float
joint_qd (array) – Generalized joint velocity coordinates, shape [joint_dof_count], float
mask (array) – The mask to use to enable / disable FK for an articulation. If None then treat all as enabled, shape [articulation_count], int/bool
state (State) – The state to update.