class
#include <esp/agent/Agent.h>
Agent
Public static variables
-
static const std::
set<std:: string> BodyActions
Constructors, destructors, conversion operators
-
Agent(scene::
SceneNode& agentNode, const AgentConfiguration& cfg) explicit - ~Agent() override
Public functions
-
auto node() -> scene::
SceneNode& -
auto node() const -> const scene::
SceneNode& -
auto object() -> scene::
SceneNode& -
auto object() const -> const scene::
SceneNode& -
auto act(const std::
string& actionName) -> bool -
auto hasAction(const std::
string& actionName) const -> bool - void reset()
- void getState(const AgentState::ptr& state) const
- void setState(const AgentState& state, bool resetSensors = true)
- void setInitialState(const AgentState& state, const bool resetSensors = true)
- auto getControls() -> scene::ObjectControls::ptr
-
auto getSubtreeSensorSuite() -> sensor::
SensorSuite& - Return SensorSuite containing references to superset of all Sensors held by this Agent's SceneNode and its children.
-
auto getSubtreeSensors() -> std::
map<std:: string, std:: reference_wrapper<sensor:: Sensor>>& - Return map containing references to superset of all Sensors held by this Agent's SceneNode and its children values. Keys of map are uuid strings, values are references to Sensors with that uuid.
- auto getConfig() const -> const AgentConfiguration&
- auto getConfig() -> AgentConfiguration&