navlie.datagen.generate_measurement¶
- navlie.datagen.generate_measurement(state: State | List[State], model: MeasurementModel, noise=True, state_id: Any | None = None) → Measurement | List[Measurement]¶
Generates a
Measurement
object given a measurement model and corresponding ground truthState
objects. If a list of ground truth state objects is provided, a measurement will be generated for each state.- Parameters:
state (State or List[State]) – state at which to generate the measurement
model (MeasurementModel) – measurement model that will be evaluated to generate the measurement
noise (bool, optional) – flag whether to add noise to measurement, by default True
state_id (Any, optional) – value to be given to the state_id field of the
Measurement
object
- Returns:
generated Measurement object(s)
- Return type:
Measurement or List[Measurement]