CARLA
Public Types | Public Member Functions | Private Attributes | Friends | List of all members
carla::client::detail::EpisodeProxyImpl< PointerT > Class Template Reference

Provides access to the Simulator during a given episode. More...

#include <EpisodeProxy.h>

+ Inheritance diagram for carla::client::detail::EpisodeProxyImpl< PointerT >:
+ Collaboration diagram for carla::client::detail::EpisodeProxyImpl< PointerT >:

Public Types

using SharedPtrType = EpisodeProxyPointerType::Shared
 

Public Member Functions

void Clear () noexcept
 
 EpisodeProxyImpl ()=default
 
 EpisodeProxyImpl (SharedPtrType simulator)
 
template<typename T >
 EpisodeProxyImpl (EpisodeProxyImpl< T > other)
 
auto GetId () const noexcept
 
bool IsValid () const noexcept
 
SharedPtrType Lock () const
 Same as TryLock but never return nullptr. More...
 
SharedPtrType TryLock () const noexcept
 

Private Attributes

uint64_t _episode_id
 
PointerT _simulator
 

Friends

template<typename T >
class EpisodeProxyImpl
 

Detailed Description

template<typename PointerT>
class carla::client::detail::EpisodeProxyImpl< PointerT >

Provides access to the Simulator during a given episode.

After the episode is ended any access to the simulator throws an std::runtime_error.

Definition at line 28 of file EpisodeProxy.h.

Member Typedef Documentation

◆ SharedPtrType

Definition at line 31 of file EpisodeProxy.h.

Constructor & Destructor Documentation

◆ EpisodeProxyImpl() [1/3]

template<typename PointerT>
carla::client::detail::EpisodeProxyImpl< PointerT >::EpisodeProxyImpl ( )
default

◆ EpisodeProxyImpl() [2/3]

template<typename T >
carla::client::detail::EpisodeProxyImpl< T >::EpisodeProxyImpl ( SharedPtrType  simulator)

Definition at line 27 of file EpisodeProxy.cpp.

◆ EpisodeProxyImpl() [3/3]

template<typename PointerT>
template<typename T >
carla::client::detail::EpisodeProxyImpl< PointerT >::EpisodeProxyImpl ( EpisodeProxyImpl< T >  other)
inline

Definition at line 38 of file EpisodeProxy.h.

Member Function Documentation

◆ Clear()

template<typename T >
void carla::client::detail::EpisodeProxyImpl< T >::Clear ( void  )
noexcept

Definition at line 50 of file EpisodeProxy.cpp.

Referenced by carla::client::detail::Simulator::DestroyActor().

+ Here is the caller graph for this function:

◆ GetId()

template<typename PointerT>
auto carla::client::detail::EpisodeProxyImpl< PointerT >::GetId ( ) const
inlinenoexcept

Definition at line 42 of file EpisodeProxy.h.

Referenced by carla::client::World::GetId(), and carla::client::detail::Simulator::LoadEpisode().

+ Here is the caller graph for this function:

◆ IsValid()

template<typename PointerT>
bool carla::client::detail::EpisodeProxyImpl< PointerT >::IsValid ( ) const
inlinenoexcept

Definition at line 53 of file EpisodeProxy.h.

Referenced by carla::client::Actor::IsAlive(), and carla::client::LightManager::~LightManager().

+ Here is the caller graph for this function:

◆ Lock()

template<typename T >
EpisodeProxyImpl< T >::SharedPtrType carla::client::detail::EpisodeProxyImpl< T >::Lock ( ) const

Same as TryLock but never return nullptr.

Exceptions
std::runtime_errorif episode is gone.

Definition at line 39 of file EpisodeProxy.cpp.

