17#include <boost/optional.hpp>
20#include <unordered_map>
28 :
public std::enable_shared_from_this<EpisodeState>,
74 boost::optional<ActorSnapshot> state;
115 std::unordered_map<ActorId, ActorSnapshot>
_actors;
Inherit (privately) to suppress copy/move construction and assignment.
std::size_t frame
Number of frames elapsed since the simulator was launched.
Represents the state of all the actors of an episode at a given frame.
EpisodeState(uint64_t episode_id)
ActorSnapshot GetActorSnapshot(ActorId id) const
const auto & GetTimestamp() const
bool IsLightUpdatePending() const
const uint64_t _episode_id
boost::optional< ActorSnapshot > GetActorSnapshotIfPresent(ActorId id) const
SimulationState GetsimulationState() const
geom::Vector3DInt _map_origin
SimulationState _simulation_state
auto GetEpisodeId() const
std::unordered_map< ActorId, ActorSnapshot > _actors
void CopyActorSnapshotIfPresent(ActorId id, T &value) const
bool HasMapChanged() const
const Timestamp _timestamp
bool ContainsActorSnapshot(ActorId actor_id) const
State of the episode at a given frame.
static auto make_map_keys_const_iterator(It it)
Creates an iterator over const references to the keys of a map.
static auto make_map_values_const_iterator(It it)
Creates an iterator over const references to the values of a map.
This file contains definitions of common data structures used in traffic manager.
static auto MakeListView(Iterator begin, Iterator end)