CARLA
 
载入中...
搜索中...
未找到
命名空间 | | 类型定义 | 枚举 | 函数
carla::client 命名空间参考

包含客户端相关类和定义的命名空间。 更多...

命名空间

namespace  detail
 

class  Actor
 表示模拟中的一个行为体(Actor)。 更多...
 
class  ActorAttribute
 An attribute of an ActorBlueprint. 更多...
 
class  ActorAttributeValue
 
class  ActorAttributeValueAccess
 
class  ActorBlueprint
 包含生成参与者所需的所有必要信息。 更多...
 
class  ActorInitializer
 用于初始化 Actor 类。只有 ActorFactory 可以创建此对象,因此只有 ActorFactory 可以创建 Actor。 更多...
 
class  ActorList
 
struct  ActorSnapshot
 
class  BadAttributeCast
 当ActorAttribute的值无法转换为请求的类型时抛出异常。 更多...
 
class  BlueprintLibrary
 
class  Client
 
class  ClientSideSensor
 
class  DebugHelper
 
class  FileTransfer
 
class  InvalidAttributeValue
 当赋予ActorAttribute的值无法转换为其类型时抛出异常。 更多...
 
class  Junction
 
class  Landmark
 Landmark 类表示地图中的一个地标,该地标与某个信号相关联。 包含关于地标的各种属性和信息,可以用来在地图上找到该地标以及获取其相关数据。 更多...
 
class  LaneInvasionSensor
 LaneInvasionSensor类是一个检测车辆压线的传感器,继承自ClientSideSensor。 更多...
 
class  Light
 
class  LightManager
 
struct  LightState
 表示车辆灯光状态的结构体。
更多...
 
class  RssSensor
 实现carla::client::Sensor接口的RSS传感器类 这个类是RssCheck类的代理 更多...
 
class  Sensor
 传感器基类,继承自Actor类。 更多...
 
class  ServerSideSensor
 
class  TimeoutException
 表示客户端操作超时的异常类。
更多...
 
class  Timestamp
 
class  TrafficLight
 
class  TrafficSign
 
class  Vehicle
 车辆类的前向声明,用于在LaneInvasionSensor类中可能的引用。 更多...
 
class  Walker
 行人角色类,继承自Actor类。 更多...
 
class  WalkerAIController
 
class  Waypoint
 路径点类,表示道路上的特定位置。 更多...
 
class  World
 
class  WorldSnapshot
 

类型定义

using Color = sensor::data::Color
 别名定义,将sensor::data::Color命名空间下的Color类重命名为当前命名空间下的Color。
 
using LightGroup = rpc::LightState::LightGroup
 
using LightId = uint32_t
 定义灯光ID的类型,使用uint32_t表示。
 
using Shape = rpc::DebugShape
 

枚举

enum class  GarbageCollectionPolicy { Disabled , Enabled , Inherit }
 

函数

template<>
auto ActorAttributeValueAccess::As< rpc::ActorAttributeType::Bool > () const
 
template<>
auto ActorAttributeValueAccess::As< rpc::ActorAttributeType::Float > () const
 
template<>
auto ActorAttributeValueAccess::As< rpc::ActorAttributeType::Int > () const
 
template<>
auto ActorAttributeValueAccess::As< rpc::ActorAttributeType::RGBColor > () const
 
template<>
auto ActorAttributeValueAccess::As< rpc::ActorAttributeType::String > () const
 
template<>
sensor::data::Color ActorAttributeValueAccess::As< sensor::data::Color > () const
 
template<>
sensor::data::Color ActorAttributeValueAccess::As< sensor::data::Color > () const
 
template<>
std::string ActorAttributeValueAccess::As< std::string > () const
 
template<>
std::string ActorAttributeValueAccess::As< std::string > () const
 
template<typename T >
static void DrawShape (detail::EpisodeProxy &episode, const T &primitive, rpc::Color color, float life_time, bool persistent_lines)
 
