Skip to main content

solvers.TimingAttitudeErrorModel

solvers.TimingAttitudeErrorModel()

Position errors from a timing error and an angle error, for a target at distance.

A timestamp off by dt places the target v dt along the travel and, while turning at omega, misorients the view by omega dt, which at range is d omega dt sideways. An angle error theta moves the target d theta sideways (calc_lever_arm_error, small angle).

Methods

Name Description
solve Separate translation and angular displacement caused by timestamp error.

solve

solvers.TimingAttitudeErrorModel.solve(
    speed,
    yaw_rate,
    distance,
    timing_error,
    angle_error,
    reference=None,
)

Separate translation and angular displacement caused by timestamp error.

Parameters

Name Type Description Default
speed Quantity Translation speed, convertible to meters per second. required
yaw_rate Quantity Angular velocity, convertible to radians per second. required
distance Quantity Nonnegative target range, in length units. required
timing_error Quantity Signed timestamp offset, in time units. required
angle_error Quantity Signed small orientation error, convertible to radians. required
reference Quantity Positive length used to normalize the angle-induced displacement; omit to return no normalized share. None

Returns

Name Type Description
TimingAttitudeErrorResult Translation and lateral errors in millimeters, timestamp-induced orientation error in milliradians, and an optional dimensionless share.

See Also

mlsysim.physics.robotics.sensing.calc_lever_arm_error : Small-angle displacement.

Notes

Equation: translation = speed*timing_error; misorientation = yaw_rate* timing_error; timing lateral error = distance*misorientation; independent angle error produces distance*angle_error.

Assumptions: Translation and yaw remain constant over the timestamp offset. Angular errors are small; signs of supplied errors are retained.

Excludes: Error covariance, sensor fusion, acceleration, and a combined probabilistic error bound.

References

Derivation: Integrate constant velocity and angular velocity over the time offset, then multiply each angular error in radians by its lever arm.

Examples

>>> from mlsysim.core.units import Q_
>>> r = TimingAttitudeErrorModel().solve(Q_("1 m/s"), Q_("0 rad/s"), Q_("2 m"), Q_("10 ms"), Q_("0 rad"))
>>> r.timing_travel == Q_("10 mm") and r.angle_lateral == Q_("0 mm")
True
Back to top