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