template<typename Map , typename Container >
static void FillMap (Map &destination, Container &source)
 
template<typename AttributesT >
static bool GetControlIsSticky (const AttributesT &attributes)
 
static auto MakeMap (const std::string &opendrive_contents)
 
template<typename EnumT >
static EnumT operator& (EnumT lhs, EnumT rhs)
 
template<typename EnumT >
static EnumT operator| (EnumT lhs, EnumT rhs)
 

详细描述

包含客户端相关类和定义的命名空间。

CARLA内存管理相关功能的命名空间。

该命名空间包含与内存管理相关的类和函数,例如智能指针等。

定义了不可复制类的基类。

该头文件定义了一个基类,用于防止派生类被复制或赋值。

定义了用于几何变换的类。

该头文件包含了处理3D几何变换的类,例如平移、旋转和缩放等。

定义了车道标记的类。

该头文件包含了表示车道标记(如虚线、实线等)的类。

定义了道路信息记录的类。

该头文件包含了表示道路信息记录(如交通标志、信号灯等)的类。

定义了路径点的类。

该头文件包含了表示路径点(道路上的特定位置)的类。

定义了车道的类。

该头文件包含了表示车道(道路上的行驶区域)的类。

定义了道路类型的枚举和辅助函数。

该头文件包含了表示不同道路类型(如高速公路、普通道路等)的枚举以及相关的辅助函数。

Boost库中的可选值类型。

该头文件包含了Boost库中的boost::optional模板类,用于表示一个可能不存在的值。

CARLA客户端相关的命名空间。

类型定义说明

◆ Color

别名定义,将sensor::data::Color命名空间下的Color类重命名为当前命名空间下的Color。

在文件 client/LightState.h15 行定义.

◆ LightGroup

在文件 Light.cpp16 行定义.

◆ LightId

using carla::client::LightId = uint32_t

定义灯光ID的类型,使用uint32_t表示。

在文件 client/LightState.h17 行定义.

◆ Shape

在文件 DebugHelper.cpp15 行定义.

枚举类型说明

◆ GarbageCollectionPolicy

枚举值
Disabled 
Enabled 
Inherit 

在文件 GarbageCollectionPolicy.h12 行定义.

函数说明

◆ ActorAttributeValueAccess::As< rpc::ActorAttributeType::Bool >()

在文件 LibCarla/source/carla/client/ActorAttribute.h139 行定义.

被这些函数引用 carla::client::ActorAttributeValueAccess::Validate().

+ 这是这个函数的调用关系图:

◆ ActorAttributeValueAccess::As< rpc::ActorAttributeType::Float >()

在文件 LibCarla/source/carla/client/ActorAttribute.h151 行定义.

被这些函数引用 carla::client::ActorAttributeValueAccess::Validate().

+ 这是这个函数的调用关系图:

◆ ActorAttributeValueAccess::As< rpc::ActorAttributeType::Int >()

在文件 LibCarla/source/carla/client/ActorAttribute.h145 行定义.

被这些函数引用 carla::client::ActorAttributeValueAccess::Validate().

+ 这是这个函数的调用关系图:

◆ ActorAttributeValueAccess::As< rpc::ActorAttributeType::RGBColor >()

在文件 LibCarla/source/carla/client/ActorAttribute.h163 行定义.

引用了 ActorAttributeValueAccess::As< sensor::data::Color >().

被这些函数引用 carla::client::ActorAttributeValueAccess::Validate().

+ 函数调用图:
+ 这是这个函数的调用关系图:

◆ ActorAttributeValueAccess::As< rpc::ActorAttributeType::String >()

在文件 LibCarla/source/carla/client/ActorAttribute.h157 行定义.

引用了 ActorAttributeValueAccess::As< std::string >().

被这些函数引用 carla::client::ActorAttributeValueAccess::Validate().

+ 函数调用图:
+ 这是这个函数的调用关系图:

◆ ActorAttributeValueAccess::As< sensor::data::Color >() [1/2]

