CARLA
 
载入中...
搜索中...
未找到
Public 成员函数 | 静态 Public 成员函数 | Private 属性 | 所有成员列表
carla_msgs::msg::CarlaEgoVehicleControl类 参考

This class represents the structure CarlaEgoVehicleControl defined by the user in the IDL file. 更多...

#include <CarlaEgoVehicleControl.h>

+ carla_msgs::msg::CarlaEgoVehicleControl 的协作图:

Public 成员函数

eProsima_user_DllExport float & brake ()
 This function returns a reference to member brake
 
eProsima_user_DllExport float brake () const
 This function returns the value of member brake
 
eProsima_user_DllExport void brake (float _brake)
 This function sets a value in member brake
 
eProsima_user_DllExport CarlaEgoVehicleControl ()
 Default constructor.
 
eProsima_user_DllExport CarlaEgoVehicleControl (CarlaEgoVehicleControl &&x) noexcept
 Move constructor.
 
eProsima_user_DllExport CarlaEgoVehicleControl (const CarlaEgoVehicleControl &x)
 Copy constructor.
 
eProsima_user_DllExport void deserialize (eprosima::fastcdr::Cdr &cdr)
 This function deserializes an object using CDR serialization.
 
eProsima_user_DllExport int32_t & gear ()
 This function returns a reference to member gear
 
eProsima_user_DllExport int32_t gear () const
 This function returns the value of member gear
 
eProsima_user_DllExport void gear (int32_t _gear)
 This function sets a value in member gear
 
eProsima_user_DllExport bool & hand_brake ()
 This function returns a reference to member hand_brake
 
eProsima_user_DllExport bool hand_brake () const
 This function returns the value of member hand_brake
 
eProsima_user_DllExport void hand_brake (bool _hand_brake)
 This function sets a value in member hand_brake
 
eProsima_user_DllExport std_msgs::msg::Headerheader ()
 This function returns a reference to member header
 
eProsima_user_DllExport const std_msgs::msg::Headerheader () const
 This function returns a constant reference to member header
 
eProsima_user_DllExport void header (const std_msgs::msg::Header &_header)
 This function copies the value in member header
 
eProsima_user_DllExport void header (std_msgs::msg::Header &&_header)
 This function moves the value in member header
 
eProsima_user_DllExport bool & manual_gear_shift ()
 This function returns a reference to member manual_gear_shift
 
eProsima_user_DllExport bool manual_gear_shift () const
 This function returns the value of member manual_gear_shift
 
eProsima_user_DllExport void manual_gear_shift (bool _manual_gear_shift)
 This function sets a value in member manual_gear_shift
 
eProsima_user_DllExport bool operator!= (const CarlaEgoVehicleControl &x) const
 Comparison operator.
 
eProsima_user_DllExport CarlaEgoVehicleControloperator= (CarlaEgoVehicleControl &&x) noexcept
 Move assignment.
 
eProsima_user_DllExport CarlaEgoVehicleControloperator= (const CarlaEgoVehicleControl &x)
 Copy assignment.
 
eProsima_user_DllExport bool operator== (const CarlaEgoVehicleControl &x) const
 Comparison operator.
 
eProsima_user_DllExport bool & reverse ()
 This function returns a reference to member reverse
 
eProsima_user_DllExport bool reverse () const
 This function returns the value of member reverse
 
eProsima_user_DllExport void reverse (bool _reverse)
 This function sets a value in member reverse
 
eProsima_user_DllExport void serialize (eprosima::fastcdr::Cdr &cdr) const
 This function serializes an object using CDR serialization.
 
eProsima_user_DllExport void serializeKey (eprosima::fastcdr::Cdr &cdr) const
 This function serializes the key members of an object using CDR serialization.
 
eProsima_user_DllExport float & steer ()
 This function returns a reference to member steer
 
eProsima_user_DllExport float steer () const
 This function returns the value of member steer
 
eProsima_user_DllExport void steer (float _steer)
 This function sets a value in member steer
 
eProsima_user_DllExport float & throttle ()
 This function returns a reference to member throttle
 
eProsima_user_DllExport float throttle () const
 This function returns the value of member throttle
 
eProsima_user_DllExport void throttle (float _throttle)
 This function sets a value in member throttle
 
eProsima_user_DllExport ~CarlaEgoVehicleControl ()
 Default destructor.
 

静态 Public 成员函数

