Provides communication with the rpc of TrafficManagerServer. 更多...
#include <TrafficManagerClient.h>
Public 成员函数 | |
ActionBuffer | GetActionBuffer (const ActorId &actor_id) |
Method to get the vehicle's action buffer. | |
Action | GetNextAction (const ActorId &actor_id) |
Method to get the vehicle's next action. | |
void | getServerDetails (std::string &_host, uint16_t &_port) |
Get parameters. | |
void | HealthCheckRemoteTM () |
Check if remote traffic manager is alive | |
TrafficManagerClient & | operator= (const TrafficManagerClient &)=default |
TrafficManagerClient & | operator= (TrafficManagerClient &&)=default |
void | RegisterVehicle (const std::vector< carla::rpc::Actor > &actor_list) |
Register vehicles to remote traffic manager server via RPC client. | |
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 list of points. | |
void | SetAutoLaneChange (const carla::rpc::Actor &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 carla::rpc::Actor &reference_actor, const carla::rpc::Actor &other_actor, const bool detect_collision) |
Method to set collision detection rules between vehicles. | |
void | SetCustomPath (const carla::rpc::Actor &actor, const Path path, const bool empty_buffer) |
Method to set our own imported path. | |
void | SetDesiredSpeed (const carla::rpc::Actor &_actor, const float value) |
Set a vehicle's exact desired velocity. | |
void | SetDistanceToLeadingVehicle (const carla::rpc::Actor &actor, const float distance) |
Method to specify how much distance a vehicle should maintain to the leading vehicle. | |
void | SetForceLaneChange (const carla::rpc::Actor &actor, const bool direction) |
Method to force lane change on a vehicle. | |
void | SetGlobalDistanceToLeadingVehicle (const float distance) |
Method to specify how much distance a vehicle should maintain to the Global leading vehicle. | |
void | SetGlobalLaneOffset (const float offset) |
Method to set a global lane offset displacement from the center line. | |
void | SetGlobalPercentageSpeedDifference (const float 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 mode. | |
void | SetImportedRoute (const carla::rpc::Actor &actor, const Route route, const bool empty_buffer) |
Method to set our own imported route. | |
void | SetKeepRightPercentage (const carla::rpc::Actor &actor, const float percentage) |
Method to set % to keep on the right lane. | |
void | SetLaneOffset (const carla::rpc::Actor &_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 boundaries for respawning vehicles. | |
void | SetOSMMode (const bool mode_switch) |
Method to set Open Street Map mode. | |
void | SetPercentageIgnoreVehicles (const carla::rpc::Actor &actor, const float percentage) |
Method to specify the % chance of ignoring collisions with any vehicle. | |
void | SetPercentageIgnoreWalkers (const carla::rpc::Actor &actor, const float percentage) |
Method to specify the % chance of ignoring collisions with any walker. | |
void | SetPercentageRunningLight (const carla::rpc::Actor &actor, const float percentage) |
Method to specify the % chance of running a traffic sign. | |
void | SetPercentageRunningSign (const carla::rpc::Actor &actor, const float percentage) |
Method to specify the % chance of running any traffic sign. | |
void | SetPercentageSpeedDifference (const carla::rpc::Actor &_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 carla::rpc::Actor &actor, const float percentage) |
Method to set % to randomly do a left lane change. | |
void | SetRandomRightLaneChangePercentage (const carla::rpc::Actor &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 | setServerDetails (const std::string &_host, const uint16_t &_port) |
Set parameters. | |
void | SetSynchronousMode (const bool mode) |
Method to switch traffic manager into synchronous execution. | |
void | SetSynchronousModeTimeOutInMiliSecond (const double time) |
Method to set tick timeout for synchronous execution. | |
void | SetUpdateVehicleLights (const carla::rpc::Actor &_actor, const bool do_update) |
Method to set the automatic management of the vehicle lights | |
void | ShutDown () |
bool | SynchronousTick () |
Method to provide synchronous tick. | |
TrafficManagerClient (const std::string &_host, const uint16_t &_port) | |
Parametric constructor to initialize the parameters. | |
TrafficManagerClient (const TrafficManagerClient &)=default | |
TrafficManagerClient (TrafficManagerClient &&)=default | |
void | UnregisterVehicle (const std::vector< carla::rpc::Actor > &actor_list) |
Unregister vehicles to remote traffic manager server via RPC client. | |
void | UpdateImportedRoute (const ActorId &actor_id, const Route route) |
Method to update an already set list of points. | |
void | UpdateUploadPath (const ActorId &actor_id, const Path path) |
Method to update an already set list of points. | |
~TrafficManagerClient () | |
Destructor method. | |
Private 属性 | |
::rpc::client * | _client = nullptr |
RPC client. | |
std::string | tmhost |
Server port and host. | |
uint16_t | tmport |
Provides communication with the rpc of TrafficManagerServer.
在文件 TrafficManagerClient.h 第 21 行定义.
|
default |
|
default |
|
inline |
Parametric constructor to initialize the parameters.
Create client instance.
在文件 TrafficManagerClient.h 第 32 行定义.
|
inline |
|
inline |
Method to get the vehicle's action buffer.
在文件 TrafficManagerClient.h 第 302 行定义.
引用了 _client , 以及 DEBUG_ASSERT.
|
inline |
Method to get the vehicle's next action.
在文件 TrafficManagerClient.h 第 295 行定义.
引用了 _client , 以及 DEBUG_ASSERT.
|
inline |
|
inline |
Check if remote traffic manager is alive
在文件 TrafficManagerClient.h 第 186 行定义.
引用了 _client , 以及 DEBUG_ASSERT.
|
default |
|
default |
|
inline |
Register vehicles to remote traffic manager server via RPC client.
在文件 TrafficManagerClient.h 第 66 行定义.
引用了 _client , 以及 DEBUG_ASSERT.
|
inline |
|
inline |
Method to remove a list of points.
在文件 TrafficManagerClient.h 第 247 行定义.
引用了 _client , 以及 DEBUG_ASSERT.
|
inline |
Enable/disable automatic lane change on a vehicle.
在文件 TrafficManagerClient.h 第 131 行定义.
引用了 _client , 以及 DEBUG_ASSERT.
|
inline |
Method to set boundaries for respawning vehicles.
在文件 TrafficManagerClient.h 第 283 行定义.
引用了 _client , 以及 DEBUG_ASSERT.
|
inline |
Method to set collision detection rules between vehicles.
在文件 TrafficManagerClient.h 第 118 行定义.
引用了 _client , 以及 DEBUG_ASSERT.
|
inline |
Method to set our own imported path.
在文件 TrafficManagerClient.h 第 241 行定义.
引用了 _client , 以及 DEBUG_ASSERT.
|
inline |
Set a vehicle's exact desired velocity.
在文件 TrafficManagerClient.h 第 92 行定义.
引用了 _client , 以及 DEBUG_ASSERT.
|
inline |
Method to specify how much distance a vehicle should maintain to the leading vehicle.
在文件 TrafficManagerClient.h 第 138 行定义.
引用了 _client , 以及 DEBUG_ASSERT.
|
inline |
Method to force lane change on a vehicle.
Direction flag can be set to true for left and false for right.
在文件 TrafficManagerClient.h 第 125 行定义.
引用了 _client , 以及 DEBUG_ASSERT.
|
inline |
Method to specify how much distance a vehicle should maintain to the Global leading vehicle.
在文件 TrafficManagerClient.h 第 193 行定义.
引用了 _client , 以及 DEBUG_ASSERT.
|
inline |
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.
在文件 TrafficManagerClient.h 第 106 行定义.
引用了 _client , 以及 DEBUG_ASSERT.
|
inline |
Method to set a global % decrease in velocity with respect to the speed limit.
If less than 0, it's a % increase.
在文件 TrafficManagerClient.h 第 99 行定义.
引用了 _client , 以及 DEBUG_ASSERT.
|
inline |
Method to set hybrid physics mode.
在文件 TrafficManagerClient.h 第 217 行定义.
引用了 _client , 以及 DEBUG_ASSERT.
|
inline |
Method to set hybrid physics mode.
在文件 TrafficManagerClient.h 第 223 行定义.
引用了 _client , 以及 DEBUG_ASSERT.
|
inline |
Method to set our own imported route.
在文件 TrafficManagerClient.h 第 259 行定义.
引用了 _client , 以及 DEBUG_ASSERT.
|
inline |
Method to set % to keep on the right lane.
在文件 TrafficManagerClient.h 第 199 行定义.
引用了 _client , 以及 DEBUG_ASSERT.
|
inline |
Method to set a lane offset displacement from the center line.
Positive values imply a right offset while negative ones mean a left one.
在文件 TrafficManagerClient.h 第 86 行定义.
引用了 _client , 以及 DEBUG_ASSERT.
|
inline |
Method to set boundaries for respawning vehicles.
在文件 TrafficManagerClient.h 第 289 行定义.
引用了 _client , 以及 DEBUG_ASSERT.
|
inline |
Method to set Open Street Map mode.
在文件 TrafficManagerClient.h 第 235 行定义.
引用了 _client , 以及 DEBUG_ASSERT.
|
inline |
Method to specify the % chance of ignoring collisions with any vehicle.
在文件 TrafficManagerClient.h 第 150 行定义.
引用了 _client , 以及 DEBUG_ASSERT.
|
inline |
Method to specify the % chance of ignoring collisions with any walker.
在文件 TrafficManagerClient.h 第 144 行定义.
引用了 _client , 以及 DEBUG_ASSERT.
|
inline |
Method to specify the % chance of running a traffic sign.
在文件 TrafficManagerClient.h 第 156 行定义.
引用了 _client , 以及 DEBUG_ASSERT.
|
inline |
Method to specify the % chance of running any traffic sign.
在文件 TrafficManagerClient.h 第 162 行定义.
引用了 _client , 以及 DEBUG_ASSERT.
|
inline |
Method to set a vehicle's % decrease in velocity with respect to the speed limit.
If less than 0, it's a % increase.
在文件 TrafficManagerClient.h 第 79 行定义.
引用了 _client , 以及 DEBUG_ASSERT.
|
inline |
Method to set randomization seed.
在文件 TrafficManagerClient.h 第 229 行定义.
引用了 _client , 以及 DEBUG_ASSERT.
|
inline |
Method to set % to randomly do a left lane change.
在文件 TrafficManagerClient.h 第 205 行定义.
引用了 _client , 以及 DEBUG_ASSERT.
|
inline |
Method to set % to randomly do a right lane change.
在文件 TrafficManagerClient.h 第 211 行定义.
引用了 _client , 以及 DEBUG_ASSERT.
|
inline |
Method to set automatic respawn of dormant vehicles.
在文件 TrafficManagerClient.h 第 277 行定义.
引用了 _client , 以及 DEBUG_ASSERT.
|
inline |
|
inline |
Method to switch traffic manager into synchronous execution.
在文件 TrafficManagerClient.h 第 168 行定义.
引用了 _client , 以及 DEBUG_ASSERT.
|
inline |
Method to set tick timeout for synchronous execution.
在文件 TrafficManagerClient.h 第 174 行定义.
引用了 _client , 以及 DEBUG_ASSERT.
|
inline |
Method to set the automatic management of the vehicle lights
在文件 TrafficManagerClient.h 第 112 行定义.
引用了 _client , 以及 DEBUG_ASSERT.
|
inline |
在文件 TrafficManagerClient.h 第 308 行定义.
引用了 _client , 以及 DEBUG_ASSERT.
|
inline |
Method to provide synchronous tick.
在文件 TrafficManagerClient.h 第 180 行定义.
引用了 _client , 以及 DEBUG_ASSERT.
|
inline |
Unregister vehicles to remote traffic manager server via RPC client.
在文件 TrafficManagerClient.h 第 72 行定义.
引用了 _client , 以及 DEBUG_ASSERT.
|
inline |
Method to update an already set list of points.
在文件 TrafficManagerClient.h 第 271 行定义.
引用了 _client , 以及 DEBUG_ASSERT.
|
inline |
Method to update an already set list of points.
在文件 TrafficManagerClient.h 第 253 行定义.
引用了 _client , 以及 DEBUG_ASSERT.
|
private |
RPC client.
在文件 TrafficManagerClient.h 第 316 行定义.
被这些函数引用 GetActionBuffer(), GetNextAction(), HealthCheckRemoteTM(), RegisterVehicle(), RemoveImportedRoute(), RemoveUploadPath(), SetAutoLaneChange(), SetBoundariesRespawnDormantVehicles(), SetCollisionDetection(), SetCustomPath(), SetDesiredSpeed(), SetDistanceToLeadingVehicle(), SetForceLaneChange(), SetGlobalDistanceToLeadingVehicle(), SetGlobalLaneOffset(), SetGlobalPercentageSpeedDifference(), SetHybridPhysicsMode(), SetHybridPhysicsRadius(), SetImportedRoute(), SetKeepRightPercentage(), SetLaneOffset(), SetMaxBoundaries(), SetOSMMode(), SetPercentageIgnoreVehicles(), SetPercentageIgnoreWalkers(), SetPercentageRunningLight(), SetPercentageRunningSign(), SetPercentageSpeedDifference(), SetRandomDeviceSeed(), SetRandomLeftLaneChangePercentage(), SetRandomRightLaneChangePercentage(), SetRespawnDormantVehicles(), SetSynchronousMode(), SetSynchronousModeTimeOutInMiliSecond(), SetUpdateVehicleLights(), ShutDown(), SynchronousTick(), TrafficManagerClient(), UnregisterVehicle(), UpdateImportedRoute(), UpdateUploadPath() , 以及 ~TrafficManagerClient().
|
private |
Server port and host.
在文件 TrafficManagerClient.h 第 319 行定义.
被这些函数引用 getServerDetails(), setServerDetails() , 以及 TrafficManagerClient().
|
private |
在文件 TrafficManagerClient.h 第 320 行定义.
被这些函数引用 getServerDetails(), setServerDetails() , 以及 TrafficManagerClient().