CARLA
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
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
 
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
 

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

◆ CarlaClockPublisher() [3/3]

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

Member Function Documentation

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

◆ Publish()

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

Implements carla::ros2::BasePublisher.

Definition at line 30 of file CarlaClockPublisher.cpp.

References _impl.

◆ Write()

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

Definition at line 34 of file CarlaClockPublisher.cpp.

References _impl.

Member Data Documentation

◆ _impl

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

Definition at line 37 of file CarlaClockPublisher.h.

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


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