static eProsima_user_DllExport size_t getCdrSerializedSize (const carla_msgs::msg::CarlaEgoVehicleControl &data, size_t current_alignment=0)
 This function returns the serialized size of a data depending on the buffer alignment.
 
static eProsima_user_DllExport size_t getKeyMaxCdrSerializedSize (size_t current_alignment=0)
 This function returns the maximum serialized size of the Key of an object depending on the buffer alignment.
 
static eProsima_user_DllExport size_t getMaxCdrSerializedSize (size_t current_alignment=0)
 This function returns the maximum serialized size of an object depending on the buffer alignment.
 
static eProsima_user_DllExport bool isKeyDefined ()
 This function tells you if the Key has been defined for this type
 

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
 

详细描述

This class represents the structure CarlaEgoVehicleControl defined by the user in the IDL file.

在文件 CarlaEgoVehicleControl.h72 行定义.

构造及析构函数说明

◆ CarlaEgoVehicleControl() [1/3]

carla_msgs::msg::CarlaEgoVehicleControl::CarlaEgoVehicleControl ( )

Default constructor.

在文件 CarlaEgoVehicleControl.cpp44 行定义.

引用了 m_brake, m_gear, m_hand_brake, m_manual_gear_shift, m_reverse, m_steer , 以及 m_throttle.

◆ ~CarlaEgoVehicleControl()

carla_msgs::msg::CarlaEgoVehicleControl::~CarlaEgoVehicleControl ( )

Default destructor.

在文件 CarlaEgoVehicleControl.cpp65 行定义.

◆ CarlaEgoVehicleControl() [2/3]

carla_msgs::msg::CarlaEgoVehicleControl::CarlaEgoVehicleControl ( const CarlaEgoVehicleControl & x)

Copy constructor.

参数
xReference to the object carla_msgs::msg::CarlaEgoVehicleControl that will be copied.

在文件 CarlaEgoVehicleControl.cpp69 行定义.

引用了 m_brake, m_gear, m_hand_brake, m_header, m_manual_gear_shift, m_reverse, m_steer , 以及 m_throttle.

◆ CarlaEgoVehicleControl() [3/3]

carla_msgs::msg::CarlaEgoVehicleControl::CarlaEgoVehicleControl ( CarlaEgoVehicleControl && x)
noexcept

Move constructor.

参数
xReference to the object carla_msgs::msg::CarlaEgoVehicleControl that will be copied.

在文件 CarlaEgoVehicleControl.cpp82 行定义.

成员函数说明

◆ brake() [1/3]

float & carla_msgs::msg::CarlaEgoVehicleControl::brake ( )

This function returns a reference to member brake

返回
Reference to member brake

在文件 CarlaEgoVehicleControl.cpp302 行定义.

◆ brake() [2/3]

float carla_msgs::msg::CarlaEgoVehicleControl::brake ( ) const

This function returns the value of member brake

返回
Value of member brake

在文件 CarlaEgoVehicleControl.cpp293 行定义.

◆ brake() [3/3]

void carla_msgs::msg::CarlaEgoVehicleControl::brake ( float _brake)

This function sets a value in member brake

参数
_brakeNew value for member brake

在文件 CarlaEgoVehicleControl.cpp283 行定义.

被这些函数引用 carla::ros2::CarlaSubscriberListenerImpl::on_data_available().

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

◆ deserialize()

void carla_msgs::msg::CarlaEgoVehicleControl::deserialize ( eprosima::fastcdr::Cdr & cdr)

This function deserializes an object using CDR serialization.

参数
cdrCDR serialization object.

在文件 CarlaEgoVehicleControl.cpp173 行定义.

被这些函数引用 carla_msgs::msg::CarlaEgoVehicleControlPubSubType::deserialize().

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

◆ gear() [1/3]

int32_t & carla_msgs::msg::CarlaEgoVehicleControl::gear ( )

This function returns a reference to member gear

返回
Reference to member gear

在文件 CarlaEgoVehicleControl.cpp386 行定义.

◆ gear() [2/3]

int32_t carla_msgs::msg::CarlaEgoVehicleControl::gear ( ) const

This function returns the value of member gear

返回
Value of member gear

在文件 CarlaEgoVehicleControl.cpp377 行定义.

◆ gear() [3/3]

void carla_msgs::msg::CarlaEgoVehicleControl::gear ( int32_t _gear)

This function sets a value in member gear

参数
_gearNew value for member gear

在文件 CarlaEgoVehicleControl.cpp367 行定义.

