8#define _GLIBCXX_USE_CXX11_ABI 0
21 struct CarlaLidarPublisherImpl;
44 void SetData(int32_t seconds, uint32_t nanoseconds,
size_t height,
size_t width,
float* data);
46 const char*
type()
const override {
return "lidar"; }
50 void SetData(int32_t seconds, uint32_t nanoseconds,
size_t height,
size_t width, std::vector<uint8_t>&& data);
54 std::shared_ptr<CarlaLidarPublisherImpl>
_impl;
~CarlaLidarPublisher()
CarlaLidarPublisher 类的析构函数
const char * type() const override
void SetData(int32_t seconds, uint32_t nanoseconds, size_t height, size_t width, float *data)
设置激光雷达数据,处理并转换数据类型
bool Init()
初始化CarlaLidarPublisher。
CarlaLidarPublisher & operator=(const CarlaLidarPublisher &)
拷贝赋值运算符重载
std::shared_ptr< CarlaLidarPublisherImpl > _impl
const std::string & parent() const