|
CARLA
|
#include <WorldSnapshot.h>
Public Member Functions | |
| auto | begin () const |
| Return a begin iterator to the list of ActorSnapshots. | |
| bool | Contains (ActorId actor_id) const |
| Check if an actor is present in this snapshot. | |
| auto | end () const |
| Return a past-the-end iterator to the list of ActorSnapshots. | |
| std::optional< ActorSnapshot > | Find (ActorId actor_id) const |
| Find an ActorSnapshot by id. | |
| size_t | GetFrame () const |
| uint64_t | GetId () const |
| Get the id of the episode associated with this world. | |
| const Timestamp & | GetTimestamp () const |
| Get timestamp of this snapshot. | |
| bool | operator!= (const WorldSnapshot &rhs) const |
| bool | operator== (const WorldSnapshot &rhs) const |
| size_t | size () const |
| Return number of ActorSnapshots present in this WorldSnapshot. | |
| WorldSnapshot (std::shared_ptr< const detail::EpisodeState > state) | |
Private Attributes | |
| std::shared_ptr< const detail::EpisodeState > | _state |
Definition at line 18 of file WorldSnapshot.h.
|
inline |
Definition at line 21 of file WorldSnapshot.h.
|
inline |
Return a begin iterator to the list of ActorSnapshots.
Definition at line 54 of file WorldSnapshot.h.
References _state.
|
inline |
Check if an actor is present in this snapshot.
Definition at line 39 of file WorldSnapshot.h.
References _state.
|
inline |
Return a past-the-end iterator to the list of ActorSnapshots.
Definition at line 59 of file WorldSnapshot.h.
References _state.
|
inline |
Find an ActorSnapshot by id.
Definition at line 44 of file WorldSnapshot.h.
References _state.
Referenced by carla::client::LaneInvasionCallback::Tick().
|
inline |
Definition at line 29 of file WorldSnapshot.h.
References carla::client::Timestamp::frame, and GetTimestamp().
Referenced by carla::client::LaneInvasionCallback::Tick().
|
inline |
Get the id of the episode associated with this world.
Definition at line 25 of file WorldSnapshot.h.
References _state.
|
inline |
Get timestamp of this snapshot.
Definition at line 34 of file WorldSnapshot.h.
References _state.
Referenced by GetFrame(), operator==(), carla::traffic_manager::ALSM::Reset(), carla::traffic_manager::TrafficManagerLocal::Step(), carla::client::LaneInvasionCallback::Tick(), carla::traffic_manager::ALSM::Update(), and carla::traffic_manager::TrafficLightStage::Update().
|
inline |
Definition at line 67 of file WorldSnapshot.h.
|
inline |
Definition at line 63 of file WorldSnapshot.h.
References GetTimestamp().
|
inline |
Return number of ActorSnapshots present in this WorldSnapshot.
Definition at line 49 of file WorldSnapshot.h.
References _state.
|
private |
Definition at line 73 of file WorldSnapshot.h.
Referenced by begin(), Contains(), end(), Find(), GetId(), GetTimestamp(), and size().