该类表示用户在 IDL 文件中定义的结构 CarlaEgoVehicleControl。
<>
更多...
#include <CarlaEgoVehicleControl.h>
Public 成员函数 | |
eProsima_user_DllExport float & | brake () |
该函数返回对成员 brake 的引用。 | |
eProsima_user_DllExport float | brake () const |
该函数返回成员 brake 的值。 | |
eProsima_user_DllExport void | brake (float _brake) |
该函数设置成员 brake 的值。 | |
eProsima_user_DllExport | CarlaEgoVehicleControl () |
默认构造函数。 | |
eProsima_user_DllExport | CarlaEgoVehicleControl (CarlaEgoVehicleControl &&x) noexcept |
移动构造函数。 | |
eProsima_user_DllExport | CarlaEgoVehicleControl (const CarlaEgoVehicleControl &x) |
复制构造函数。 | |
eProsima_user_DllExport void | deserialize (eprosima::fastcdr::Cdr &cdr) |
该函数使用 CDR 序列化反序列化一个对象。 | |
eProsima_user_DllExport int32_t & | gear () |
该函数返回对成员 gear 的引用。 | |
eProsima_user_DllExport int32_t | gear () const |
该函数返回成员 gear 的值。 | |
eProsima_user_DllExport void | gear (int32_t _gear) |
该函数设置成员 gear 的值。 | |
eProsima_user_DllExport bool & | hand_brake () |
该函数返回对成员 hand_brake 的引用。 | |
eProsima_user_DllExport bool | hand_brake () const |
该函数返回成员 hand_brake 的值。 | |
eProsima_user_DllExport void | hand_brake (bool _hand_brake) |
该函数设置成员 hand_brake 的值。 | |
eProsima_user_DllExport std_msgs::msg::Header & | header () |
该函数返回对成员 header 的引用。 | |
eProsima_user_DllExport const std_msgs::msg::Header & | header () const |
该函数返回对成员 header 的常量引用。 | |
eProsima_user_DllExport void | header (const std_msgs::msg::Header &_header) |
该函数复制成员 header 的值。 | |
eProsima_user_DllExport void | header (std_msgs::msg::Header &&_header) |
该函数移动成员 header 的值。 | |
eProsima_user_DllExport bool & | manual_gear_shift () |
该函数返回对成员 manual_gear_shift 的引用。 | |
eProsima_user_DllExport bool | manual_gear_shift () const |
该函数返回成员 manual_gear_shift 的值。 | |
eProsima_user_DllExport void | manual_gear_shift (bool _manual_gear_shift) |
该函数设置成员 manual_gear_shift 的值。 | |
eProsima_user_DllExport bool | operator!= (const CarlaEgoVehicleControl &x) const |
比较运算符。 | |
eProsima_user_DllExport CarlaEgoVehicleControl & | operator= (CarlaEgoVehicleControl &&x) noexcept |
移动赋值运算符。 | |
eProsima_user_DllExport CarlaEgoVehicleControl & | operator= (const CarlaEgoVehicleControl &x) |
复制赋值运算符。 | |
eProsima_user_DllExport bool | operator== (const CarlaEgoVehicleControl &x) const |
比较运算符。 | |
eProsima_user_DllExport bool & | reverse () |
该函数返回对成员 reverse 的引用。 | |
eProsima_user_DllExport bool | reverse () const |
该函数返回成员 reverse 的值。 | |
eProsima_user_DllExport void | reverse (bool _reverse) |
该函数设置成员 reverse 的值。 | |
eProsima_user_DllExport void | serialize (eprosima::fastcdr::Cdr &cdr) const |
该函数使用 CDR 序列化序列化一个对象。 | |
eProsima_user_DllExport void | serializeKey (eprosima::fastcdr::Cdr &cdr) const |
该函数使用 CDR 序列化序列化对象的键成员。 | |
eProsima_user_DllExport float & | steer () |
该函数返回对成员 steer 的引用。 | |
eProsima_user_DllExport float | steer () const |
该函数返回成员 steer 的值。 | |
eProsima_user_DllExport void | steer (float _steer) |
该函数设置成员 steer 的值。 | |
eProsima_user_DllExport float & | throttle () |
该函数返回对成员 throttle 的引用。 | |
eProsima_user_DllExport float | throttle () const |
该函数返回成员 throttle 的值。 | |
eProsima_user_DllExport void | throttle (float _throttle) |
该函数设置成员 throttle 的值。 | |
eProsima_user_DllExport | ~CarlaEgoVehicleControl () |
默认析构函数。 | |
静态 Public 成员函数 | |
static eProsima_user_DllExport size_t | getCdrSerializedSize (const carla_msgs::msg::CarlaEgoVehicleControl &data, size_t current_alignment=0) |
该函数返回数据的序列化大小,取决于缓冲区对齐方式。 | |
static eProsima_user_DllExport size_t | getKeyMaxCdrSerializedSize (size_t current_alignment=0) |
该函数返回对象键的最大序列化大小,取决于缓冲区对齐方式。 | |
static eProsima_user_DllExport size_t | getMaxCdrSerializedSize (size_t current_alignment=0) |
该函数返回对象的最大序列化大小,取决于缓冲区对齐方式。 | |
static eProsima_user_DllExport bool | isKeyDefined () |
该函数告诉您此类型的键是否已定义。 | |
Private 属性 | |
float | m_brake |
int32_t | m_gear |
bool | m_hand_brake |
std_msgs::msg::Header | m_header |
bool | m_manual_gear_shift |
bool | m_reverse |
float | m_steer |
float | m_throttle |
该类表示用户在 IDL 文件中定义的结构 CarlaEgoVehicleControl。
<>
在文件 CarlaEgoVehicleControl.h 第 67 行定义.
carla_msgs::msg::CarlaEgoVehicleControl::CarlaEgoVehicleControl | ( | ) |
默认构造函数。
在文件 CarlaEgoVehicleControl.cpp 第 45 行定义.
引用了 m_brake, m_gear, m_hand_brake, m_manual_gear_shift, m_reverse, m_steer , 以及 m_throttle.
carla_msgs::msg::CarlaEgoVehicleControl::~CarlaEgoVehicleControl | ( | ) |
默认析构函数。
在文件 CarlaEgoVehicleControl.cpp 第 67 行定义.
carla_msgs::msg::CarlaEgoVehicleControl::CarlaEgoVehicleControl | ( | const CarlaEgoVehicleControl & | x | ) |
复制构造函数。
x | 将被复制的 carla_msgs::msg::CarlaEgoVehicleControl 对象的引用。 |
在文件 CarlaEgoVehicleControl.cpp 第 72 行定义.
引用了 m_brake, m_gear, m_hand_brake, m_header, m_manual_gear_shift, m_reverse, m_steer , 以及 m_throttle.
|
noexcept |
移动构造函数。
x | 将被复制的 carla_msgs::msg::CarlaEgoVehicleControl 对象的引用。 |
在文件 CarlaEgoVehicleControl.cpp 第 86 行定义.
float & carla_msgs::msg::CarlaEgoVehicleControl::brake | ( | ) |
该函数返回对成员 brake 的引用。
This function returns a reference to member brake(刹车值的修改)
在文件 CarlaEgoVehicleControl.cpp 第 326 行定义.
float carla_msgs::msg::CarlaEgoVehicleControl::brake | ( | ) | const |
该函数返回成员 brake 的值。
This function returns the value of member brake(返回break的值)
在文件 CarlaEgoVehicleControl.cpp 第 317 行定义.
void carla_msgs::msg::CarlaEgoVehicleControl::brake | ( | float | _brake | ) |
该函数设置成员 brake 的值。
This function sets a value in member brake(设置break成员的值,也就是刹车力度)
_brake | 成员 brake 的新值。 |
_brake | New value for member brake(新的刹车值,范围在0到1之间) |
在文件 CarlaEgoVehicleControl.cpp 第 307 行定义.
被这些函数引用 carla::ros2::CarlaSubscriberListenerImpl::on_data_available().
void carla_msgs::msg::CarlaEgoVehicleControl::deserialize | ( | eprosima::fastcdr::Cdr & | cdr | ) |
该函数使用 CDR 序列化反序列化一个对象。
cdr | CDR 序列化对象。 |
在文件 CarlaEgoVehicleControl.cpp 第 191 行定义.
被这些函数引用 carla_msgs::msg::CarlaEgoVehicleControlPubSubType::deserialize().
int32_t & carla_msgs::msg::CarlaEgoVehicleControl::gear | ( | ) |
该函数返回对成员 gear 的引用。
This function returns a reference to member gear(返回gear的引用,用于修改档位值)
在文件 CarlaEgoVehicleControl.cpp 第 410 行定义.
int32_t carla_msgs::msg::CarlaEgoVehicleControl::gear | ( | ) | const |
该函数返回成员 gear 的值。
This function returns the value of member gear(返回gear的值)
在文件 CarlaEgoVehicleControl.cpp 第 401 行定义.
void carla_msgs::msg::CarlaEgoVehicleControl::gear | ( | int32_t | _gear | ) |
该函数设置成员 gear 的值。
This function sets a value in member gear(档位的修改)
_gear | 成员 gear 的新值。 |
_gear | New value for member gear(整数型,表示当前状态下是几档) |
在文件 CarlaEgoVehicleControl.cpp 第 391 行定义.
被这些函数引用 carla::ros2::CarlaSubscriberListenerImpl::on_data_available().
|
static |
该函数返回数据的序列化大小,取决于缓冲区对齐方式。
data | 要计算其序列化大小的数据。 |
current_alignment | 缓冲区对齐方式。 |
在文件 CarlaEgoVehicleControl.cpp 第 159 行定义.
引用了 current_alignment, header() , 以及 initial_alignment.
被这些函数引用 carla_msgs::msg::CarlaEgoVehicleControlPubSubType::getSerializedSizeProvider().
|
static |
该函数返回对象键的最大序列化大小,取决于缓冲区对齐方式。
current_alignment | 缓冲区对齐方式。 |
在文件 CarlaEgoVehicleControl.cpp 第 443 行定义.
引用了 carla_msgs_msg_CarlaEgoVehicleControl_max_key_cdr_typesize , 以及 current_alignment.
被这些函数引用 carla_msgs::msg::CarlaEgoVehicleControlPubSubType::CarlaEgoVehicleControlPubSubType() , 以及 carla_msgs::msg::CarlaEgoVehicleControlPubSubType::getKey().
|
static |
该函数返回对象的最大序列化大小,取决于缓冲区对齐方式。
current_alignment | 缓冲区对齐方式。 |
在文件 CarlaEgoVehicleControl.cpp 第 150 行定义.
引用了 carla_msgs_msg_CarlaEgoVehicleControl_max_cdr_typesize , 以及 current_alignment.
被这些函数引用 carla_msgs::msg::CarlaEgoVehicleControlPubSubType::CarlaEgoVehicleControlPubSubType().
bool & carla_msgs::msg::CarlaEgoVehicleControl::hand_brake | ( | ) |
该函数返回对成员 hand_brake 的引用。
This function returns a reference to member hand_brake(修改修改手刹状态)
在文件 CarlaEgoVehicleControl.cpp 第 354 行定义.
bool carla_msgs::msg::CarlaEgoVehicleControl::hand_brake | ( | ) | const |
该函数返回成员 hand_brake 的值。
This function returns the value of member hand_brake(返回手刹的值,用于修改手刹的状态)
在文件 CarlaEgoVehicleControl.cpp 第 345 行定义.
void carla_msgs::msg::CarlaEgoVehicleControl::hand_brake | ( | bool | _hand_brake | ) |
该函数设置成员 hand_brake 的值。
This function sets a value in member hand_brake(设置手刹的状态)
_hand_brake | 成员 hand_brake 的新值。 |
_hand_brake | New value for member hand_brake(true是使用手刹) |
在文件 CarlaEgoVehicleControl.cpp 第 335 行定义.
被这些函数引用 carla::ros2::CarlaSubscriberListenerImpl::on_data_available().
std_msgs::msg::Header & carla_msgs::msg::CarlaEgoVehicleControl::header | ( | ) |
该函数返回对成员 header 的引用。
This function returns a reference to member header(返回header成员的引用,用于修改header的值)
在文件 CarlaEgoVehicleControl.cpp 第 242 行定义.
const std_msgs::msg::Header & carla_msgs::msg::CarlaEgoVehicleControl::header | ( | ) | const |
该函数返回对成员 header 的常量引用。
This function returns a constant reference to member header(返回header成员的常量引用,用于只读访问)
在文件 CarlaEgoVehicleControl.cpp 第 233 行定义.
void carla_msgs::msg::CarlaEgoVehicleControl::header | ( | const std_msgs::msg::Header & | _header | ) |
该函数复制成员 header 的值。
This function copies the value in member header
_header | 要复制到成员 header 的新值。 |
_header | New value to be copied in member header |
在文件 CarlaEgoVehicleControl.cpp 第 209 行定义.
被这些函数引用 getCdrSerializedSize().
void carla_msgs::msg::CarlaEgoVehicleControl::header | ( | std_msgs::msg::Header && | _header | ) |
该函数移动成员 header 的值。
This function moves the value in member header
_header | 要移动到成员 header 的新值。 |
_header | New value to be moved in member header |
在文件 CarlaEgoVehicleControl.cpp 第 223 行定义.
|
static |
该函数告诉您此类型的键是否已定义。
在文件 CarlaEgoVehicleControl.cpp 第 450 行定义.
被这些函数引用 carla_msgs::msg::CarlaEgoVehicleControlPubSubType::CarlaEgoVehicleControlPubSubType().
bool & carla_msgs::msg::CarlaEgoVehicleControl::manual_gear_shift | ( | ) |
该函数返回对成员 manual_gear_shift 的引用。
This function returns a reference to member manual_gear_shift(返回manual_gear_shift的引用,用于修改手动换挡状态)
在文件 CarlaEgoVehicleControl.cpp 第 438 行定义.
bool carla_msgs::msg::CarlaEgoVehicleControl::manual_gear_shift | ( | ) | const |
该函数返回成员 manual_gear_shift 的值。
This function returns the value of member manual_gear_shift(返回manual_gear_shift的值)
在文件 CarlaEgoVehicleControl.cpp 第 429 行定义.
void carla_msgs::msg::CarlaEgoVehicleControl::manual_gear_shift | ( | bool | _manual_gear_shift | ) |
该函数设置成员 manual_gear_shift 的值。
This function sets a value in member manual_gear_shift(设置manual_gear_shift成员的值(手动换挡状态))
_manual_gear_shift | 成员 manual_gear_shift 的新值。 |
_manual_gear_shift | New value for member manual_gear_shift(布尔值,true表示启用手动换挡) |
在文件 CarlaEgoVehicleControl.cpp 第 419 行定义.
被这些函数引用 carla::ros2::CarlaSubscriberListenerImpl::on_data_available().
bool carla_msgs::msg::CarlaEgoVehicleControl::operator!= | ( | const CarlaEgoVehicleControl & | x | ) | const |
比较运算符。
x | 要比较的 carla_msgs::msg::CarlaEgoVehicleControl 对象。 |
在文件 CarlaEgoVehicleControl.cpp 第 143 行定义.
|
noexcept |
移动赋值运算符。
x | 将被复制的 carla_msgs::msg::CarlaEgoVehicleControl 对象的引用。 |
在文件 CarlaEgoVehicleControl.cpp 第 117 行定义.
carla_msgs::msg::CarlaEgoVehicleControl & carla_msgs::msg::CarlaEgoVehicleControl::operator= | ( | const CarlaEgoVehicleControl & | x | ) |
复制赋值运算符。
x | 将被复制的 carla_msgs::msg::CarlaEgoVehicleControl 对象的引用。 |
在文件 CarlaEgoVehicleControl.cpp 第 100 行定义.
引用了 m_brake, m_gear, m_hand_brake, m_header, m_manual_gear_shift, m_reverse, m_steer , 以及 m_throttle.
bool carla_msgs::msg::CarlaEgoVehicleControl::operator== | ( | const CarlaEgoVehicleControl & | x | ) | const |
比较运算符。
x | 要比较的 carla_msgs::msg::CarlaEgoVehicleControl 对象。 |
在文件 CarlaEgoVehicleControl.cpp 第 135 行定义.
引用了 m_brake, m_gear, m_hand_brake, m_header, m_manual_gear_shift, m_reverse, m_steer , 以及 m_throttle.
bool & carla_msgs::msg::CarlaEgoVehicleControl::reverse | ( | ) |
该函数返回对成员 reverse 的引用。
This function returns a reference to member reverse(返回reverse的引用,用于修改倒车状态)
在文件 CarlaEgoVehicleControl.cpp 第 382 行定义.
bool carla_msgs::msg::CarlaEgoVehicleControl::reverse | ( | ) | const |
该函数返回成员 reverse 的值。
This function returns the value of member reverse(返回reverse的值)
在文件 CarlaEgoVehicleControl.cpp 第 373 行定义.
void carla_msgs::msg::CarlaEgoVehicleControl::reverse | ( | bool | _reverse | ) |
该函数设置成员 reverse 的值。
This function sets a value in member reverse(倒车状态)
_reverse | 成员 reverse 的新值。 |
_reverse | New value for member reverse(布尔值,true表示车辆处于倒车状态) |
在文件 CarlaEgoVehicleControl.cpp 第 363 行定义.
被这些函数引用 carla::ros2::CarlaSubscriberListenerImpl::on_data_available().
void carla_msgs::msg::CarlaEgoVehicleControl::serialize | ( | eprosima::fastcdr::Cdr & | cdr | ) | const |
该函数使用 CDR 序列化序列化一个对象。
cdr | CDR 序列化对象。 |
在文件 CarlaEgoVehicleControl.cpp 第 176 行定义.
被这些函数引用 carla_msgs::msg::CarlaEgoVehicleControlPubSubType::serialize().
void carla_msgs::msg::CarlaEgoVehicleControl::serializeKey | ( | eprosima::fastcdr::Cdr & | cdr | ) | const |
该函数使用 CDR 序列化序列化对象的键成员。
cdr | CDR 序列化对象。 |
在文件 CarlaEgoVehicleControl.cpp 第 455 行定义.
被这些函数引用 carla_msgs::msg::CarlaEgoVehicleControlPubSubType::getKey().
float & carla_msgs::msg::CarlaEgoVehicleControl::steer | ( | ) |
该函数返回对成员 steer 的引用。
This function returns a reference to member steer(返回steer的引用,用于修改转向值)
在文件 CarlaEgoVehicleControl.cpp 第 298 行定义.
float carla_msgs::msg::CarlaEgoVehicleControl::steer | ( | ) | const |
该函数返回成员 steer 的值。
This function returns the value of member steer(返回steer的值)
在文件 CarlaEgoVehicleControl.cpp 第 289 行定义.
void carla_msgs::msg::CarlaEgoVehicleControl::steer | ( | float | _steer | ) |
该函数设置成员 steer 的值。
This function sets a value in member steer(设置转向角度)
_steer | 成员 steer 的新值。 |
_steer | New value for member steer(新的转向值,范围通常在-1.0到1.0之间) |
在文件 CarlaEgoVehicleControl.cpp 第 279 行定义.
被这些函数引用 carla::ros2::CarlaSubscriberListenerImpl::on_data_available().
float & carla_msgs::msg::CarlaEgoVehicleControl::throttle | ( | ) |
该函数返回对成员 throttle 的引用。
This function returns a reference to member throttle(用于修改油门值)
在文件 CarlaEgoVehicleControl.cpp 第 270 行定义.
float carla_msgs::msg::CarlaEgoVehicleControl::throttle | ( | ) | const |
该函数返回成员 throttle 的值。
This function returns the value of member throttle
在文件 CarlaEgoVehicleControl.cpp 第 261 行定义.
void carla_msgs::msg::CarlaEgoVehicleControl::throttle | ( | float | _throttle | ) |
该函数设置成员 throttle 的值。
This function sets a value in member throttle(设置throttle成员的值(油门))
_throttle | 成员 throttle 的新值。 |
_throttle | New value for member throttle(param _throttle 新的油门值,范围通常在0.0到1.0之间) |
在文件 CarlaEgoVehicleControl.cpp 第 250 行定义.
被这些函数引用 carla::ros2::CarlaSubscriberListenerImpl::on_data_available().
|
private |
在文件 CarlaEgoVehicleControl.h 第 298 行定义.
被这些函数引用 CarlaEgoVehicleControl(), CarlaEgoVehicleControl(), operator=() , 以及 operator==().
|
private |
在文件 CarlaEgoVehicleControl.h 第 301 行定义.
被这些函数引用 CarlaEgoVehicleControl(), CarlaEgoVehicleControl(), operator=() , 以及 operator==().
|
private |
在文件 CarlaEgoVehicleControl.h 第 299 行定义.
被这些函数引用 CarlaEgoVehicleControl(), CarlaEgoVehicleControl(), operator=() , 以及 operator==().
|
private |
在文件 CarlaEgoVehicleControl.h 第 295 行定义.
被这些函数引用 CarlaEgoVehicleControl(), operator=() , 以及 operator==().
|
private |
在文件 CarlaEgoVehicleControl.h 第 302 行定义.
被这些函数引用 CarlaEgoVehicleControl(), CarlaEgoVehicleControl(), operator=() , 以及 operator==().
|
private |
在文件 CarlaEgoVehicleControl.h 第 300 行定义.
被这些函数引用 CarlaEgoVehicleControl(), CarlaEgoVehicleControl(), operator=() , 以及 operator==().
|
private |
在文件 CarlaEgoVehicleControl.h 第 297 行定义.
被这些函数引用 CarlaEgoVehicleControl(), CarlaEgoVehicleControl(), operator=() , 以及 operator==().
|
private |
在文件 CarlaEgoVehicleControl.h 第 296 行定义.
被这些函数引用 CarlaEgoVehicleControl(), CarlaEgoVehicleControl(), operator=() , 以及 operator==().