Skip to content

Commit d80bb29

Browse files
Merge pull request #64 from andrewkaufman/akaufman/fix-docstring-backticks
Fix inconsistent backtick usage in generatedSchema.usda docstrings
2 parents d0f8353 + 9db226a commit d80bb29

1 file changed

Lines changed: 36 additions & 36 deletions

File tree

newton_usd_schemas/generatedSchema.usda

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
)
44

55
class NewtonSceneAPI "NewtonSceneAPI" (
6-
doc = "NewtonSceneAPI applies on top of a PhysicsScene Prim, providing attributes to control a Newton Solver."
6+
doc = "`NewtonSceneAPI` applies on top of a `PhysicsScene` prim, providing attributes to control a Newton solver."
77
)
88
{
99
uniform int newton:maxSolverIterations = -1 (
@@ -434,7 +434,7 @@ class NewtonMassAPI "NewtonMassAPI" (
434434

435435
class NewtonCollisionAPI "NewtonCollisionAPI" (
436436
apiSchemas = ["PhysicsCollisionAPI"]
437-
doc = """NewtonCollisionAPI applies on top of a Gprim, providing extra collision attributes for Newton.
437+
doc = """`NewtonCollisionAPI` applies on top of a `Gprim`, providing extra collision attributes for Newton.
438438

439439
By applying this schema, the prim also inherits the `PhysicsCollisionAPI` schema."""
440440
)
@@ -478,7 +478,7 @@ class NewtonCollisionAPI "NewtonCollisionAPI" (
478478

479479
class NewtonMeshCollisionAPI "NewtonMeshCollisionAPI" (
480480
apiSchemas = ["NewtonCollisionAPI", "PhysicsMeshCollisionAPI"]
481-
doc = """NewtonMeshCollisionAPI applies on top of a Mesh, providing extra mesh collision attributes for Newton.
481+
doc = """`NewtonMeshCollisionAPI` applies on top of a `Mesh`, providing extra mesh collision attributes for Newton.
482482

483483
By applying this schema, the prim also inherits the `PhysicsCollisionAPI`, `NewtonCollisionAPI` and `PhysicsMeshCollisionAPI` schemas."""
484484
)
@@ -617,18 +617,18 @@ class NewtonSDFCollisionAPI "NewtonSDFCollisionAPI" (
617617
}
618618

619619
class NewtonSiteAPI "NewtonSiteAPI" (
620-
doc = """NewtonSiteAPI applies on top of a Gprim, marking it as a non-colliding, massless
620+
doc = """`NewtonSiteAPI` applies on top of a `Gprim`, marking it as a non-colliding, massless
621621
reference frame used for sensing, attachment, or coordinate queries.
622622

623-
Mutually exclusive with NewtonCollisionAPI. A site cannot also be a collider — tools that
624-
enumerate colliders via PhysicsCollisionAPI should exclude sites & vice versa."""
623+
Mutually exclusive with `NewtonCollisionAPI`. A site cannot also be a collider — tools that
624+
enumerate colliders via `PhysicsCollisionAPI` should exclude sites & vice versa."""
625625
)
626626
{
627627
}
628628

629629
class NewtonMaterialAPI "NewtonMaterialAPI" (
630630
apiSchemas = ["PhysicsMaterialAPI"]
631-
doc = """NewtonMaterialAPI applies on top of a Material, providing extra physical material attributes for Newton.
631+
doc = """`NewtonMaterialAPI` applies on top of a `Material`, providing extra physical material attributes for Newton.
632632

633633
By applying this schema, the prim also inherits the `PhysicsMaterialAPI` schema."""
634634
)
@@ -659,7 +659,7 @@ class NewtonMaterialAPI "NewtonMaterialAPI" (
659659
}
660660

661661
class NewtonMimicAPI "NewtonMimicAPI" (
662-
doc = """NewtonMimicAPI applies on top of a PhysicsJoint, adding additional constraints to mimic the DOFs of another joint.
662+
doc = """`NewtonMimicAPI` applies on top of a `PhysicsJoint`, adding additional constraints to mimic the DOFs of another joint.
663663

664664
A mimic constraint enforces that `joint0 = coef0 + coef1 * joint1` for the joint DOFs,
665665
where `joint0` is this joint (the follower) and `joint1` (the leader) is specified via the `newton:mimicJoint` relationship.
@@ -711,18 +711,18 @@ class NewtonActuator "NewtonActuator" (
711711
defaults, and composition rules may change without notice in subsequent releases.
712712

713713
An actuator computes effort (i.e. force/torque for linear/rotational actuators) to apply
714-
to a PhysicsRevoluteJoint or PhysicsPrismaticJoint specified via the `newton:targets`
714+
to a `PhysicsRevoluteJoint` or `PhysicsPrismaticJoint` specified via the `newton:targets`
715715
relationship. Future versions may expand the set of valid target types.
716716

717-
Actuators must provide a single control law by applying a NewtonActuatorControlBaseAPI derived schema (e.g. NewtonPDControlAPI).
717+
Actuators must provide a single control law by applying a `NewtonActuatorControlBaseAPI` derived schema (e.g. `NewtonPDControlAPI`).
718718

719-
Actuator command input delay can be included by applying NewtonActuatorDelayAPI. This is useful to model actuator communication or processing lag.
719+
Actuator command input delay can be included by applying `NewtonActuatorDelayAPI`. This is useful to model actuator communication or processing lag.
720720

721-
Additional effort clamping behaviors can be added by applying any number of NewtonActuatorClampingBaseAPI
722-
derived schemas (e.g. NewtonMaxEffortClampingAPI). The order of clamping is not guaranteed to be preserved thus
721+
Additional effort clamping behaviors can be added by applying any number of `NewtonActuatorClampingBaseAPI`
722+
derived schemas (e.g. `NewtonMaxEffortClampingAPI`). The order of clamping is not guaranteed to be preserved thus
723723
clamping operations must be order independent.
724724

725-
Note: Newton actuators use radians, diverging from UsdPhysicsDriveAPI which uses degrees.
725+
Note: Newton actuators use radians, diverging from `UsdPhysicsDriveAPI` which uses degrees.
726726
Actuator attributes are also documented in joint space, though this is not enforced,
727727
and users may scale attributes to fit their own convention by updating their parser
728728
and/or integration code accordingly.
@@ -738,7 +738,7 @@ class NewtonActuator "NewtonActuator" (
738738
Currently only the first target is honored, and it must identify either a
739739
`PhysicsRevoluteJoint` or `PhysicsPrismaticJoint`.
740740

741-
Multi-DOF PhysicsJoints are not supported, even when locked via LimitAPIs to a single axis.
741+
Multi-DOF `PhysicsJoint` prims are not supported, even when locked via `LimitAPI` to a single axis.
742742
"""
743743
)
744744
}
@@ -749,7 +749,7 @@ class NewtonActuatorDelayAPI "NewtonActuatorDelayAPI" (
749749
Command inputs such as control targets and feedforward terms are delayed by the specified
750750
number of actuator timesteps before being used by the controller.
751751

752-
When DelayAPI is applied, command inputs to the controller are always defined.
752+
When `DelayAPI` is applied, command inputs to the controller are always defined.
753753
If the delay buffer is empty (e.g. right after reset) or an actuator has
754754
`newton:delaySteps == 0`, current command inputs are used. If the requested delay
755755
exceeds the available history, the oldest available command input in the buffer is used.
@@ -777,14 +777,14 @@ class NewtonActuatorControlBaseAPI "NewtonActuatorControlBaseAPI" (
777777
Control laws compute actuator output effort (i.e. force/torque for linear/rotational actuators)
778778
from authored controller parameters, commanded inputs such as control targets and optional
779779
feedforward terms, and simulation and actuator state. This output may still be constrained by
780-
one or more applied NewtonActuatorClampingBaseAPI derived schemas.
780+
one or more applied `NewtonActuatorClampingBaseAPI` derived schemas.
781781

782-
Actuators must provide a single control law by applying a NewtonActuatorControlBaseAPI derived schema (e.g. NewtonPDControlAPI).
782+
Actuators must provide a single control law by applying a `NewtonActuatorControlBaseAPI` derived schema (e.g. `NewtonPDControlAPI`).
783783

784784
Applying any control law API (e.g. PD, PID, Network) automatically applies this base.
785-
Check prim.HasAPI('NewtonActuatorControlBaseAPI') to detect whether any control law is present.
785+
Check `prim.HasAPI('NewtonActuatorControlBaseAPI')` to detect whether any control law is present.
786786

787-
Only one control law API should be applied to a given NewtonActuator prim."""
787+
Only one control law API should be applied to a given `NewtonActuator` prim."""
788788
)
789789
{
790790
}
@@ -793,7 +793,7 @@ class NewtonPDControlAPI "NewtonPDControlAPI" (
793793
apiSchemas = ["NewtonActuatorControlBaseAPI"]
794794
doc = """Stateless PD (Proportional-Derivative) controller.
795795

796-
Control law: effort = constEffort + feedforward + kp*(target_pos - q) + kd*(target_vel - v)"""
796+
Control law: `effort = constEffort + feedforward + kp*(target_pos - q) + kd*(target_vel - v)`"""
797797
)
798798
{
799799
float newton:constEffort = 0 (
@@ -841,7 +841,7 @@ class NewtonPIDControlAPI "NewtonPIDControlAPI" (
841841
Includes proportional, integral, and derivative terms for steady-state
842842
error elimination.
843843

844-
Control law: effort = constEffort + feedforward + kp*(target_pos - q) + ki*integral(target_pos - q) + kd*(target_vel - v)"""
844+
Control law: `effort = constEffort + feedforward + kp*(target_pos - q) + ki*integral(target_pos - q) + kd*(target_vel - v)`"""
845845
)
846846
{
847847
float newton:constEffort = 0 (
@@ -931,12 +931,12 @@ class NewtonNeuralControlAPI "NewtonNeuralControlAPI" (
931931
class NewtonActuatorClampingBaseAPI "NewtonActuatorClampingBaseAPI" (
932932
doc = """Base API for all actuator clamping strategies.
933933

934-
Any number of NewtonActuatorClampingBaseAPI derived schemas (e.g. NewtonMaxEffortClampingAPI) may be
935-
applied to a NewtonActuator to constrain actuator output effort (i.e. force/torque for linear/rotational actuators). The order of clamping
934+
Any number of `NewtonActuatorClampingBaseAPI` derived schemas (e.g. `NewtonMaxEffortClampingAPI`) may be
935+
applied to a `NewtonActuator` to constrain actuator output effort (i.e. force/torque for linear/rotational actuators). The order of clamping
936936
is not guaranteed to be preserved thus clamping operations must be order independent.
937937

938-
Applying any clamping API (e.g. NewtonMaxEffortClampingAPI, NewtonDCMotorClampingAPI, NewtonPositionBasedClampingAPI) automatically
939-
applies this base. Check prim.HasAPI('NewtonActuatorClampingBaseAPI') to detect whether any clamping is present.
938+
Applying any clamping API (e.g. `NewtonMaxEffortClampingAPI`, `NewtonDCMotorClampingAPI`, `NewtonPositionBasedClampingAPI`) automatically
939+
applies this base. Check `prim.HasAPI('NewtonActuatorClampingBaseAPI')` to detect whether any clamping is present.
940940
"""
941941
)
942942
{
@@ -971,11 +971,11 @@ class NewtonDCMotorClampingAPI "NewtonDCMotorClampingAPI" (
971971

972972
A four-quadrant effort clamp based on the DC motor effort-speed characteristic:
973973

974-
effort_max(vel) = min(saturationEffort * (1 - vel / velocityLimit), maxMotorEffort)
975-
effort_min(vel) = max(saturationEffort * (-1 - vel / velocityLimit), -maxMotorEffort)
974+
`effort_max(vel) = min(saturationEffort * (1 - vel / velocityLimit), maxMotorEffort)`
975+
`effort_min(vel) = max(saturationEffort * (-1 - vel / velocityLimit), -maxMotorEffort)`
976976

977-
At zero velocity the motor can produce up to saturationEffort (capped by maxMotorEffort).
978-
As velocity approaches velocityLimit, available effort drops to zero in both directions.
977+
At zero velocity the motor can produce up to `saturationEffort` (capped by `maxMotorEffort`).
978+
As velocity approaches `velocityLimit`, available effort drops to zero in both directions.
979979
"""
980980
)
981981
{
@@ -997,7 +997,7 @@ class NewtonDCMotorClampingAPI "NewtonDCMotorClampingAPI" (
997997
doc = """Peak motor effort at stall (zero velocity).
998998

999999
This is the maximum effort the motor can produce when not spinning,
1000-
before being capped by maxMotorEffort.
1000+
before being capped by `maxMotorEffort`.
10011001

10021002
Range: [0, inf)
10031003
Units: force or torque"""
@@ -1034,24 +1034,24 @@ class NewtonPositionBasedClampingAPI "NewtonPositionBasedClampingAPI" (
10341034

10351035
Sampling rules:
10361036
- Inputs strictly between adjacent (position, effort) entries are linearly interpolated.
1037-
- Inputs at or below newton:lookupPositions[0] clamp to newton:lookupEfforts[0].
1038-
- Inputs at or above newton:lookupPositions[-1] clamp to newton:lookupEfforts[-1].
1037+
- Inputs at or below `newton:lookupPositions[0]` clamp to `newton:lookupEfforts[0]`.
1038+
- Inputs at or above `newton:lookupPositions[-1]` clamp to `newton:lookupEfforts[-1]`.
10391039
- For rotational actuators, positions do not wrap periodically.
10401040
"""
10411041
)
10421042
{
10431043
float[] newton:lookupPositions = [] (
10441044
doc = """Sorted joint positions for the effort lookup table.
10451045

1046-
Must be monotonically increasing and the same length as newton:lookupEfforts.
1046+
Must be monotonically increasing and the same length as `newton:lookupEfforts`.
10471047

10481048
Units: distance or radians"""
10491049
)
10501050

10511051
float[] newton:lookupEfforts = [] (
1052-
doc = """Maximum output effort values corresponding to each entry in newton:lookupPositions.
1052+
doc = """Maximum output effort values corresponding to each entry in `newton:lookupPositions`.
10531053

1054-
Must be the same length as newton:lookupPositions.
1054+
Must be the same length as `newton:lookupPositions`.
10551055

10561056
Units: force or torque"""
10571057
)

0 commit comments

Comments
 (0)