|
| | Measurement (const std::chrono::system_clock::time_point &acquisition_time, const MeasurementVector &values, const VarianceVector &variances={}) |
| |
| const MeasurementVector & | get_values () const noexcept |
| |
| const VarianceVector & | get_variances () const noexcept |
| |
| const std::chrono::system_clock::time_point & | get_acquisition_time () const noexcept |
| |
| template<std::int32_t kFullStateSize> |
| Vector< T, kFullStateSize > | get_values_in_full_state (const Vector< T, kFullStateSize > &donor_state=Vector< T, kFullStateSize >::Zero()) const |
| |
template<typename T, std::uint32_t... kMeasurementModalities>
class autoware::prediction::Measurement< T, kMeasurementModalities >
A class that wraps a measurement.
It can be used to create a measurement and produce valid values for:
- Full state of the system generated from this measurement.
- Mapping matrix to map measurement to the state.
- Variances of this measurement.
- Template Parameters
-
| T | Type of measurement underlying type, e.g. float32_t |
| kMeasurementModalities | Which modalities does this measurement represent. |
template<typename T , std::uint32_t... kMeasurementModalities>
template<std::int32_t kFullStateSize>
| Vector<T, kFullStateSize> autoware::prediction::Measurement< T, kMeasurementModalities >::get_values_in_full_state |
( |
const Vector< T, kFullStateSize > & |
donor_state = Vector<T, kFullStateSize>::Zero() | ) |
const |
|
inline |
Get a full state vector populated by the values from this measurement.
Note that the ordering of these values depends on two factors:
- which order of kMeasurementModalities is provided
- integer values for measurement modalities in the enum.
It is assumed that state is ordered exactly as values in kMeasurementModalities, i.e., a measurement modality 0 is the first one in the state and so on..
- Parameters
-
| [in] | donor_state | The state that will be reused to set values missing in this measurement. |
- Template Parameters
-
| kFullStateSize | The dimentionality of the state. |
- Returns
- The values from a measurement represented as a vector state dimentionality.