6#define _GLIBCXX_USE_CXX11_ABI 0
16 struct CarlaDVSCameraPublisherImpl;
17 struct CarlaCameraInfoPublisherImpl;
18 struct CarlaPointCloudPublisherImpl;
30 void InitInfoData(uint32_t x_offset, uint32_t y_offset, uint32_t height, uint32_t width,
float fov,
bool do_rectify);
34 void SetImageData(int32_t seconds, uint32_t nanoseconds,
size_t elements,
size_t height,
size_t width,
const uint8_t* data);
36 void SetPointCloudData(
size_t height,
size_t width,
size_t elements,
const uint8_t* data);
37 const char*
type()
const override {
return "dvs camera"; }
44 void SetInfoRegionOfInterest(uint32_t x_offset, uint32_t y_offset, uint32_t height, uint32_t width,
bool do_rectify);
45 void SetData(int32_t seconds, uint32_t nanoseconds,
size_t height,
size_t width, std::vector<uint8_t>&& data);
52 std::shared_ptr<CarlaDVSCameraPublisherImpl>
_impl;
53 std::shared_ptr<CarlaCameraInfoPublisherImpl>
_info;
void SetPointCloudData(size_t height, size_t width, size_t elements, const uint8_t *data)
设置点云数据。
CarlaDVSCameraPublisher & operator=(const CarlaDVSCameraPublisher &)
赋值运算符重载。
CarlaDVSCameraPublisher(const char *ros_name="", const char *parent="")
CarlaDVSCameraPublisher的构造函数。
std::shared_ptr< CarlaCameraInfoPublisherImpl > _info
std::shared_ptr< CarlaDVSCameraPublisherImpl > _impl
bool Publish()
发布图像、信息和点云数据。
void SetImageData(int32_t seconds, uint32_t nanoseconds, size_t elements, size_t height, size_t width, const uint8_t *data)
设置图像数据,用于DVS(动态视觉传感器)相机发布者。
void InitInfoData(uint32_t x_offset, uint32_t y_offset, uint32_t height, uint32_t width, float fov, bool do_rectify)
初始化相机信息数据
bool InitPointCloud()
初始化点云发布相关资源
void SetCameraInfoData(int32_t seconds, uint32_t nanoseconds)
设置相机信息数据的时间戳和帧ID。
bool InitInfo()
初始化相机信息发布相关资源
bool InitImage()
初始化图像发布相关资源
void SetPointCloudData(size_t height, size_t width, std::vector< uint8_t > &&data)
bool HasBeenInitialized() const
检查是否已初始化
const char * type() const override
bool PublishInfo()
发布信息数据。
void SetData(int32_t seconds, uint32_t nanoseconds, size_t height, size_t width, std::vector< uint8_t > &&data)
设置图像数据,包括时间戳、图像尺寸和图像数据。
bool PublishPointCloud()
发布点云数据。
void SetInfoRegionOfInterest(uint32_t x_offset, uint32_t y_offset, uint32_t height, uint32_t width, bool do_rectify)
设置相机信息中的感兴趣区域(Region Of Interest, ROI)。
bool PublishImage()
发布图像数据。
bool Init()
初始化CarlaDVSCameraPublisher
std::shared_ptr< CarlaPointCloudPublisherImpl > _point_cloud
~CarlaDVSCameraPublisher()
CarlaDVSCameraPublisher的析构函数。
const std::string & parent() const