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; };
Inherited Members
public: // methods 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.