esp::sim::SimulatorWithAgents class

Base classes

class Simulator

Constructors, destructors, conversion operators

SimulatorWithAgents(const SimulatorConfiguration& cfg)
~SimulatorWithAgents() virtual

Public functions

void reconfigure(const SimulatorConfiguration& cfg) override
void reset() override
void seed(uint32_t newSeed) override
void sampleRandomAgentState(agent::AgentState::ptr agentState)
sample a random valid AgentState in passed agentState
auto getAgent(int agentId) -> agent::Agent::ptr
auto addAgent(const agent::AgentConfiguration& agentConfig, scene::SceneNode& agentParentNode) -> agent::Agent::ptr
auto addAgent(const agent::AgentConfiguration& agentConfig) -> agent::Agent::ptr
auto displayObservation(int agentId, const std::string& sensorId) -> bool
Displays observations on default frame buffer for a particular sensor of an agent.
auto getAgentObservation(int agentId, const std::string& sensorId, sensor::Observation& observation) -> bool
auto getAgentObservations(int agentId, std::map<std::string, sensor::Observation>& observations) -> int
auto getAgentObservationSpace(int agentId, const std::string& sensorId, sensor::ObservationSpace& space) -> bool
auto getAgentObservationSpaces(int agentId, std::map<std::string, sensor::ObservationSpace>& spaces) -> int
auto getPathFinder() -> nav::PathFinder::ptr

Protected variables

std::vector<agent::Agent::ptr> agents_
nav::PathFinder::ptr pathfinder_

Function documentation

bool esp::sim::SimulatorWithAgents::displayObservation(int agentId, const std::string& sensorId)

Displays observations on default frame buffer for a particular sensor of an agent.

Parameters
agentId Id of the agent for which the observation is to be returned
sensorId Id of the sensor for which the observation is to be returned