newton.selection.ArticulationView#
- class newton.selection.ArticulationView(model, pattern, include_joints=None, exclude_joints=None, include_links=None, exclude_links=None, include_joint_types=None, exclude_joint_types=None, verbose=None)[source]#
Bases:
object
- __init__(model, pattern, include_joints=None, exclude_joints=None, include_links=None, exclude_links=None, include_joint_types=None, exclude_joint_types=None, verbose=None)#
- eval_fk(target, mask=None)#
Evaluates forward kinematics given the joint coordinates and updates the body information.
- get_attribute(name, source)#
Get an attribute from the source (Model, State, or Control).
- get_model_articulation_mask(mask=None)#
Get Model articulation mask from a mask in this ArticulationView.
- Parameters:
mask (array) – Mask of articulations in this ArticulationView (all by default).
- get_root_transforms(source)#
Get the root transforms of the articulations.
- get_root_velocities(source)#
Get the root velocities of the articulations.
- set_attribute(name, target, values, mask=None)#
Set an attribute in the target (Model, State, or Control).
- Parameters:
Note
When setting attributes on the Model, it may be necessary to inform the solver about such changes by calling
newton.solvers.SolverBase.notify_model_changed()
after finished setting Model attributes.
- set_root_transforms(target, values, mask=None)#
Set the root transforms of the articulations. Call
eval_fk()
to apply changes to all articulation links.
- set_root_velocities(target, values, mask=None)#
Set the root velocities of the articulations.