被这些函数引用 carla::ros2::CarlaSubscriberListenerImpl::on_data_available().

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

◆ getCdrSerializedSize()

size_t carla_msgs::msg::CarlaEgoVehicleControl::getCdrSerializedSize ( const carla_msgs::msg::CarlaEgoVehicleControl & data,
size_t current_alignment = 0 )
static

This function returns the serialized size of a data depending on the buffer alignment.

参数
dataData which is calculated its serialized size.
current_alignmentBuffer alignment.
返回
Serialized size.

在文件 CarlaEgoVehicleControl.cpp144 行定义.

引用了 std_msgs::msg::Header::getCdrSerializedSize() , 以及 header().

被这些函数引用 carla_msgs::msg::CarlaEgoVehicleControlPubSubType::getSerializedSizeProvider().

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

◆ getKeyMaxCdrSerializedSize()

size_t carla_msgs::msg::CarlaEgoVehicleControl::getKeyMaxCdrSerializedSize ( size_t current_alignment = 0)
static

This function returns the maximum serialized size of the Key of an object depending on the buffer alignment.

参数
current_alignmentBuffer alignment.
返回
Maximum serialized size.

在文件 CarlaEgoVehicleControl.cpp419 行定义.

引用了 carla_msgs_msg_CarlaEgoVehicleControl_max_key_cdr_typesize.

被这些函数引用 carla_msgs::msg::CarlaEgoVehicleControlPubSubType::CarlaEgoVehicleControlPubSubType() , 以及 carla_msgs::msg::CarlaEgoVehicleControlPubSubType::getKey().

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

◆ getMaxCdrSerializedSize()

size_t carla_msgs::msg::CarlaEgoVehicleControl::getMaxCdrSerializedSize ( size_t current_alignment = 0)
static

This function returns the maximum serialized size of an object depending on the buffer alignment.

参数
current_alignmentBuffer alignment.
返回
Maximum serialized size.

在文件 CarlaEgoVehicleControl.cpp137 行定义.

引用了 carla_msgs_msg_CarlaEgoVehicleControl_max_cdr_typesize.

被这些函数引用 carla_msgs::msg::CarlaEgoVehicleControlPubSubType::CarlaEgoVehicleControlPubSubType().

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

◆ hand_brake() [1/3]

bool & carla_msgs::msg::CarlaEgoVehicleControl::hand_brake ( )

This function returns a reference to member hand_brake

返回
Reference to member hand_brake

在文件 CarlaEgoVehicleControl.cpp330 行定义.

◆ hand_brake() [2/3]

bool carla_msgs::msg::CarlaEgoVehicleControl::hand_brake ( ) const

This function returns the value of member hand_brake

返回
Value of member hand_brake

在文件 CarlaEgoVehicleControl.cpp321 行定义.

◆ hand_brake() [3/3]

void carla_msgs::msg::CarlaEgoVehicleControl::hand_brake ( bool _hand_brake)

This function sets a value in member hand_brake

参数
_hand_brakeNew value for member hand_brake

在文件 CarlaEgoVehicleControl.cpp311 行定义.

被这些函数引用 carla::ros2::CarlaSubscriberListenerImpl::on_data_available().

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

◆ header() [1/4]

std_msgs::msg::Header & carla_msgs::msg::CarlaEgoVehicleControl::header ( )

This function returns a reference to member header

返回
Reference to member header

在文件 CarlaEgoVehicleControl.cpp219 行定义.

◆ header() [2/4]

const std_msgs::msg::Header & carla_msgs::msg::CarlaEgoVehicleControl::header ( ) const

This function returns a constant reference to member header

返回
Constant reference to member header

在文件 CarlaEgoVehicleControl.cpp210 行定义.

◆ header() [3/4]

void carla_msgs::msg::CarlaEgoVehicleControl::header ( const std_msgs::msg::Header & _header)

This function copies the value in member header

参数
_headerNew value to be copied in member header

在文件 CarlaEgoVehicleControl.cpp190 行定义.

被这些函数引用 getCdrSerializedSize().

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

◆ header() [4/4]

void carla_msgs::msg::CarlaEgoVehicleControl::header ( std_msgs::msg::Header && _header)

This function moves the value in member header

参数
_headerNew value to be moved in member header

在文件 CarlaEgoVehicleControl.cpp200 行定义.

◆ isKeyDefined()

bool carla_msgs::msg::CarlaEgoVehicleControl::isKeyDefined ( )
static

This function tells you if the Key has been defined for this type

