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

#include <CarlaLidarPublisher.h>

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

Public Member Functions

 CarlaLidarPublisher (const char *ros_name="", const char *parent="")
 
 CarlaLidarPublisher (const CarlaLidarPublisher &)
 
 CarlaLidarPublisher (CarlaLidarPublisher &&)
 
bool Init ()
 
CarlaLidarPublisheroperator= (const CarlaLidarPublisher &)
 
CarlaLidarPublisheroperator= (CarlaLidarPublisher &&)
 
bool Publish ()
 
void SetData (int32_t seconds, uint32_t nanoseconds, size_t height, size_t width, float *data)
 
const char * type () const override
 
 ~CarlaLidarPublisher ()
 
- 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< CarlaLidarPublisherImpl_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 CarlaLidarPublisher.h.

Constructor & Destructor Documentation

◆ CarlaLidarPublisher() [1/3]

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

Definition at line 207 of file CarlaLidarPublisher.cpp.

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

+ Here is the call graph for this function:

◆ ~CarlaLidarPublisher()

carla::ros2::CarlaLidarPublisher::~CarlaLidarPublisher ( )

Definition at line 213 of file CarlaLidarPublisher.cpp.

References _impl.

◆ CarlaLidarPublisher() [2/3]

carla::ros2::CarlaLidarPublisher::CarlaLidarPublisher ( const CarlaLidarPublisher other)

◆ CarlaLidarPublisher() [3/3]

carla::ros2::CarlaLidarPublisher::CarlaLidarPublisher ( CarlaLidarPublisher &&  other)

Member Function Documentation

◆ Init()

bool carla::ros2::CarlaLidarPublisher::Init ( )

Definition at line 42 of file CarlaLidarPublisher.cpp.

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

◆ Publish()

bool carla::ros2::CarlaLidarPublisher::Publish ( )

Definition at line 89 of file CarlaLidarPublisher.cpp.

◆ SetData() [1/2]

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

Definition at line 152 of file CarlaLidarPublisher.cpp.

Referenced by type().

+ Here is the caller graph for this function:

◆ SetData() [2/2]

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

◆ type()

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

Implements carla::ros2::CarlaPublisher.

Definition at line 30 of file CarlaLidarPublisher.h.

References SetData().

+ Here is the call graph for this function:

Member Data Documentation

◆ _impl

std::shared_ptr<CarlaLidarPublisherImpl> carla::ros2::CarlaLidarPublisher::_impl
private

Definition at line 36 of file CarlaLidarPublisher.h.

Referenced by CarlaLidarPublisher(), operator=(), and ~CarlaLidarPublisher().


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