newton#

Submodules

Classes

Axis

Enum for representing the three axes in 3D space.

CollisionPipeline

Contacts

Provides contact information to be consumed by a solver.

Control

Time-varying control data for a Model.

EqType

GeoType

JointMode

JointType

Mesh

Describes a triangle collision mesh for simulation

Model

Holds the definition of the simulation model

ModelBuilder

A helper class for building simulation models at runtime.

ParticleFlags

SDF

Describes a signed distance field for simulation

ShapeFlags

State

Time-varying state data for a Model.

Style3DModel

Style3DModel derived from newton model, contains extended simulation attributes.

Style3DModelBuilder

A helper class for building style3d simulation models at runtime.

Functions

AxisType

alias of Axis | Literal['X', 'Y', 'Z'] | Literal[0, 1, 2] | int | str

__version__

str(object='') -> str str(bytes_or_buffer[, encoding[, errors]]) -> str

count_rigid_contact_points(model)

Counts the maximum number of rigid contact points that need to be allocated.

eval_fk(model, joint_q, joint_qd, state[, mask])

Evaluates the model's forward kinematics given the joint coordinates and updates the state's body information (State.body_q and State.body_qd).

eval_ik(model, state, joint_q, joint_qd)

Evaluates the model's inverse kinematics given the state's body information (State.body_q and State.body_qd) and updates the generalized joint coordinates joint_q and joint_qd.

get_joint_dof_count(joint_type, num_axes)

Return the number of degrees of freedom in position and velocity for a given joint type.