在文件 ActorAttribute.cpp115 行定义.

引用了 LIBCARLA_THROW_BAD_VALUE_CAST, LIBCARLA_THROW_INVALID_VALUE, carla::log_error(), RGBColor , 以及 carla::StringUtil::Split().

被这些函数引用 ActorAttributeValueAccess::As< rpc::ActorAttributeType::RGBColor >().

+ 函数调用图:
+ 这是这个函数的调用关系图:

◆ ActorAttributeValueAccess::As< sensor::data::Color >() [2/2]

在文件 ActorAttribute.cpp115 行定义.

引用了 LIBCARLA_THROW_BAD_VALUE_CAST, LIBCARLA_THROW_INVALID_VALUE, carla::log_error(), RGBColor , 以及 carla::StringUtil::Split().

被这些函数引用 ActorAttributeValueAccess::As< rpc::ActorAttributeType::RGBColor >().

+ 函数调用图:
+ 这是这个函数的调用关系图:

◆ ActorAttributeValueAccess::As< std::string >() [1/2]

template<>
std::string carla::client::ActorAttributeValueAccess::As< std::string > ( ) const

在文件 ActorAttribute.cpp105 行定义.

引用了 LIBCARLA_THROW_BAD_VALUE_CAST , 以及 String.

被这些函数引用 ActorAttributeValueAccess::As< rpc::ActorAttributeType::String >().

+ 这是这个函数的调用关系图:

◆ ActorAttributeValueAccess::As< std::string >() [2/2]

template<>
std::string carla::client::ActorAttributeValueAccess::As< std::string > ( ) const

在文件 ActorAttribute.cpp105 行定义.

引用了 LIBCARLA_THROW_BAD_VALUE_CAST , 以及 String.

被这些函数引用 ActorAttributeValueAccess::As< rpc::ActorAttributeType::String >().

+ 这是这个函数的调用关系图:

◆ DrawShape()

template<typename T >
static void carla::client::DrawShape ( detail::EpisodeProxy & episode,
const T & primitive,
rpc::Color color,
float life_time,
bool persistent_lines )
static

在文件 DebugHelper.cpp20 行定义.

引用了 carla::client::detail::EpisodeProxyImpl< PointerT >::Lock().

被这些函数引用 carla::client::DebugHelper::DrawArrow(), carla::client::DebugHelper::DrawBox(), carla::client::DebugHelper::DrawHUDArrow(), carla::client::DebugHelper::DrawHUDBox(), carla::client::DebugHelper::DrawHUDLine(), carla::client::DebugHelper::DrawHUDPoint(), carla::client::DebugHelper::DrawLine(), carla::client::DebugHelper::DrawPoint() , 以及 carla::client::DebugHelper::DrawString().

+ 函数调用图:
+ 这是这个函数的调用关系图:

◆ FillMap()

template<typename Map , typename Container >
static void carla::client::FillMap ( Map & destination,
Container & source )
static

在文件 ActorBlueprint.cpp22 行定义.

被这些函数引用 carla::client::ActorBlueprint::ActorBlueprint().

+ 这是这个函数的调用关系图:

◆ GetControlIsSticky()

template<typename AttributesT >
static bool carla::client::GetControlIsSticky ( const AttributesT & attributes)
static

在文件 Vehicle.cpp26 行定义.

◆ MakeMap()

static auto carla::client::MakeMap ( const std::string & opendrive_contents)
static

在文件 client/Map.cpp22 行定义.

引用了 carla::opendrive::OpenDriveParser::Load() , 以及 carla::throw_exception().

+ 函数调用图:

◆ operator&()

template<typename EnumT >
static EnumT carla::client::operator& ( EnumT lhs,
EnumT rhs )
static

在文件 client/Waypoint.cpp183 行定义.

◆ operator|()

template<typename EnumT >
static EnumT carla::client::operator| ( EnumT lhs,
EnumT rhs )
static

在文件 client/Waypoint.cpp191 行定义.