6#define _GLIBCXX_USE_CXX11_ABI 0
22 struct CarlaClockPublisherImpl;
86 void SetData(int32_t sec, uint32_t nanosec);
92 const char*
type()
const override {
return "clock"; }
100 std::shared_ptr<CarlaClockPublisherImpl>
_impl;
CarlaClockPublisher(const char *ros_name="", const char *parent="")
构造函数,初始化CarlaClockPublisher。
~CarlaClockPublisher()
析构函数,清理资源并释放内部实现。
const char * type() const override
重写基类中的type函数,返回此发布者的类型。
CarlaClockPublisher & operator=(const CarlaClockPublisher &)
赋值运算符。
std::shared_ptr< CarlaClockPublisherImpl > _impl
指向内部实现结构体的智能指针。
void SetData(int32_t sec, uint32_t nanosec)
设置要发布的时钟数据。
const std::string & parent() const