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

◆ Sensor() [2/2]

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 41 of file Sensor.hpp.

43 , m_fn_name(std::move(fn_name))
44 , m_fn(std::move(fn))
45 {
46 }
float query_radius() const
Return the query radius.
Definition Sensor.hpp:76
const PerceptionFn & fn() const
The perception function itself.
Definition Sensor.hpp:55
const std::string & fn_name() const
Identifier assigned to the perception function, empty if anonymous.
Definition Sensor.hpp:49
std::string m_fn_name
Definition Sensor.hpp:103