CARLA
 
载入中...
搜索中...
未找到
Public 成员函数 | Private 属性 | 所有成员列表
carla::traffic_manager::TrafficManagerServer类 参考

#include <TrafficManagerServer.h>

+ carla::traffic_manager::TrafficManagerServer 的协作图:

Public 成员函数

TrafficManagerServeroperator= (const TrafficManagerServer &)=default
 
TrafficManagerServeroperator= (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.
 
 ~TrafficManagerServer ()
 

Private 属性

uint16_t _RPCPort
 Traffic manager server RPC port
 
::rpc::server * server = nullptr
 Server instance
 

详细描述

在文件 TrafficManagerServer.h27 行定义.

构造及析构函数说明

◆ TrafficManagerServer() [1/3]

carla::traffic_manager::TrafficManagerServer::TrafficManagerServer ( const TrafficManagerServer & )
default

◆ TrafficManagerServer() [2/3]

carla::traffic_manager::TrafficManagerServer::TrafficManagerServer ( TrafficManagerServer && )
default

◆ TrafficManagerServer() [3/3]

carla::traffic_manager::TrafficManagerServer::TrafficManagerServer ( uint16_t & RPCPort,
carla::traffic_manager::TrafficManagerBase * tm )
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.

在文件 TrafficManagerServer.h39 行定义.

引用了 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() , 以及 carla::traffic_manager::TrafficManagerBase::UpdateUploadPath().

+ 函数调用图:

◆ ~TrafficManagerServer()

carla::traffic_manager::TrafficManagerServer::~TrafficManagerServer ( )
inline

在文件 TrafficManagerServer.h290 行定义.

引用了 server.

成员函数说明

◆ operator=() [1/2]

TrafficManagerServer & carla::traffic_manager::TrafficManagerServer::operator= ( const TrafficManagerServer & )
default

◆ operator=() [2/2]

TrafficManagerServer & carla::traffic_manager::TrafficManagerServer::operator= ( TrafficManagerServer && )
default

◆ port()

uint16_t carla::traffic_manager::TrafficManagerServer::port ( ) const
inline

在文件 TrafficManagerServer.h298 行定义.

引用了 _RPCPort.

类成员变量说明

◆ _RPCPort

uint16_t carla::traffic_manager::TrafficManagerServer::_RPCPort
private

Traffic manager server RPC port

在文件 TrafficManagerServer.h305 行定义.

被这些函数引用 port().

◆ server

::rpc::server* carla::traffic_manager::TrafficManagerServer::server = nullptr
private

Server instance

在文件 TrafficManagerServer.h308 行定义.

被这些函数引用 ~TrafficManagerServer().


该类的文档由以下文件生成: