The function of this class is to integrate all the various stages of the traffic manager appropriately using messengers. 更多...
#include <TrafficManagerRemote.h>
Public 成员函数 | |
ActionBuffer | GetActionBuffer (const ActorId &actor_id) |
Method to get the vehicle's action buffer. | |
carla::client::detail::EpisodeProxy & | GetEpisodeProxy () |
Get CARLA episode information. | |
Action | GetNextAction (const ActorId &actor_id) |
Method to get the vehicle's next action. | |
void | HealthCheckRemoteTM () |
Method to check server is alive or not. | |
void | RegisterVehicles (const std::vector< ActorPtr > &actor_list) |
This method registers a vehicle with the traffic manager. | |
void | Release () |
To release the traffic manager. | |
void | RemoveImportedRoute (const ActorId &actor_id, const bool remove_path) |
Method to remove a route. | |
void | RemoveUploadPath (const ActorId &actor_id, const bool remove_path) |
Method to remove a path. | |
void | Reset () |
To reset the traffic manager. | |
void | SetAutoLaneChange (const ActorPtr &actor, const bool enable) |
Enable/disable automatic lane change on a vehicle. | |
void | SetBoundariesRespawnDormantVehicles (const float lower_bound, const float upper_bound) |
Method to set boundaries for respawning vehicles. | |
void | SetCollisionDetection (const ActorPtr &reference_actor, const ActorPtr &other_actor, const bool detect_collision) |
Method to set collision detection rules between vehicles. | |
void | SetCustomPath (const ActorPtr &actor, const Path path, const bool empty_buffer) |
Method to set our own imported path. | |
void | SetDesiredSpeed (const ActorPtr &actor, const float value) |
Set a vehicle's exact desired velocity. | |
void | SetDistanceToLeadingVehicle (const ActorPtr &actor, const float distance) |
Method to specify how much distance a vehicle should maintain to the leading vehicle. | |
void | SetForceLaneChange (const ActorPtr &actor, const bool direction) |
Method to force lane change on a vehicle. | |
void | SetGlobalDistanceToLeadingVehicle (const float distance) |
Method to specify Global Distance | |
void | SetGlobalLaneOffset (float const offset) |
Method to set a global lane offset displacement from the center line. | |
void | SetGlobalPercentageSpeedDifference (float const percentage) |
Method to set a global % decrease in velocity with respect to the speed limit. | |
void | SetHybridPhysicsMode (const bool mode_switch) |
Method to set hybrid physics mode. | |
void | SetHybridPhysicsRadius (const float radius) |
Method to set hybrid physics radius. | |
void | SetImportedRoute (const ActorPtr &actor, const Route route, const bool empty_buffer) |
Method to set our own imported route. | |
void | SetKeepRightPercentage (const ActorPtr &actor, const float percentage) |
Method to set % to keep on the right lane. | |
void | SetLaneOffset (const ActorPtr &actor, const float offset) |
Method to set a lane offset displacement from the center line. | |
void | SetMaxBoundaries (const float lower, const float upper) |
Method to set limits for boundaries when respawning vehicles. | |
void | SetOSMMode (const bool mode_switch) |
Method to set Open Street Map mode. | |
void | SetPercentageIgnoreVehicles (const ActorPtr &actor, const float perc) |
Method to specify the % chance of ignoring collisions with any vehicle. | |
void | SetPercentageIgnoreWalkers (const ActorPtr &actor, const float perc) |
Method to specify the % chance of ignoring collisions with any walker. | |
void | SetPercentageRunningLight (const ActorPtr &actor, const float perc) |
Method to specify the % chance of running any traffic light | |
void | SetPercentageRunningSign (const ActorPtr &actor, const float perc) |
Method to specify the % chance of running any traffic sign | |
void | SetPercentageSpeedDifference (const ActorPtr &actor, const float percentage) |
Method to set a vehicle's % decrease in velocity with respect to the speed limit. | |
void | SetRandomDeviceSeed (const uint64_t seed) |
Method to set randomization seed. | |
void | SetRandomLeftLaneChangePercentage (const ActorPtr &actor, const float percentage) |
Method to set % to randomly do a left lane change. | |
void | SetRandomRightLaneChangePercentage (const ActorPtr &actor, const float percentage) |
Method to set % to randomly do a right lane change. | |
void | SetRespawnDormantVehicles (const bool mode_switch) |
Method to set automatic respawn of dormant vehicles. | |
void | SetSynchronousMode (bool mode) |
Method to switch traffic manager into synchronous execution. | |
void | SetSynchronousModeTimeOutInMiliSecond (double time) |
Method to set Tick timeout for synchronous execution. | |
void | SetUpdateVehicleLights (const ActorPtr &actor, const bool do_update) |
Method to set the automatic management of the vehicle lights | |
virtual void | ShutDown () |
void | Start () |
To start the TrafficManager. | |
void | Stop () |
To stop the TrafficManager. | |
bool | SynchronousTick () |
Method to provide synchronous tick | |
TrafficManagerRemote (const std::pair< std::string, uint16_t > &_serverTM, carla::client::detail::EpisodeProxy &episodeProxy) | |
Constructor store remote location information. | |
void | UnregisterVehicles (const std::vector< ActorPtr > &actor_list) |
This method unregisters a vehicle from traffic manager. | |
void | UpdateImportedRoute (const ActorId &actor_id, const Route route) |
Method to update an already set route. | |
void | UpdateUploadPath (const ActorId &actor_id, const Path path) |
Method to update an already set path. | |
virtual | ~TrafficManagerRemote () |
Destructor. | |
Public 成员函数 继承自 carla::traffic_manager::TrafficManagerBase | |
TrafficManagerBase () | |
Protected constructor for singleton lifecycle management. | |
virtual | ~TrafficManagerBase () |
Destructor. | |
Private 属性 | |
std::condition_variable | _cv |
bool | _keep_alive = true |
std::mutex | _mutex |
TrafficManagerClient | client |
Remote client using the IP and port information it connects to as remote RPC traffic manager server. | |
carla::client::detail::EpisodeProxy | episodeProxyTM |
CARLA client connection object. | |
The function of this class is to integrate all the various stages of the traffic manager appropriately using messengers.
在文件 TrafficManagerRemote.h 第 28 行定义.
carla::traffic_manager::TrafficManagerRemote::TrafficManagerRemote | ( | const std::pair< std::string, uint16_t > & | _serverTM, |
carla::client::detail::EpisodeProxy & | episodeProxy ) |
Constructor store remote location information.
在文件 TrafficManagerRemote.cpp 第 16 行定义.
引用了 Start().
|
virtual |
|
virtual |
Method to get the vehicle's action buffer.
实现了 carla::traffic_manager::TrafficManagerBase.
在文件 TrafficManagerRemote.cpp 第 280 行定义.
|
virtual |
Get CARLA episode information.
实现了 carla::traffic_manager::TrafficManagerBase.
在文件 TrafficManagerRemote.cpp 第 292 行定义.
引用了 episodeProxyTM.
|
virtual |
Method to get the vehicle's next action.
实现了 carla::traffic_manager::TrafficManagerBase.
在文件 TrafficManagerRemote.cpp 第 276 行定义.
void carla::traffic_manager::TrafficManagerRemote::HealthCheckRemoteTM | ( | ) |
Method to check server is alive or not.
在文件 TrafficManagerRemote.cpp 第 288 行定义.
被这些函数引用 carla::traffic_manager::TrafficManager::CreateTrafficManagerClient().
|
virtual |
This method registers a vehicle with the traffic manager.
实现了 carla::traffic_manager::TrafficManagerBase.
在文件 TrafficManagerRemote.cpp 第 92 行定义.
|
virtual |
To release the traffic manager.
实现了 carla::traffic_manager::TrafficManagerBase.
在文件 TrafficManagerRemote.cpp 第 79 行定义.
引用了 Stop().
被这些函数引用 ~TrafficManagerRemote().
|
virtual |
Method to remove a route.
实现了 carla::traffic_manager::TrafficManagerBase.
在文件 TrafficManagerRemote.cpp 第 244 行定义.
|
virtual |
Method to remove a path.
实现了 carla::traffic_manager::TrafficManagerBase.
在文件 TrafficManagerRemote.cpp 第 230 行定义.
|
virtual |
To reset the traffic manager.
实现了 carla::traffic_manager::TrafficManagerBase.
在文件 TrafficManagerRemote.cpp 第 83 行定义.
引用了 episodeProxyTM, carla::client::detail::EpisodeProxyImpl< PointerT >::Lock(), Start() , 以及 Stop().
|
virtual |
Enable/disable automatic lane change on a vehicle.
实现了 carla::traffic_manager::TrafficManagerBase.
在文件 TrafficManagerRemote.cpp 第 153 行定义.
|
virtual |
Method to set boundaries for respawning vehicles.
实现了 carla::traffic_manager::TrafficManagerBase.
在文件 TrafficManagerRemote.cpp 第 256 行定义.
|
virtual |
Method to set collision detection rules between vehicles.
实现了 carla::traffic_manager::TrafficManagerBase.
在文件 TrafficManagerRemote.cpp 第 140 行定义.
|
virtual |
Method to set our own imported path.
实现了 carla::traffic_manager::TrafficManagerBase.
在文件 TrafficManagerRemote.cpp 第 224 行定义.
|
virtual |
Set a vehicle's exact desired velocity.
实现了 carla::traffic_manager::TrafficManagerBase.
在文件 TrafficManagerRemote.cpp 第 114 行定义.
|
virtual |
Method to specify how much distance a vehicle should maintain to the leading vehicle.
实现了 carla::traffic_manager::TrafficManagerBase.
在文件 TrafficManagerRemote.cpp 第 159 行定义.
|
virtual |
Method to force lane change on a vehicle.
Direction flag can be set to true for left and false for right.
实现了 carla::traffic_manager::TrafficManagerBase.
在文件 TrafficManagerRemote.cpp 第 147 行定义.
|
virtual |
Method to specify Global Distance
实现了 carla::traffic_manager::TrafficManagerBase.
在文件 TrafficManagerRemote.cpp 第 165 行定义.
|
virtual |
Method to set a global lane offset displacement from the center line.
Positive values imply a right offset while negative ones mean a left one.
实现了 carla::traffic_manager::TrafficManagerBase.
在文件 TrafficManagerRemote.cpp 第 130 行定义.
|
virtual |
Method to set a global % decrease in velocity with respect to the speed limit.
If less than 0, it's a % increase.
实现了 carla::traffic_manager::TrafficManagerBase.
在文件 TrafficManagerRemote.cpp 第 120 行定义.
|
virtual |
Method to set hybrid physics mode.
实现了 carla::traffic_manager::TrafficManagerBase.
在文件 TrafficManagerRemote.cpp 第 212 行定义.
|
virtual |
Method to set hybrid physics radius.
实现了 carla::traffic_manager::TrafficManagerBase.
在文件 TrafficManagerRemote.cpp 第 216 行定义.
|
virtual |
Method to set our own imported route.
实现了 carla::traffic_manager::TrafficManagerBase.
在文件 TrafficManagerRemote.cpp 第 238 行定义.
|
virtual |
Method to set % to keep on the right lane.
实现了 carla::traffic_manager::TrafficManagerBase.
在文件 TrafficManagerRemote.cpp 第 194 行定义.
|
virtual |
Method to set a lane offset displacement from the center line.
Positive values imply a right offset while negative ones mean a left one.
实现了 carla::traffic_manager::TrafficManagerBase.
在文件 TrafficManagerRemote.cpp 第 124 行定义.
|
virtual |
Method to set limits for boundaries when respawning vehicles.
实现了 carla::traffic_manager::TrafficManagerBase.
在文件 TrafficManagerRemote.cpp 第 260 行定义.
|
virtual |
Method to set Open Street Map mode.
实现了 carla::traffic_manager::TrafficManagerBase.
在文件 TrafficManagerRemote.cpp 第 220 行定义.
|
virtual |
Method to specify the % chance of ignoring collisions with any vehicle.
实现了 carla::traffic_manager::TrafficManagerBase.
在文件 TrafficManagerRemote.cpp 第 176 行定义.
|
virtual |
Method to specify the % chance of ignoring collisions with any walker.
实现了 carla::traffic_manager::TrafficManagerBase.
在文件 TrafficManagerRemote.cpp 第 170 行定义.
|
virtual |
Method to specify the % chance of running any traffic light
实现了 carla::traffic_manager::TrafficManagerBase.
在文件 TrafficManagerRemote.cpp 第 182 行定义.
|
virtual |
Method to specify the % chance of running any traffic sign
实现了 carla::traffic_manager::TrafficManagerBase.
在文件 TrafficManagerRemote.cpp 第 188 行定义.
|
virtual |
Method to set a vehicle's % decrease in velocity with respect to the speed limit.
If less than 0, it's a % increase.
实现了 carla::traffic_manager::TrafficManagerBase.
在文件 TrafficManagerRemote.cpp 第 108 行定义.
|
virtual |
Method to set randomization seed.
实现了 carla::traffic_manager::TrafficManagerBase.
在文件 TrafficManagerRemote.cpp 第 296 行定义.
|
virtual |
Method to set % to randomly do a left lane change.
实现了 carla::traffic_manager::TrafficManagerBase.
在文件 TrafficManagerRemote.cpp 第 200 行定义.
|
virtual |
Method to set % to randomly do a right lane change.
实现了 carla::traffic_manager::TrafficManagerBase.
在文件 TrafficManagerRemote.cpp 第 206 行定义.
|
virtual |
Method to set automatic respawn of dormant vehicles.
实现了 carla::traffic_manager::TrafficManagerBase.
在文件 TrafficManagerRemote.cpp 第 252 行定义.
|
virtual |
Method to switch traffic manager into synchronous execution.
实现了 carla::traffic_manager::TrafficManagerBase.
在文件 TrafficManagerRemote.cpp 第 268 行定义.
|
virtual |
Method to set Tick timeout for synchronous execution.
实现了 carla::traffic_manager::TrafficManagerBase.
在文件 TrafficManagerRemote.cpp 第 272 行定义.
|
virtual |
Method to set the automatic management of the vehicle lights
实现了 carla::traffic_manager::TrafficManagerBase.
在文件 TrafficManagerRemote.cpp 第 134 行定义.
|
virtual |
实现了 carla::traffic_manager::TrafficManagerBase.
在文件 TrafficManagerRemote.cpp 第 264 行定义.
|
virtual |
To start the TrafficManager.
Until connection active
Create error msg
TSet the error message
实现了 carla::traffic_manager::TrafficManagerBase.
在文件 TrafficManagerRemote.cpp 第 31 行定义.
引用了 _cv, _keep_alive, episodeProxyTM , 以及 carla::client::detail::EpisodeProxyImpl< PointerT >::Lock().
被这些函数引用 Reset() , 以及 TrafficManagerRemote().
|
virtual |
To stop the TrafficManager.
实现了 carla::traffic_manager::TrafficManagerBase.
在文件 TrafficManagerRemote.cpp 第 70 行定义.
引用了 _cv, _keep_alive , 以及 _mutex.
被这些函数引用 Release() , 以及 Reset().
|
virtual |
Method to provide synchronous tick
实现了 carla::traffic_manager::TrafficManagerBase.
在文件 TrafficManagerRemote.cpp 第 284 行定义.
|
virtual |
This method unregisters a vehicle from traffic manager.
实现了 carla::traffic_manager::TrafficManagerBase.
在文件 TrafficManagerRemote.cpp 第 100 行定义.
|
virtual |
Method to update an already set route.
实现了 carla::traffic_manager::TrafficManagerBase.
在文件 TrafficManagerRemote.cpp 第 248 行定义.
|
virtual |
Method to update an already set path.
实现了 carla::traffic_manager::TrafficManagerBase.
在文件 TrafficManagerRemote.cpp 第 234 行定义.
|
private |
在文件 TrafficManagerRemote.h 第 187 行定义.
|
private |
在文件 TrafficManagerRemote.h 第 191 行定义.
|
private |
在文件 TrafficManagerRemote.h 第 189 行定义.
被这些函数引用 Stop().
|
private |
Remote client using the IP and port information it connects to as remote RPC traffic manager server.
在文件 TrafficManagerRemote.h 第 182 行定义.
|
private |
CARLA client connection object.
在文件 TrafficManagerRemote.h 第 185 行定义.
被这些函数引用 GetEpisodeProxy(), Reset() , 以及 Start().