newton.utils#
Classes
A class to record and playback simulation body transforms. |
|
A class to record and playback simulation model and state using JSON serialization. |
Functions
|
Compute the Boltzmann-weighted average of two values. |
|
A function that generates coloring for a graph, which is represented by the number of nodes and an array of edges. |
|
Create a rectangular box (cuboid) mesh. |
|
Create a capsule (pill-shaped) mesh with hemispherical ends. |
|
Create a cone mesh with circular base and pointed top. |
|
Create a cylinder or truncated cone mesh. |
|
Create a rectangular plane mesh in the XY plane. |
|
Create a sphere mesh with specified parameters. |
|
Downloads a specific folder from the newton-assets GitHub repository into a local cache. |
|
Compute a numerically stable, differentiable approximation of max(a, b). |
|
Compute a numerically stable, differentiable approximation of min(a, b). |
|
Plots a graph using matplotlib and networkx. |
|
Compute the rotation between a sequence of axes. |
Decompose a quaternion into extrinsic Euler angles. |
|
|
Convert Euler angles to a quaternion. |
|
Convert a quaternion into Euler angles. |
|
Convert a quaternion into Euler angles (roll, pitch, yaw). |
|
Return the twist around an axis. |
|
Return the angle of the twist around an axis. |
|
Compute a smooth approximation of the maximum of two values. |
|
Compute a smooth approximation of the minimum of two values. |
|
Transform a spatial twist between coordinate frames. |
|
Transform a spatial wrench between coordinate frames. |
|
Compute the elementwise absolute value of a 3D vector. |
|
Compute the elementwise "leaky" maximum of two 3D vectors. |
|
Compute the elementwise "leaky" minimum of two 3D vectors. |
|
Compute the elementwise maximum of two 3D vectors. |
|
Compute the elementwise minimum of two 3D vectors. |
|
Return the velocity of a point relative to the frame that owns the provided spatial velocity. |