Referenced by carla::client::Actor::AddAngularImpulse(), carla::client::Actor::AddForce(), carla::client::Actor::AddImpulse(), carla::client::Actor::AddTorque(), carla::client::Walker::ApplyControl(), carla::client::Vehicle::ApplyControl(), carla::client::Vehicle::ApplyPhysicsControl(), carla::client::World::ApplySettings(), carla::client::World::CastRay(), carla::traffic_manager::TrafficManager::CreateTrafficManagerClient(), carla::traffic_manager::TrafficManager::CreateTrafficManagerServer(), carla::client::Actor::Destroy(), carla::client::Actor::DisableConstantVelocity(), carla::client::DrawShape(), carla::client::Vehicle::EnableCarSim(), carla::client::Actor::EnableConstantVelocity(), carla::client::World::EnableEnvironmentObjects(), carla::client::TrafficLight::Freeze(), carla::client::World::FreezeAllTrafficLights(), carla::client::Actor::GetAcceleration(), carla::client::World::GetActor(), carla::client::World::GetActors(), carla::client::Actor::GetAngularVelocity(), carla::client::World::GetBlueprintLibrary(), carla::client::Vehicle::GetControl(), carla::client::TrafficLight::GetElapsedTime(), carla::client::World::GetEnvironmentObjects(), carla::client::TrafficLight::GetGreenTime(), carla::client::TrafficLight::GetGroupTrafficLights(), carla::client::World::GetLevelBBs(), carla::client::World::GetLightManager(), carla::client::Vehicle::GetLightState(), carla::client::Actor::GetLocation(), carla::client::World::GetMap(), carla::client::Vehicle::GetPhysicsControl(), carla::client::TrafficLight::GetPoleIndex(), carla::client::WalkerAIController::GetRandomLocation(), carla::client::World::GetRandomLocationFromNavigation(), carla::client::TrafficLight::GetRedTime(), carla::client::World::GetSettings(), carla::client::World::GetSnapshot(), carla::client::World::GetSpectator(), carla::client::Vehicle::GetSpeedLimit(), carla::client::TrafficLight::GetState(), carla::client::Vehicle::GetTrafficLight(), carla::client::Vehicle::GetTrafficLightState(), carla::client::Actor::GetTransform(), carla::client::World::GetVehiclesLightStates(), carla::client::Actor::GetVelocity(), carla::client::Walker::GetWalkerControl(), carla::client::World::GetWeather(), carla::client::TrafficLight::GetYellowTime(), carla::client::WalkerAIController::GoToLocation(), carla::client::Vehicle::IsAtTrafficLight(), carla::client::TrafficLight::IsFrozen(), carla::client::ServerSideSensor::Listen(), carla::client::RssSensor::Listen(), carla::client::World::LoadLevelLayer(), carla::client::World::OnTick(), carla::client::World::ProjectPoint(), carla::client::LightManager::QueryLightsStateToServer(), carla::client::World::RemoveOnTick(), carla::traffic_manager::TrafficManagerRemote::Reset(), carla::traffic_manager::TrafficManagerLocal::Reset(), carla::client::World::ResetAllTrafficLights(), carla::client::TrafficLight::ResetGroup(), carla::traffic_manager::TrafficManagerLocal::Run(), carla::client::Actor::SetEnableGravity(), carla::client::LightManager::SetEpisode(), carla::client::TrafficLight::SetGreenTime(), carla::client::Vehicle::SetLightState(), carla::client::Actor::SetLocation(), carla::client::WalkerAIController::SetMaxSpeed(), carla::client::World::SetPedestriansCrossFactor(), carla::client::TrafficLight::SetRedTime(), carla::client::Actor::SetSimulatePhysics(), carla::client::TrafficLight::SetState(), carla::client::Actor::SetTargetAngularVelocity(), carla::client::Actor::SetTargetVelocity(), carla::client::Actor::SetTransform(), carla::client::World::SetWeather(), carla::client::TrafficLight::SetYellowTime(), carla::client::World::SpawnActor(), carla::client::WalkerAIController::Start(), carla::traffic_manager::TrafficManagerRemote::Start(), carla::client::WalkerAIController::Stop(), carla::client::ServerSideSensor::Stop(), carla::client::RssSensor::Stop(), carla::client::World::Tick(), carla::client::World::UnloadLevelLayer(), carla::client::LightManager::UpdateServerLightsState(), carla::client::Vehicle::UseCarSimRoad(), carla::client::World::WaitForTick(), carla::client::LightManager::~LightManager(), and carla::traffic_manager::TrafficManagerLocal::~TrafficManagerLocal().

◆ TryLock()

template<typename T >
EpisodeProxyImpl< T >::SharedPtrType carla::client::detail::EpisodeProxyImpl< T >::TryLock ( ) const
noexcept

Definition at line 32 of file EpisodeProxy.cpp.

Friends And Related Function Documentation

◆ EpisodeProxyImpl

template<typename PointerT>
template<typename T >
friend class EpisodeProxyImpl
friend

Definition at line 62 of file EpisodeProxy.h.

Member Data Documentation

◆ _episode_id

template<typename PointerT>
uint64_t carla::client::detail::EpisodeProxyImpl< PointerT >::_episode_id
private

Definition at line 64 of file EpisodeProxy.h.

◆ _simulator

template<typename PointerT>
PointerT carla::client::detail::EpisodeProxyImpl< PointerT >::_simulator
private

Definition at line 66 of file EpisodeProxy.h.


The documentation for this class was generated from the following files: