|
Autoware.Auto
|
|
This class encapsulates a history of events used with EKF. More...
#include <history.hpp>
Classes | |
| class | EkfStateUpdater |
| class | HistoryEntry |
Public Member Functions | |
| History (FilterT &filter, const std::size_t max_history_size, const common::types::float32_t mahalanobis_threshold) | |
| Construct history from a filter pointer with a specific size. More... | |
| void | emplace_event (const Timestamp ×tamp, const HistoryEntry &entry) |
| Add an event to history. If it is added to the middle the following ones are automatically replayed on top of it. More... | |
| bool | empty () const noexcept |
| Check if the history is empty. More... | |
| std::size_t | size () const noexcept |
| Get size of history. More... | |
| const Timestamp & | get_last_timestamp () const noexcept |
| Get last timestamp in history. More... | |
| const HistoryEntry & | get_last_event () const noexcept |
| Get last event in history. More... | |
| const FilterT & | get_filter () const noexcept |
| Get the filter as a const ref. More... | |
| FilterT & | get_filter () noexcept |
| Get the filter. More... | |
This class encapsulates a history of events used with EKF.
The class handles adding events to a history of a specified size. It models the
behavior of a circular buffer, meaning that as new events come in, the oldest ones
are removed. The events can be either measurement types or specific events like
reset or prediction. Whenever an event is added to the middle of the history all the
following events get rolled on top of this event to produce a new state.
| FilterT | Type of EKF filter used. |
| kNumOfStates | Dimensionality of the state in the filter. |
| EventT | A variadic template of all possible events. |
|
inlineexplicit |
Construct history from a filter pointer with a specific size.
| filter | The filter pointer to be used internally. | |
| [in] | max_history_size | The maximum history size. |
| [in] | mahalanobis_threshold | The mahalanobis threshold |
| void autoware::prediction::History< FilterT, kNumOfStates, EventT >::emplace_event | ( | const Timestamp & | timestamp, |
| const HistoryEntry & | entry | ||
| ) |
Add an event to history. If it is added to the middle the following ones are automatically replayed on top of it.
| [in] | timestamp | The timestamp of the event. |
| [in] | entry | The entry to be added to history. |
|
inlinenoexcept |
Check if the history is empty.
|
inlinenoexcept |
Get the filter as a const ref.
|
inlinenoexcept |
Get the filter.
|
inlinenoexcept |
Get last event in history.
|
inlinenoexcept |
Get last timestamp in history.
|
inlinenoexcept |
Get size of history.