MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches
PerceptionContext.hpp
Go to the documentation of this file.
1#pragma once
2
4
5namespace MayaFlux::Nexus {
6
7/**
8 * @struct PerceptionContext
9 * @brief Data passed to a Sensor or Agent perception function on each commit.
10 *
11 * @c spatial_results contains the entities within the sensor's query radius
12 * at the moment of the last published snapshot. Results hold entity ids and
13 * squared distances as returned by @c SpatialIndex::within_radius.
14 *
15 * Fields marked @note future are reserved for later domain expansions.
16 */
18 glm::vec3 position {};
19 std::span<const Kinesis::QueryResult> spatial_results;
20
21 // @note future: EnergyAnalysis audio_energy {};
22 // @note future: std::span<const double> audio_snapshot {};
23};
24
25} // namespace MayaFlux::Nexus
std::span< const Kinesis::QueryResult > spatial_results
Data passed to a Sensor or Agent perception function on each commit.