DUNE: Uniform Navigational Environment
2019.02.1
|
Data sampler for on event behavior launcher.
Public Types |
Public Member Functions | |
Sampler (void) | |
Sampler (double pos_thresh, unsigned pos_samples, double neg_thresh, unsigned neg_samples) | |
SamplerState | insert (double sample) |
void | reset (void) |
Sampler state.
Enumerator | |
---|---|
ST_NOT_DETECTED | |
ST_RE_POSITIVE | |
ST_POSITIVE | |
ST_DETECTED | |
ST_FE_NEGATIVE | |
ST_NEGATIVE |
|
inline |
Constructor.
References ST_NOT_DETECTED.
|
inline |
Constructor with different parameters.
[in] | pos_thresh | positive threshold for detection. |
[in] | pos_samples | minimum number of positive samples. |
[in] | neg_thresh | negative threshold for detection. |
[in] | neg_samples | minimum number of negative samples. |
References ST_NOT_DETECTED.
|
inline |
Add new sample to the mix.
[in] | sample | new sample. |
Referenced by Autonomy::OnEvent::Task::consume().
|
inline |
Reset state machine.
References ST_DETECTED, ST_FE_NEGATIVE, ST_NEGATIVE, ST_NOT_DETECTED, ST_POSITIVE, and ST_RE_POSITIVE.