This class represents the structure Time defined by the user in the IDL file. 更多...
#include <Time.h>
Public 成员函数 | |
eProsima_user_DllExport void | deserialize (eprosima::fastcdr::Cdr &cdr) |
This function deserializes an object using CDR serialization. | |
eProsima_user_DllExport uint32_t & | nanosec () |
This function returns a reference to member nanosec | |
eProsima_user_DllExport uint32_t | nanosec () const |
This function returns the value of member nanosec | |
eProsima_user_DllExport void | nanosec (uint32_t _nanosec) |
This function sets a value in member nanosec | |
eProsima_user_DllExport bool | operator!= (const Time &x) const |
Comparison operator. | |
eProsima_user_DllExport Time & | operator= (const Time &x) |
Copy assignment. | |
eProsima_user_DllExport Time & | operator= (Time &&x) noexcept |
Move assignment. | |
eProsima_user_DllExport bool | operator== (const Time &x) const |
Comparison operator. | |
eProsima_user_DllExport int32_t & | sec () |
This function returns a reference to member sec | |
eProsima_user_DllExport int32_t | sec () const |
This function returns the value of member sec | |
eProsima_user_DllExport void | sec (int32_t _sec) |
This function sets a value in member sec | |
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 | Time () |
Default constructor. | |
eProsima_user_DllExport | Time (const Time &x) |
Copy constructor. | |
eProsima_user_DllExport | Time (Time &&x) noexcept |
Move constructor. | |
eProsima_user_DllExport | ~Time () |
Default destructor. | |
静态 Public 成员函数 | |
static eProsima_user_DllExport size_t | getCdrSerializedSize (const builtin_interfaces::msg::Time &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 属性 | |
uint32_t | m_nanosec |
int32_t | m_sec |
This class represents the structure Time defined by the user in the IDL file.
在文件 ros2/types/Time.h 第 71 行定义.
builtin_interfaces::msg::Time::Time | ( | ) |
builtin_interfaces::msg::Time::Time | ( | const Time & | x | ) |
Copy constructor.
x | Reference to the object builtin_interfaces::msg::Time that will be copied. |
|
noexcept |
Move constructor.
x | Reference to the object builtin_interfaces::msg::Time that will be copied. |
void builtin_interfaces::msg::Time::deserialize | ( | eprosima::fastcdr::Cdr & | cdr | ) |
This function deserializes an object using CDR serialization.
cdr | CDR serialization object. |
被这些函数引用 builtin_interfaces::msg::TimePubSubType::deserialize().
|
static |
This function returns the serialized size of a data depending on the buffer alignment.
data | Data which is calculated its serialized size. |
current_alignment | Buffer alignment. |
被这些函数引用 rosgraph::msg::Clock::getCdrSerializedSize(), std_msgs::msg::Header::getCdrSerializedSize() , 以及 builtin_interfaces::msg::TimePubSubType::getSerializedSizeProvider().
|
static |
This function returns the maximum serialized size of the Key of an object depending on the buffer alignment.
current_alignment | Buffer alignment. |
引用了 builtin_interfaces_msg_Time_max_key_cdr_typesize.
被这些函数引用 builtin_interfaces::msg::TimePubSubType::getKey() , 以及 builtin_interfaces::msg::TimePubSubType::TimePubSubType().
|
static |
This function returns the maximum serialized size of an object depending on the buffer alignment.
current_alignment | Buffer alignment. |
引用了 builtin_interfaces_msg_Time_max_cdr_typesize.
被这些函数引用 builtin_interfaces::msg::TimePubSubType::TimePubSubType().
|
static |
This function tells you if the Key has been defined for this type
被这些函数引用 builtin_interfaces::msg::TimePubSubType::TimePubSubType().
uint32_t & builtin_interfaces::msg::Time::nanosec | ( | ) |
uint32_t builtin_interfaces::msg::Time::nanosec | ( | ) | const |
void builtin_interfaces::msg::Time::nanosec | ( | uint32_t | _nanosec | ) |
This function sets a value in member nanosec
_nanosec | New value for member nanosec |
被这些函数引用 carla::ros2::CarlaDepthCameraPublisher::SetCameraInfoData(), carla::ros2::CarlaDVSCameraPublisher::SetCameraInfoData(), carla::ros2::CarlaISCameraPublisher::SetCameraInfoData(), carla::ros2::CarlaNormalsCameraPublisher::SetCameraInfoData(), carla::ros2::CarlaOpticalFlowCameraPublisher::SetCameraInfoData(), carla::ros2::CarlaRGBCameraPublisher::SetCameraInfoData(), carla::ros2::CarlaSSCameraPublisher::SetCameraInfoData(), carla::ros2::CarlaGNSSPublisher::SetData(), carla::ros2::CarlaTransformPublisher::SetData(), carla::ros2::CarlaLineInvasionPublisher::SetData(), carla::ros2::CarlaIMUPublisher::SetData(), carla::ros2::CarlaRadarPublisher::SetData(), carla::ros2::CarlaDepthCameraPublisher::SetData(), carla::ros2::CarlaDVSCameraPublisher::SetData(), carla::ros2::CarlaISCameraPublisher::SetData(), carla::ros2::CarlaLidarPublisher::SetData(), carla::ros2::CarlaNormalsCameraPublisher::SetData(), carla::ros2::CarlaOpticalFlowCameraPublisher::SetData(), carla::ros2::CarlaSemanticLidarPublisher::SetData(), carla::ros2::CarlaSSCameraPublisher::SetData(), carla::ros2::CarlaCollisionPublisher::SetData() , 以及 carla::ros2::CarlaRGBCameraPublisher::SetImageData().
bool builtin_interfaces::msg::Time::operator!= | ( | const Time & | x | ) | const |
builtin_interfaces::msg::Time & builtin_interfaces::msg::Time::operator= | ( | const Time & | x | ) |
Copy assignment.
x | Reference to the object builtin_interfaces::msg::Time that will be copied. |
|
noexcept |
Move assignment.
x | Reference to the object builtin_interfaces::msg::Time that will be copied. |
引用了 m_sec.
bool builtin_interfaces::msg::Time::operator== | ( | const Time & | x | ) | const |
Comparison operator.
x | builtin_interfaces::msg::Time object to compare. |
int32_t & builtin_interfaces::msg::Time::sec | ( | ) |
int32_t builtin_interfaces::msg::Time::sec | ( | ) | const |
void builtin_interfaces::msg::Time::sec | ( | int32_t | _sec | ) |
This function sets a value in member sec
_sec | New value for member sec |
被这些函数引用 carla::ros2::CarlaDepthCameraPublisher::SetCameraInfoData(), carla::ros2::CarlaDVSCameraPublisher::SetCameraInfoData(), carla::ros2::CarlaISCameraPublisher::SetCameraInfoData(), carla::ros2::CarlaNormalsCameraPublisher::SetCameraInfoData(), carla::ros2::CarlaOpticalFlowCameraPublisher::SetCameraInfoData(), carla::ros2::CarlaRGBCameraPublisher::SetCameraInfoData(), carla::ros2::CarlaSSCameraPublisher::SetCameraInfoData(), carla::ros2::CarlaGNSSPublisher::SetData(), carla::ros2::CarlaTransformPublisher::SetData(), carla::ros2::CarlaLineInvasionPublisher::SetData(), carla::ros2::CarlaIMUPublisher::SetData(), carla::ros2::CarlaRadarPublisher::SetData(), carla::ros2::CarlaDepthCameraPublisher::SetData(), carla::ros2::CarlaDVSCameraPublisher::SetData(), carla::ros2::CarlaISCameraPublisher::SetData(), carla::ros2::CarlaLidarPublisher::SetData(), carla::ros2::CarlaNormalsCameraPublisher::SetData(), carla::ros2::CarlaOpticalFlowCameraPublisher::SetData(), carla::ros2::CarlaSemanticLidarPublisher::SetData(), carla::ros2::CarlaSSCameraPublisher::SetData(), carla::ros2::CarlaCollisionPublisher::SetData() , 以及 carla::ros2::CarlaRGBCameraPublisher::SetImageData().
void builtin_interfaces::msg::Time::serialize | ( | eprosima::fastcdr::Cdr & | cdr | ) | const |
This function serializes an object using CDR serialization.
cdr | CDR serialization object. |
被这些函数引用 builtin_interfaces::msg::TimePubSubType::serialize().
void builtin_interfaces::msg::Time::serializeKey | ( | eprosima::fastcdr::Cdr & | cdr | ) | const |
This function serializes the key members of an object using CDR serialization.
cdr | CDR serialization object. |
被这些函数引用 builtin_interfaces::msg::TimePubSubType::getKey().
|
private |
在文件 ros2/types/Time.h 第 221 行定义.
被这些函数引用 operator=(), operator==(), Time() , 以及 Time().
|
private |
在文件 ros2/types/Time.h 第 220 行定义.
被这些函数引用 operator=(), operator=(), operator==(), Time() , 以及 Time().