CARLA
Public Member Functions | Private Member Functions | Private Attributes | List of all members
carla::ros2::CarlaSemanticLidarPublisher Class Reference

#include <CarlaSemanticLidarPublisher.h>

+ Inheritance diagram for carla::ros2::CarlaSemanticLidarPublisher:
+ Collaboration diagram for carla::ros2::CarlaSemanticLidarPublisher:

Public Member Functions

 CarlaSemanticLidarPublisher (const char *ros_name="", const char *parent="")
 
 CarlaSemanticLidarPublisher (const CarlaSemanticLidarPublisher &)
 
 CarlaSemanticLidarPublisher (CarlaSemanticLidarPublisher &&)
 
bool Init ()
 
CarlaSemanticLidarPublisheroperator= (const CarlaSemanticLidarPublisher &)
 
CarlaSemanticLidarPublisheroperator= (CarlaSemanticLidarPublisher &&)
 
bool Publish ()
 
void SetData (int32_t seconds, uint32_t nanoseconds, size_t elements, size_t height, size_t width, float *data)
 
const char * type () const override
 
 ~CarlaSemanticLidarPublisher ()
 
- Public Member Functions inherited from carla::ros2::CarlaPublisher
 CarlaPublisher ()=default
 
const std::string & frame_id () const
 
void frame_id (std::string &&frame_id)
 
const std::string & name () const
 
void name (std::string &&name)
 
const std::string & parent () const
 
void parent (std::string &&parent)
 
virtual ~CarlaPublisher ()=default
 

Private Member Functions

void SetData (int32_t seconds, uint32_t nanoseconds, size_t height, size_t width, std::vector< uint8_t > &&data)
 

Private Attributes

std::shared_ptr< CarlaSemanticLidarPublisherImpl_impl
 

Additional Inherited Members

- Protected Attributes inherited from carla::ros2::CarlaPublisher
std::string _frame_id = ""
 
std::string _name = ""
 
std::string _parent = ""
 

Detailed Description

Definition at line 18 of file CarlaSemanticLidarPublisher.h.

Constructor & Destructor Documentation

◆ CarlaSemanticLidarPublisher() [1/3]

carla::ros2::CarlaSemanticLidarPublisher::CarlaSemanticLidarPublisher ( const char *  ros_name = "",
const char *  parent = "" 
)

Definition at line 217 of file CarlaSemanticLidarPublisher.cpp.

References carla::ros2::CarlaPublisher::_name, carla::ros2::CarlaPublisher::_parent, and carla::ros2::CarlaPublisher::parent().

+ Here is the call graph for this function:

◆ ~CarlaSemanticLidarPublisher()

carla::ros2::CarlaSemanticLidarPublisher::~CarlaSemanticLidarPublisher ( )

Definition at line 223 of file CarlaSemanticLidarPublisher.cpp.

References _impl.

◆ CarlaSemanticLidarPublisher() [2/3]

carla::ros2::CarlaSemanticLidarPublisher::CarlaSemanticLidarPublisher ( const CarlaSemanticLidarPublisher other)

◆ CarlaSemanticLidarPublisher() [3/3]

carla::ros2::CarlaSemanticLidarPublisher::CarlaSemanticLidarPublisher ( CarlaSemanticLidarPublisher &&  other)

Member Function Documentation

◆ Init()

bool carla::ros2::CarlaSemanticLidarPublisher::Init ( )

Definition at line 43 of file CarlaSemanticLidarPublisher.cpp.

◆ operator=() [1/2]

CarlaSemanticLidarPublisher & carla::ros2::CarlaSemanticLidarPublisher::operator= ( const CarlaSemanticLidarPublisher other)

◆ operator=() [2/2]

CarlaSemanticLidarPublisher & carla::ros2::CarlaSemanticLidarPublisher::operator= ( CarlaSemanticLidarPublisher &&  other)

◆ Publish()

bool carla::ros2::CarlaSemanticLidarPublisher::Publish ( )

Definition at line 89 of file CarlaSemanticLidarPublisher.cpp.

◆ SetData() [1/2]

void carla::ros2::CarlaSemanticLidarPublisher::SetData ( int32_t  seconds,
uint32_t  nanoseconds,
size_t  elements,
size_t  height,
size_t  width,
float *  data 
)

Definition at line 151 of file CarlaSemanticLidarPublisher.cpp.

Referenced by type().

+ Here is the caller graph for this function:

◆ SetData() [2/2]

void carla::ros2::CarlaSemanticLidarPublisher::SetData ( int32_t  seconds,
uint32_t  nanoseconds,
size_t  height,
size_t  width,
std::vector< uint8_t > &&  data 
)
private

◆ type()

const char* carla::ros2::CarlaSemanticLidarPublisher::type ( ) const
inlineoverridevirtual

Implements carla::ros2::CarlaPublisher.

Definition at line 30 of file CarlaSemanticLidarPublisher.h.

References SetData().

+ Here is the call graph for this function:

Member Data Documentation

◆ _impl

std::shared_ptr<CarlaSemanticLidarPublisherImpl> carla::ros2::CarlaSemanticLidarPublisher::_impl
private

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