class mp2p_icp_filters::FilterAbsoluteTimestamp
Overview
Creates a new per-point channel (default name: “timestamp_abs”) of type double.
This filter reads the relative timestamp channel “t” (float) and adds the reference “zero time” of the cloud (retrieved from the attached processing context’s velocity buffer) to compute an absolute UNIX timestamp for every point.
#include <FilterAbsoluteTimestamp.h> class FilterAbsoluteTimestamp: public mp2p_icp_filters::FilterBase { public: // structs struct Parameters; // fields Parameters params; std::string name; bool enabled = true; // methods void initialize(const mrpt::containers::yaml& cfg_block); virtual void filter(mp2p_icp::metric_map_t& inOut) const; virtual void attachToParameterSource(ParameterSource& source); auto& declaredParameters(); ParameterSource* attachedSource(); void checkAllParametersAreRealized() const; void unrealizeParameters(); };
Inherited Members
public: // methods Parameterizable& operator = (const Parameterizable&); Parameterizable& operator = (Parameterizable&&); virtual void filter(mp2p_icp::metric_map_t& inOut) const = 0; FilterBase& operator = (const FilterBase&); FilterBase& operator = (FilterBase&&);
Fields
Parameters params
Algorithm parameters
std::string name
If not empty, it will be used instead of class name in Logger and Profiler. This is loaded from the name key in the YAML configuration block.
bool enabled = true
If false, the filter is skipped in apply_filter_pipeline(). Loaded from the enabled key in the YAML params block (default: true). Compatible with mola_yaml ${ENV_VAR|1} expressions for env-based toggling.
Methods
void initialize(const mrpt::containers::yaml& cfg_block)
Loads, from a YAML configuration block, all the common, and implementation-specific parameters.
virtual void filter(mp2p_icp::metric_map_t& inOut) const
See docs above for FilterBase.
virtual void attachToParameterSource(ParameterSource& source)
Each parameterizable object can be attached to one source at a given time
auto& declaredParameters()
Returns the list of declared parameters
ParameterSource* attachedSource()
Returns the attached parameter source
void checkAllParametersAreRealized() const
Throws if any parameter is uninitialized or realized() has not been called in the attached ParameterSource. All parameters can be reset so realize() needs to be called again by manually calling unrealizeParameters().
void unrealizeParameters()
Mark all non-constant parameters as non-evaluated again.