在文件 CarlaEgoVehicleControl.cpp426 行定义.

被这些函数引用 carla_msgs::msg::CarlaEgoVehicleControlPubSubType::CarlaEgoVehicleControlPubSubType().

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

◆ manual_gear_shift() [1/3]

bool & carla_msgs::msg::CarlaEgoVehicleControl::manual_gear_shift ( )

This function returns a reference to member manual_gear_shift

返回
Reference to member manual_gear_shift

在文件 CarlaEgoVehicleControl.cpp414 行定义.

◆ manual_gear_shift() [2/3]

bool carla_msgs::msg::CarlaEgoVehicleControl::manual_gear_shift ( ) const

This function returns the value of member manual_gear_shift

返回
Value of member manual_gear_shift

在文件 CarlaEgoVehicleControl.cpp405 行定义.

◆ manual_gear_shift() [3/3]

void carla_msgs::msg::CarlaEgoVehicleControl::manual_gear_shift ( bool _manual_gear_shift)

This function sets a value in member manual_gear_shift

参数
_manual_gear_shiftNew value for member manual_gear_shift

在文件 CarlaEgoVehicleControl.cpp395 行定义.

被这些函数引用 carla::ros2::CarlaSubscriberListenerImpl::on_data_available().

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

◆ operator!=()

bool carla_msgs::msg::CarlaEgoVehicleControl::operator!= ( const CarlaEgoVehicleControl & x) const

Comparison operator.

参数
xcarla_msgs::msg::CarlaEgoVehicleControl object to compare.

在文件 CarlaEgoVehicleControl.cpp131 行定义.

◆ operator=() [1/2]

carla_msgs::msg::CarlaEgoVehicleControl & carla_msgs::msg::CarlaEgoVehicleControl::operator= ( CarlaEgoVehicleControl && x)
noexcept

Move assignment.

参数
xReference to the object carla_msgs::msg::CarlaEgoVehicleControl that will be copied.

在文件 CarlaEgoVehicleControl.cpp110 行定义.

◆ operator=() [2/2]

carla_msgs::msg::CarlaEgoVehicleControl & carla_msgs::msg::CarlaEgoVehicleControl::operator= ( const CarlaEgoVehicleControl & x)

Copy assignment.

参数
xReference to the object carla_msgs::msg::CarlaEgoVehicleControl that will be copied.

在文件 CarlaEgoVehicleControl.cpp95 行定义.

引用了 m_brake, m_gear, m_hand_brake, m_header, m_manual_gear_shift, m_reverse, m_steer , 以及 m_throttle.

◆ operator==()

bool carla_msgs::msg::CarlaEgoVehicleControl::operator== ( const CarlaEgoVehicleControl & x) const

Comparison operator.

参数
xcarla_msgs::msg::CarlaEgoVehicleControl object to compare.

在文件 CarlaEgoVehicleControl.cpp125 行定义.

引用了 m_brake, m_gear, m_hand_brake, m_header, m_manual_gear_shift, m_reverse, m_steer , 以及 m_throttle.

◆ reverse() [1/3]

bool & carla_msgs::msg::CarlaEgoVehicleControl::reverse ( )

This function returns a reference to member reverse

返回
Reference to member reverse

在文件 CarlaEgoVehicleControl.cpp358 行定义.

◆ reverse() [2/3]

bool carla_msgs::msg::CarlaEgoVehicleControl::reverse ( ) const

This function returns the value of member reverse

返回
Value of member reverse

在文件 CarlaEgoVehicleControl.cpp349 行定义.

◆ reverse() [3/3]

void carla_msgs::msg::CarlaEgoVehicleControl::reverse ( bool _reverse)

This function sets a value in member reverse

参数
_reverseNew value for member reverse

在文件 CarlaEgoVehicleControl.cpp339 行定义.

被这些函数引用 carla::ros2::CarlaSubscriberListenerImpl::on_data_available().

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

◆ serialize()

void carla_msgs::msg::CarlaEgoVehicleControl::serialize ( eprosima::fastcdr::Cdr & cdr) const

This function serializes an object using CDR serialization.

参数
cdrCDR serialization object.

在文件 CarlaEgoVehicleControl.cpp160 行定义.

被这些函数引用 carla_msgs::msg::CarlaEgoVehicleControlPubSubType::serialize().

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

◆ serializeKey()

void carla_msgs::msg::CarlaEgoVehicleControl::serializeKey ( eprosima::fastcdr::Cdr & cdr) const

