#include <TrafficManagerServer.h>
Public Member Functions | |
TrafficManagerServer & | operator= (const TrafficManagerServer &)=default |
TrafficManagerServer & | operator= (TrafficManagerServer &&)=default |
uint16_t | port () const |
TrafficManagerServer (const TrafficManagerServer &)=default | |
TrafficManagerServer (TrafficManagerServer &&)=default | |
TrafficManagerServer (uint16_t &RPCPort, carla::traffic_manager::TrafficManagerBase *tm) | |
Here RPCPort is the traffic manager local instance RPC server port where it can listen to remote traffic managers and apply the changes to local instance through a TrafficManagerBase pointer. More... | |
~TrafficManagerServer () | |
Private Attributes | |
uint16_t | _RPCPort |
Traffic manager server RPC port. More... | |
::rpc::server * | server = nullptr |
Server instance. More... | |
Definition at line 27 of file TrafficManagerServer.h.
|
default |
|
default |
|
inline |
Here RPCPort is the traffic manager local instance RPC server port where it can listen to remote traffic managers and apply the changes to local instance through a TrafficManagerBase pointer.
Create server instance.
Update port number and try again.
If server created.
If server still not created throw a runtime exception.
If the server creation was successful we are binding a lambda function to the name "register_vehicle".
Binding a lambda function to the name "unregister_vehicle".
Method to set a vehicle's % decrease in velocity with respect to the speed limit. If less than 0, it's a % increase.
Method to set a lane offset displacement from the center line. Positive values imply a right offset while negative ones mean a left one.
Set a vehicle's exact desired velocity.
Method to set the automatic management of the vehicle lights
Method to set a global % decrease in velocity with respect to the speed limit. If less than 0, it's a % increase.
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.
Method to set collision detection rules between vehicles.
Method to force lane change on a vehicle. Direction flag can be set to true for left and false for right.
Enable/disable automatic lane change on a vehicle.
Method to specify how much distance a vehicle should maintain to the leading vehicle.
Method to the Global Distance to Leading vehicle
Method to specify the % chance of running any traffic light.
Method to specify the % chance of running any traffic sign.
Method to specify the % chance of ignoring collisions with any walker.
Method to specify the % chance of ignoring collisions with any vehicle.
Method to set % to keep on the right lane.
Method to set % to randomly do a left lane change.
Method to set % to randomly do a right lane change.
Method to set hybrid physics mode.
Method to set hybrid physics radius.
Method to set hybrid physics radius.
Method to set our own imported path.
Method to remove a list of points.
Method to update an already set list of points.
Method to set our own imported route.
Method to remove a route.
Method to update an already set list of points.
Method to set respawn dormant vehicles mode.
Method to set respawn dormant vehicles mode.
Method to get the vehicle's next action.
Method to get the vehicle's action buffer.
Method to set synchronous mode.
Method to set tick timeout for synchronous execution.
Method to set randomization seed.
Method to provide synchronous tick.
Method to check server is alive or not.
Run traffic manager server to respond of any user client in asynchronous mode.
Definition at line 39 of file TrafficManagerServer.h.
References carla::client::detail::Get(), carla::client::detail::ActorVariant::Get(), carla::traffic_manager::TrafficManagerBase::GetActionBuffer(), carla::traffic_manager::TrafficManagerBase::GetEpisodeProxy(), carla::traffic_manager::TrafficManagerBase::GetNextAction(), carla::traffic_manager::constants::Networking::MIN_TRY_COUNT, carla::traffic_manager::TrafficManagerBase::RegisterVehicles(), carla::traffic_manager::TrafficManagerBase::Release(), carla::traffic_manager::TrafficManagerBase::RemoveImportedRoute(), carla::traffic_manager::TrafficManagerBase::RemoveUploadPath(), carla::traffic_manager::TrafficManagerBase::SetAutoLaneChange(), carla::traffic_manager::TrafficManagerBase::SetBoundariesRespawnDormantVehicles(), carla::traffic_manager::TrafficManagerBase::SetCollisionDetection(), carla::traffic_manager::TrafficManagerBase::SetCustomPath(), carla::traffic_manager::TrafficManagerBase::SetDesiredSpeed(), carla::traffic_manager::TrafficManagerBase::SetDistanceToLeadingVehicle(), carla::traffic_manager::TrafficManagerBase::SetForceLaneChange(), carla::traffic_manager::TrafficManagerBase::SetGlobalDistanceToLeadingVehicle(), carla::traffic_manager::TrafficManagerBase::SetGlobalLaneOffset(), carla::traffic_manager::TrafficManagerBase::SetGlobalPercentageSpeedDifference(), carla::traffic_manager::TrafficManagerBase::SetHybridPhysicsMode(), carla::traffic_manager::TrafficManagerBase::SetHybridPhysicsRadius(), carla::traffic_manager::TrafficManagerBase::SetImportedRoute(), carla::traffic_manager::TrafficManagerBase::SetKeepRightPercentage(), carla::traffic_manager::TrafficManagerBase::SetLaneOffset(), carla::traffic_manager::TrafficManagerBase::SetOSMMode(), carla::traffic_manager::TrafficManagerBase::SetPercentageIgnoreVehicles(), carla::traffic_manager::TrafficManagerBase::SetPercentageIgnoreWalkers(), carla::traffic_manager::TrafficManagerBase::SetPercentageRunningLight(), carla::traffic_manager::TrafficManagerBase::SetPercentageRunningSign(), carla::traffic_manager::TrafficManagerBase::SetPercentageSpeedDifference(), carla::traffic_manager::TrafficManagerBase::SetRandomDeviceSeed(), carla::traffic_manager::TrafficManagerBase::SetRandomLeftLaneChangePercentage(), carla::traffic_manager::TrafficManagerBase::SetRandomRightLaneChangePercentage(), carla::traffic_manager::TrafficManagerBase::SetRespawnDormantVehicles(), carla::traffic_manager::TrafficManagerBase::SetSynchronousMode(), carla::traffic_manager::TrafficManagerBase::SetSynchronousModeTimeOutInMiliSecond(), carla::traffic_manager::TrafficManagerBase::SetUpdateVehicleLights(), carla::traffic_manager::TrafficManagerBase::SynchronousTick(), carla::throw_exception(), carla::traffic_manager::TrafficManagerBase::UnregisterVehicles(), carla::traffic_manager::TrafficManagerBase::UpdateImportedRoute(), and carla::traffic_manager::TrafficManagerBase::UpdateUploadPath().
|
inline |
Definition at line 290 of file TrafficManagerServer.h.
|
default |
|
default |
|
inline |
Definition at line 298 of file TrafficManagerServer.h.
Referenced by carla::traffic_manager::TrafficManagerLocal::~TrafficManagerLocal().
|
private |
Traffic manager server RPC port.
Definition at line 305 of file TrafficManagerServer.h.
|
private |
Server instance.
Definition at line 308 of file TrafficManagerServer.h.