newton.Control#
- class newton.Control[source]#
Bases:
objectTime-varying control data for a
Model.Time-varying control data includes joint torques, control inputs, muscle activations, and activation forces for triangle and tetrahedral elements.
The exact attributes depend on the contents of the model. Control objects should generally be created using the
newton.Model.control()function.- __init__()#
- clear()#
Reset the control inputs to zero.
- joint_f: array | None#
Array of generalized joint forces with shape
(joint_dof_count,)and typefloat.The degrees of freedom for free joints are included in this array and have the same convention as the
newton.State.body_farray where the 6D wrench is defined as(f_x, f_y, f_z, t_x, t_y, t_z), wheref_x,f_y, andf_zare the components of the force vector (linear) andt_x,t_y, andt_zare the components of the torque vector (angular). Both linear forces and angular torques applied to free joints are applied in world frame (same asnewton.State.body_f).
- joint_target_pos: array | None#
Per-DOF position targets, shape
(joint_dof_count,), typefloat(optional).
- joint_target_vel: array | None#
Per-DOF velocity targets, shape
(joint_dof_count,), typefloat(optional).
- muscle_activations: array | None#
Array of muscle activations with shape
(muscle_count,)and typefloat.Note
Support for muscle dynamics is not yet implemented.