This function serializes the key members of an object using CDR serialization.

参数
cdrCDR serialization object.

在文件 CarlaEgoVehicleControl.cpp431 行定义.

被这些函数引用 carla_msgs::msg::CarlaEgoVehicleControlPubSubType::getKey().

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

◆ steer() [1/3]

float & carla_msgs::msg::CarlaEgoVehicleControl::steer ( )

This function returns a reference to member steer

返回
Reference to member steer

在文件 CarlaEgoVehicleControl.cpp274 行定义.

◆ steer() [2/3]

float carla_msgs::msg::CarlaEgoVehicleControl::steer ( ) const

This function returns the value of member steer

返回
Value of member steer

在文件 CarlaEgoVehicleControl.cpp265 行定义.

◆ steer() [3/3]

void carla_msgs::msg::CarlaEgoVehicleControl::steer ( float _steer)

This function sets a value in member steer

参数
_steerNew value for member steer

在文件 CarlaEgoVehicleControl.cpp255 行定义.

被这些函数引用 carla::ros2::CarlaSubscriberListenerImpl::on_data_available().

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

◆ throttle() [1/3]

float & carla_msgs::msg::CarlaEgoVehicleControl::throttle ( )

This function returns a reference to member throttle

返回
Reference to member throttle

在文件 CarlaEgoVehicleControl.cpp246 行定义.

◆ throttle() [2/3]

float carla_msgs::msg::CarlaEgoVehicleControl::throttle ( ) const

This function returns the value of member throttle

返回
Value of member throttle

在文件 CarlaEgoVehicleControl.cpp237 行定义.

◆ throttle() [3/3]

void carla_msgs::msg::CarlaEgoVehicleControl::throttle ( float _throttle)

This function sets a value in member throttle

参数
_throttleNew value for member throttle

在文件 CarlaEgoVehicleControl.cpp227 行定义.

被这些函数引用 carla::ros2::CarlaSubscriberListenerImpl::on_data_available().

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

类成员变量说明

◆ m_brake

float carla_msgs::msg::CarlaEgoVehicleControl::m_brake
private

在文件 CarlaEgoVehicleControl.h344 行定义.

被这些函数引用 CarlaEgoVehicleControl(), CarlaEgoVehicleControl(), operator=() , 以及 operator==().

◆ m_gear

int32_t carla_msgs::msg::CarlaEgoVehicleControl::m_gear
private

在文件 CarlaEgoVehicleControl.h347 行定义.

被这些函数引用 CarlaEgoVehicleControl(), CarlaEgoVehicleControl(), operator=() , 以及 operator==().

◆ m_hand_brake

bool carla_msgs::msg::CarlaEgoVehicleControl::m_hand_brake
private

在文件 CarlaEgoVehicleControl.h345 行定义.

被这些函数引用 CarlaEgoVehicleControl(), CarlaEgoVehicleControl(), operator=() , 以及 operator==().

◆ m_header

std_msgs::msg::Header carla_msgs::msg::CarlaEgoVehicleControl::m_header
private

在文件 CarlaEgoVehicleControl.h341 行定义.

被这些函数引用 CarlaEgoVehicleControl(), operator=() , 以及 operator==().

◆ m_manual_gear_shift

bool carla_msgs::msg::CarlaEgoVehicleControl::m_manual_gear_shift
private

在文件 CarlaEgoVehicleControl.h348 行定义.

被这些函数引用 CarlaEgoVehicleControl(), CarlaEgoVehicleControl(), operator=() , 以及 operator==().

◆ m_reverse

bool carla_msgs::msg::CarlaEgoVehicleControl::m_reverse
private

在文件 CarlaEgoVehicleControl.h346 行定义.

被这些函数引用 CarlaEgoVehicleControl(), CarlaEgoVehicleControl(), operator=() , 以及 operator==().

◆ m_steer

float carla_msgs::msg::CarlaEgoVehicleControl::m_steer
private

在文件 CarlaEgoVehicleControl.h343 行定义.

被这些函数引用 CarlaEgoVehicleControl(), CarlaEgoVehicleControl(), operator=() , 以及 operator==().

◆ m_throttle

float carla_msgs::msg::CarlaEgoVehicleControl::m_throttle
private

在文件 CarlaEgoVehicleControl.h342 行定义.

被这些函数引用 CarlaEgoVehicleControl(), CarlaEgoVehicleControl(), operator=() , 以及 operator==().


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