Represents the state of all the actors of an episode at a given frame. More...
#include <EpisodeState.h>
Public Member Functions | |
auto | begin () const |
bool | ContainsActorSnapshot (ActorId actor_id) const |
auto | end () const |
EpisodeState (uint64_t episode_id) | |
EpisodeState (const sensor::data::RawEpisodeState &state) | |
auto | GetActorIds () const |
ActorSnapshot | GetActorSnapshot (ActorId id) const |
boost::optional< ActorSnapshot > | GetActorSnapshotIfPresent (ActorId id) const |
auto | GetEpisodeId () const |
auto | GetFrame () const |
SimulationState | GetsimulationState () const |
const auto & | GetTimestamp () const |
bool | HasMapChanged () const |
bool | IsLightUpdatePending () const |
size_t | size () const |
Private Types | |
using | SimulationState = sensor::s11n::EpisodeStateSerializer::SimulationState |
Private Member Functions | |
template<typename T > | |
void | CopyActorSnapshotIfPresent (ActorId id, T &value) const |
Private Member Functions inherited from carla::NonCopyable | |
NonCopyable ()=default | |
NonCopyable (const NonCopyable &)=delete | |
NonCopyable (NonCopyable &&)=delete | |
NonCopyable & | operator= (const NonCopyable &)=delete |
NonCopyable & | operator= (NonCopyable &&)=delete |
Private Attributes | |
std::unordered_map< ActorId, ActorSnapshot > | _actors |
const uint64_t | _episode_id |
geom::Vector3DInt | _map_origin |
SimulationState | _simulation_state |
const Timestamp | _timestamp |
Represents the state of all the actors of an episode at a given frame.
Definition at line 27 of file EpisodeState.h.
|
private |
Definition at line 31 of file EpisodeState.h.
|
inlineexplicit |
Definition at line 35 of file EpisodeState.h.
|
explicit |
Definition at line 13 of file EpisodeState.cpp.
References _actors, DEBUG_ASSERT, DEBUG_ONLY, and carla::sensor::data::Array< T >::size().
|
inline |
Definition at line 89 of file EpisodeState.h.
References _actors, and carla::iterator::make_map_values_const_iterator().
|
inline |
Definition at line 63 of file EpisodeState.h.
References _actors.
Referenced by carla::client::detail::WalkerNavigation::CheckIfWalkerExist().
|
inlineprivate |
Definition at line 100 of file EpisodeState.h.
References _actors.
Referenced by GetActorSnapshot(), and GetActorSnapshotIfPresent().
|
inline |
Definition at line 93 of file EpisodeState.h.
References _actors, and carla::iterator::make_map_values_const_iterator().
|
inline |
Definition at line 79 of file EpisodeState.h.
References _actors, carla::iterator::make_map_keys_const_iterator(), and carla::MakeListView().
|
inline |
Definition at line 67 of file EpisodeState.h.
References CopyActorSnapshotIfPresent().
|
inline |
Definition at line 73 of file EpisodeState.h.
References CopyActorSnapshotIfPresent().
|
inline |
Definition at line 39 of file EpisodeState.h.
References _episode_id.
|
inline |
Definition at line 43 of file EpisodeState.h.
References _timestamp, and carla::client::Timestamp::frame.
|
inline |
Definition at line 51 of file EpisodeState.h.
References _simulation_state.
|
inline |
Definition at line 47 of file EpisodeState.h.
References _timestamp.
Referenced by carla::nav::Navigation::UpdateCrowd().
|
inline |
Definition at line 55 of file EpisodeState.h.
References _simulation_state.
|
inline |
Definition at line 59 of file EpisodeState.h.
References _simulation_state.
|
inline |
Definition at line 85 of file EpisodeState.h.
References _actors.
|
private |
Definition at line 115 of file EpisodeState.h.
Referenced by begin(), ContainsActorSnapshot(), CopyActorSnapshotIfPresent(), end(), EpisodeState(), GetActorIds(), and size().
|
private |
Definition at line 107 of file EpisodeState.h.
Referenced by GetEpisodeId().
|
private |
Definition at line 111 of file EpisodeState.h.
|
private |
Definition at line 113 of file EpisodeState.h.
Referenced by GetsimulationState(), HasMapChanged(), and IsLightUpdatePending().
|
private |
Definition at line 109 of file EpisodeState.h.
Referenced by GetFrame(), and GetTimestamp().