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

#include <CarlaClockPublisher.h>

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

Public Member Functions

 CarlaClockPublisher (const char *ros_name="", const char *parent="")
 
 CarlaClockPublisher (const CarlaClockPublisher &)
 
 CarlaClockPublisher (CarlaClockPublisher &&)
 
bool Init ()
 
CarlaClockPublisheroperator= (const CarlaClockPublisher &)
 
CarlaClockPublisheroperator= (CarlaClockPublisher &&)
 
bool Publish ()
 
void SetData (int32_t sec, uint32_t nanosec)
 
const char * type () const override
 
 ~CarlaClockPublisher ()
 
- 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 Attributes

std::shared_ptr< CarlaClockPublisherImpl_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 CarlaClockPublisher.h.

Constructor & Destructor Documentation

◆ CarlaClockPublisher() [1/3]

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

Definition at line 150 of file CarlaClockPublisher.cpp.

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

+ Here is the call graph for this function:

◆ ~CarlaClockPublisher()

carla::ros2::CarlaClockPublisher::~CarlaClockPublisher ( )

Definition at line 156 of file CarlaClockPublisher.cpp.

References _impl.

◆ CarlaClockPublisher() [2/3]

carla::ros2::CarlaClockPublisher::CarlaClockPublisher ( const CarlaClockPublisher other)

◆ CarlaClockPublisher() [3/3]

carla::ros2::CarlaClockPublisher::CarlaClockPublisher ( CarlaClockPublisher &&  other)

Member Function Documentation

◆ Init()

bool carla::ros2::CarlaClockPublisher::Init ( )

Definition at line 42 of file CarlaClockPublisher.cpp.

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

◆ Publish()

bool carla::ros2::CarlaClockPublisher::Publish ( )

Definition at line 83 of file CarlaClockPublisher.cpp.

◆ SetData()

void carla::ros2::CarlaClockPublisher::SetData ( int32_t  sec,
uint32_t  nanosec 
)

Definition at line 145 of file CarlaClockPublisher.cpp.

◆ type()

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

Implements carla::ros2::CarlaPublisher.

Definition at line 30 of file CarlaClockPublisher.h.

Member Data Documentation

◆ _impl

std::shared_ptr<CarlaClockPublisherImpl> carla::ros2::CarlaClockPublisher::_impl
private

Definition at line 33 of file CarlaClockPublisher.h.

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


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