CARLA
Loading...
Searching...
No Matches
carla::ros2::CarlaSemanticLidarPublisher Class Reference

#include <CarlaSemanticLidarPublisher.h>

Inheritance diagram for carla::ros2::CarlaSemanticLidarPublisher:

Public Member Functions

 CarlaSemanticLidarPublisher (std::string base_topic_name, std::string frame_id, bool exact_topic=false)
Public Member Functions inherited from carla::ros2::CarlaPointCloudPublisher
 CarlaPointCloudPublisher (CarlaPointCloudPublisher &&) noexcept=default
 CarlaPointCloudPublisher (const CarlaPointCloudPublisher &)=delete
 CarlaPointCloudPublisher (std::string base_topic_name, std::string frame_id, bool exact_topic=false)
CarlaPointCloudPublisher & operator= (CarlaPointCloudPublisher &&) noexcept=default
CarlaPointCloudPublisher & operator= (const CarlaPointCloudPublisher &)=delete
bool Publish () override
bool WritePointCloud (std::int32_t seconds, std::uint32_t nanoseconds, std::uint32_t height, std::uint32_t width, const std::uint8_t *data)
 ~CarlaPointCloudPublisher () override
Public Member Functions inherited from carla::ros2::BasePublisher
 BasePublisher ()=default
 BasePublisher (BasePublisher &&)=delete
 BasePublisher (const BasePublisher &)=delete
 BasePublisher (std::string base_topic_name)
 BasePublisher (std::string base_topic_name, std::string frame_id)
 BasePublisher (void *actor, std::string base_topic_name, std::string frame_id)
void * GetActor () const noexcept
const std::string & GetBaseTopicName () const noexcept
const std::string & GetFrameId () const noexcept
BasePublisher & operator= (BasePublisher &&)=delete
BasePublisher & operator= (const BasePublisher &)=delete
virtual ~BasePublisher ()=default

Private Member Functions

std::vector< std::uint8_t > ComputePointCloud (std::uint32_t height, std::uint32_t width, const std::uint8_t *data) const override
std::size_t GetFieldDescriptorCount () const override
const PointFieldDescriptor * GetFieldDescriptors () const override
std::size_t GetPointSize () const override

Additional Inherited Members

Protected Attributes inherited from carla::ros2::BasePublisher
void * _actor {nullptr}
std::string _base_topic_name
std::string _frame_id

Detailed Description

Definition at line 14 of file CarlaSemanticLidarPublisher.h.

Constructor & Destructor Documentation

◆ CarlaSemanticLidarPublisher()

carla::ros2::CarlaSemanticLidarPublisher::CarlaSemanticLidarPublisher ( std::string base_topic_name,
std::string frame_id,
bool exact_topic = false )
inline

Member Function Documentation

◆ ComputePointCloud()

std::vector< std::uint8_t > carla::ros2::CarlaSemanticLidarPublisher::ComputePointCloud ( std::uint32_t height,
std::uint32_t width,
const std::uint8_t * data ) const
nodiscardoverrideprivatevirtual

◆ GetFieldDescriptorCount()

std::size_t carla::ros2::CarlaSemanticLidarPublisher::GetFieldDescriptorCount ( ) const
nodiscardoverrideprivatevirtual

◆ GetFieldDescriptors()

const PointFieldDescriptor * carla::ros2::CarlaSemanticLidarPublisher::GetFieldDescriptors ( ) const
nodiscardoverrideprivatevirtual

◆ GetPointSize()

std::size_t carla::ros2::CarlaSemanticLidarPublisher::GetPointSize ( ) const
nodiscardoverrideprivatevirtual

The documentation for this class was generated from the following files: