Violation
One limit broken, at the first sample that broke it.
Full docstring
`metric` uses compare's names (``positions/j1``, ``velocities/j2``, ``accelerations/j1``, ``position``, ``rotation``, ``linear_velocity``). `t` is the measured sample's time (the error trajectory's `t`). `error` is the signed ``reference - measured`` for a joint and the magnitude for a pose's position / rotation.
Fields
| Name | Type | Default |
|---|---|---|
phase | str | required |
metric | str | required |
t | float | required |
error | float | required |
limit | float | required |
Example
One instance from the package's own test catalog; the output is its real repr().
Violation(phase='path', metric='positions/j1', t=0.0, error=-0.20409191213851852, limit=0.01)to_dict() as JSON
{
"_type": "compare/Violation",
"phase": "path",
"metric": "positions/j1",
"t": 0.0,
"error": -0.20409191213851852,
"limit": 0.01
}Long arrays are cut after 16 values and say so with “…”.
Functions
Constructors
Classmethods and staticmethods: ways to build one.