newton#

Submodules

Classes

Axis

Enumeration of axes in 3D space.

CollisionPipeline

CollisionPipeline manages collision detection and contact generation for a simulation.

Contacts

Stores contact information for rigid and soft body collisions, to be consumed by a solver.

Control

Time-varying control data for a Model.

EqType

Enumeration of equality constraint types between bodies or joints.

GeoType

Enumeration of geometric shape types supported in Newton.

JointMode

Specifies the control mode for a joint's actuation.

JointType

Enumeration of joint types supported in Newton.

Mesh

Represents a triangle mesh for collision and simulation.

Model

Represents the static (non-time-varying) definition of a simulation model in Newton.

ModelBuilder

A helper class for building simulation models at runtime.

ParticleFlags

Flags for particle properties.

SDF

Represents a signed distance field (SDF) for simulation.

ShapeFlags

Flags for shape properties.

State

Represents the time-varying state of a Model in a simulation.

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

count_rigid_contact_points(model)

Counts the maximum number of rigid contact points that need to be allocated for a given model.

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

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)

Returns the number of degrees of freedom (DoF) in velocity and the number of coordinates in position for a given joint type.

Constants

Name

Value

__version__

0.1.1.a2