MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ Sensor() [3/3]

MayaFlux::Nexus::Sensor::Sensor ( float  query_radius,
std::string  fn_name,
PerceptionFn  fn 
)
inline

Construct with a query radius and a named perception function.

Parameters
query_radiusRadius passed to the spatial index on each commit.
fn_nameIdentifier used for state encoding.
fnCalled on every commit with the current context.

Definition at line 52 of file Sensor.hpp.

54 , m_fn_name(std::move(fn_name))
55 , m_fn(std::move(fn))
56 {
57 }
float query_radius() const
Return the query radius.
Definition Sensor.hpp:87
const PerceptionFn & fn() const
The perception function itself.
Definition Sensor.hpp:66
const std::string & fn_name() const
Identifier assigned to the perception function, empty if anonymous.
Definition Sensor.hpp:60
std::string m_fn_name
Definition Sensor.hpp:137