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
3
#include "
MayaFlux/Kinesis/Spatial/SpatialIndex.hpp
"
4
5
namespace
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
*/
17
struct
PerceptionContext
{
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
SpatialIndex.hpp
MayaFlux::Nexus
Definition
Agent.cpp:7
MayaFlux::Nexus::PerceptionContext::position
glm::vec3 position
Definition
PerceptionContext.hpp:18
MayaFlux::Nexus::PerceptionContext::spatial_results
std::span< const Kinesis::QueryResult > spatial_results
Definition
PerceptionContext.hpp:19
MayaFlux::Nexus::PerceptionContext
Data passed to a Sensor or Agent perception function on each commit.
Definition
PerceptionContext.hpp:17
src
MayaFlux
Nexus
PerceptionContext.hpp
Generated by
1.9.8