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

#include <CarlaRadarPublisher.h>

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

Public Member Functions

 CarlaRadarPublisher (const char *ros_name="", const char *parent="")
 
 CarlaRadarPublisher (const CarlaRadarPublisher &)
 
 CarlaRadarPublisher (CarlaRadarPublisher &&)
 
bool Init ()
 
CarlaRadarPublisheroperator= (const CarlaRadarPublisher &)
 
CarlaRadarPublisheroperator= (CarlaRadarPublisher &&)
 
bool Publish ()
 
void SetData (int32_t seconds, uint32_t nanoseconds, size_t height, size_t width, size_t elements, const uint8_t *data)
 
const char * type () const override
 
 ~CarlaRadarPublisher ()
 
- 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, size_t elements, std::vector< uint8_t > &&data)
 

Private Attributes

std::shared_ptr< CarlaRadarPublisherImpl_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 CarlaRadarPublisher.h.

Constructor & Destructor Documentation

◆ CarlaRadarPublisher() [1/3]

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

Definition at line 234 of file CarlaRadarPublisher.cpp.

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

+ Here is the call graph for this function:

◆ ~CarlaRadarPublisher()

carla::ros2::CarlaRadarPublisher::~CarlaRadarPublisher ( )

Definition at line 240 of file CarlaRadarPublisher.cpp.

References _impl.

◆ CarlaRadarPublisher() [2/3]

carla::ros2::CarlaRadarPublisher::CarlaRadarPublisher ( const CarlaRadarPublisher other)

◆ CarlaRadarPublisher() [3/3]

carla::ros2::CarlaRadarPublisher::CarlaRadarPublisher ( CarlaRadarPublisher &&  other)

Member Function Documentation

◆ Init()

bool carla::ros2::CarlaRadarPublisher::Init ( )

Definition at line 51 of file CarlaRadarPublisher.cpp.

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

◆ Publish()

bool carla::ros2::CarlaRadarPublisher::Publish ( )

Definition at line 98 of file CarlaRadarPublisher.cpp.

◆ SetData() [1/2]

void carla::ros2::CarlaRadarPublisher::SetData ( int32_t  seconds,
uint32_t  nanoseconds,
size_t  height,
size_t  width,
size_t  elements,
const uint8_t *  data 
)

Definition at line 160 of file CarlaRadarPublisher.cpp.

References carla::sensor::data::RadarDetection::altitude, carla::sensor::data::RadarDetection::azimuth, and carla::sensor::data::RadarDetection::depth.

Referenced by type().

+ Here is the caller graph for this function:

◆ SetData() [2/2]

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

◆ type()

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

Implements carla::ros2::CarlaPublisher.

Definition at line 30 of file CarlaRadarPublisher.h.

References SetData().

+ Here is the call graph for this function:

Member Data Documentation

◆ _impl

std::shared_ptr<CarlaRadarPublisherImpl> carla::ros2::CarlaRadarPublisher::_impl
private

Definition at line 36 of file CarlaRadarPublisher.h.

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


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