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

#include <CarlaClockPublisher.h>

Inheritance diagram for carla::ros2::CarlaClockPublisher:

Public Member Functions

 CarlaClockPublisher ()
 CarlaClockPublisher (CarlaClockPublisher &&) noexcept=default
 CarlaClockPublisher (const CarlaClockPublisher &)=delete
bool IsReady () const
 False when the writer could not be created, i.e.
CarlaClockPublisher & operator= (CarlaClockPublisher &&) noexcept=default
CarlaClockPublisher & operator= (const CarlaClockPublisher &)=delete
bool Publish () override
bool Write (std::int32_t seconds, std::uint32_t nanoseconds)
 ~CarlaClockPublisher () 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 Attributes

std::shared_ptr< PublisherImpl< CarlaClockMsgTraits > > _impl
bool _ready = false

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 23 of file CarlaClockPublisher.h.

Constructor & Destructor Documentation

◆ CarlaClockPublisher() [1/3]

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

◆ ~CarlaClockPublisher()

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

◆ CarlaClockPublisher() [2/3]

carla::ros2::CarlaClockPublisher::CarlaClockPublisher ( const CarlaClockPublisher & )
delete

References CarlaClockPublisher().

◆ CarlaClockPublisher() [3/3]

carla::ros2::CarlaClockPublisher::CarlaClockPublisher ( CarlaClockPublisher && )
defaultnoexcept

References CarlaClockPublisher().

Member Function Documentation

◆ IsReady()

bool carla::ros2::CarlaClockPublisher::IsReady ( ) const
inline

False when the writer could not be created, i.e.

the middleware failed to start (no participant or session).

Definition at line 38 of file CarlaClockPublisher.h.

References _ready, and IsReady().

Referenced by IsReady().

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

References CarlaClockPublisher().

◆ Publish()

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

Implements carla::ros2::BasePublisher.

Definition at line 31 of file CarlaClockPublisher.cpp.

References _impl.

Referenced by operator=().

◆ Write()

bool carla::ros2::CarlaClockPublisher::Write ( std::int32_t seconds,
std::uint32_t nanoseconds )

Definition at line 35 of file CarlaClockPublisher.cpp.

References _impl.

Referenced by operator=().

Member Data Documentation

◆ _impl

std::shared_ptr<PublisherImpl<CarlaClockMsgTraits> > carla::ros2::CarlaClockPublisher::_impl
private

Definition at line 41 of file CarlaClockPublisher.h.

Referenced by CarlaClockPublisher(), Publish(), and Write().

◆ _ready

bool carla::ros2::CarlaClockPublisher::_ready = false
private

Definition at line 42 of file CarlaClockPublisher.h.

Referenced by CarlaClockPublisher(), and IsReady().


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