rigid_body_motion.ReferenceFrame.lookup_linear_velocity

ReferenceFrame.lookup_linear_velocity(reference=None, represent_in=None, outlier_thresh=None, cutoff=None, allow_static=False, return_timestamps=False)[source]

Estimate linear velocity of this frame wrt a reference.

Parameters
reference: str or ReferenceFrame, optional

The reference frame wrt which the twist is estimated. Defaults to the parent frame.

represent_in: str or ReferenceFrame, optional

The reference frame in which the twist is represented. Defaults to the parent frame.

outlier_thresh: float, optional

Suppress outliers by throwing out samples where the norm of the second-order differences of the position is above outlier_thresh and interpolating the missing values.

cutoff: float, optional

Frequency of a low-pass filter applied to linear and angular velocity after the estimation as a fraction of the Nyquist frequency.

allow_static: bool, default False

If True, return a zero velocity vector and None for timestamps if the transform between this frame and the reference frame is static. Otherwise, a ValueError will be raised.

return_timestamps: bool, default False

If True, also return the timestamps of the lookup.

Returns
linear: numpy.ndarray, shape (N, 3)

Linear velocity of moving frame wrt reference frame, represented in representation frame.

timestamps: each numpy.ndarray

Timestamps of the linear velocity.