|
RTC Toolkit 5.1.0
|
Implements a correlator. More...
#include <rtctk/telSub/correlator.hpp>
Public Types | |
| using | Alloc = std::pmr::polymorphic_allocator<std::byte> |
Public Member Functions | |
| Correlator (const CorrelatorParams ¶ms, std::unique_ptr< DdsWaitSetIf > dds_subscriber, componentFramework::ComponentMetricsIf &metrics, const Alloc &alloc={}) | |
| std::optional< CorrelationError > | Poll (std::chrono::milliseconds timeout, const DataSamplesView *&samples) RTCTK_NOEXCEPT override |
| The strategy is to correlate on existing data, if possible before taking more samples. | |
| std::optional< std::uint32_t > | GetLastSampleId () const RTCTK_NOEXCEPT override |
| void | Reset () RTCTK_NOEXCEPT override |
| Resets internal state. | |
| void | CheckDdsConnections () override |
Public Member Functions inherited from rtctk::telSub::CorrelatorIf | |
| virtual | ~CorrelatorIf () |
Implements a correlator.
The process is driven by invoking Poll() which will take available DDS samples from provided DdsWaitSetIf and attempt to correlate them.
| using rtctk::telSub::Correlator::Alloc = std::pmr::polymorphic_allocator<std::byte> |
|
explicit |
|
overridevirtual |
Implements rtctk::telSub::CorrelatorIf.
|
inlineoverridevirtual |
Implements rtctk::telSub::CorrelatorIf.
|
overridevirtual |
The strategy is to correlate on existing data, if possible before taking more samples.
Wait for, then process incoming data and if possible populate with references to correlated set of data samples.
This should allow better batch processing.
| timeout | Time to wait for new data if there is none. | |
| [out] | samples |
Implements rtctk::telSub::CorrelatorIf.
|
overridevirtual |
Resets internal state.
This is used to recover from correlation errors encountered in Poll().
It does not remove any samples taken with previous calls to Poll(). This means that if Reset() is invoked after a successful call to Poll() the same correlation will be performed again.
GetLastSampleId() == std::nullopt. Implements rtctk::telSub::CorrelatorIf.