持有当前剧集及当前剧集状态 更多...
#include <Episode.h>
Private 成员函数 | |
Episode (Client &client, const rpc::EpisodeInfo &info, std::weak_ptr< Simulator > simulator) | |
void | OnEpisodeChanged () |
void | OnEpisodeStarted () |
![]() | |
NonCopyable ()=default | |
NonCopyable (const NonCopyable &)=delete | |
NonCopyable (NonCopyable &&)=delete | |
NonCopyable & | operator= (const NonCopyable &)=delete |
NonCopyable & | operator= (NonCopyable &&)=delete |
Private 属性 | |
CachedActorList | _actors |
Client & | _client |
CallbackList< WorldSnapshot > | _on_light_update_callbacks |
CallbackList< WorldSnapshot > | _on_map_change_callbacks |
CallbackList< WorldSnapshot > | _on_tick_callbacks |
bool | _pending_exceptions = false |
std::string | _pending_exceptions_msg |
bool | _should_update_map = true |
std::weak_ptr< Simulator > | _simulator |
RecurrentSharedFuture< WorldSnapshot > | _snapshot |
AtomicSharedPtr< const EpisodeState > | _state |
const streaming::Token | _token |
AtomicSharedPtr< WalkerNavigation > | _walker_navigation |
|
explicit |
在文件 Episode.cpp 第 41 行定义.
carla::client::detail::Episode::~Episode | ( | ) |
在文件 Episode.cpp 第 50 行定义.
引用了 _client, _token, carla::log_error() , 以及 carla::client::detail::Client::UnSubscribeFromStream().
|
private |
在文件 Episode.cpp 第 44 行定义.
|
inline |
引用了 _pending_exceptions , 以及 _pending_exceptions_msg.
std::shared_ptr< WalkerNavigation > carla::client::detail::Episode::CreateNavigationIfMissing | ( | ) |
在文件 Episode.cpp 第 174 行定义.
引用了 _simulator , 以及 _walker_navigation.
|
inline |
boost::optional< rpc::Actor > carla::client::detail::Episode::GetParticipantById | ( | ActorId | id | ) |
std::vector< rpc::Actor > carla::client::detail::Episode::GetParticipants | ( | ) |
std::vector< rpc::Actor > carla::client::detail::Episode::GetParticipantsById | ( | const std::vector< ActorId > & | actor_ids | ) |
|
inline |
bool carla::client::detail::Episode::HasMapChangedSinceLastCall | ( | ) |
在文件 Episode.cpp 第 165 行定义.
引用了 _should_update_map.
void carla::client::detail::Episode::Listen | ( | ) |
检查待处理的异常(主要是交通管理服务器关闭)
将待处理的异常标记为 false
为错误消息创建异常
传感器案例:数据不一致
Episode 改变
在文件 Episode.cpp 第 58 行定义.
引用了 _client, _token, carla::client::detail::CastData(), carla::sensor::Deserializer::Deserialize() , 以及 carla::client::detail::Client::SubscribeToStream().
|
private |
|
private |
|
inline |
|
inline |
|
inline |
引用了 _on_tick_callbacks.
|
inline |
|
inline |
|
inline |
|
inline |
引用了 _on_tick_callbacks.
void carla::client::detail::Episode::SetPedestriansCrossFactor | ( | float | percentage | ) |
void carla::client::detail::Episode::SetPedestriansSeed | ( | unsigned int | seed | ) |
|
inline |
|
private |
被这些函数引用 OnEpisodeStarted() , 以及 RegisterParticipant().
|
private |
被这些函数引用 Listen() , 以及 ~Episode().
|
private |
|
private |
被这些函数引用 RegisterOnMapChangeEvent() , 以及 RemoveOnMapChangeEvent().
|
private |
被这些函数引用 OnEpisodeStarted(), RegisterOnTickEvent() , 以及 RemoveOnTickEvent().
|
private |
被这些函数引用 AddPendingException().
|
private |
被这些函数引用 AddPendingException().
|
private |
被这些函数引用 HasMapChangedSinceLastCall().
|
private |
被这些函数引用 CreateNavigationIfMissing().
|
private |
被这些函数引用 WaitForState().
|
private |
被这些函数引用 GetState().
|
private |
被这些函数引用 Listen() , 以及 ~Episode().
|
private |
被这些函数引用 CreateNavigationIfMissing() , 以及 OnEpisodeStarted().