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

#include <CarlaLineInvasionPublisher.h>

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

Public Member Functions

 CarlaLineInvasionPublisher (const char *ros_name="", const char *parent="")
 
 CarlaLineInvasionPublisher (const CarlaLineInvasionPublisher &)
 
 CarlaLineInvasionPublisher (CarlaLineInvasionPublisher &&)
 
bool Init ()
 
CarlaLineInvasionPublisheroperator= (const CarlaLineInvasionPublisher &)
 
CarlaLineInvasionPublisheroperator= (CarlaLineInvasionPublisher &&)
 
bool Publish ()
 
void SetData (int32_t seconds, uint32_t nanoseconds, const int32_t *data)
 
const char * type () const override
 
 ~CarlaLineInvasionPublisher ()
 
- 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< CarlaLineInvasionPublisherImpl_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 17 of file CarlaLineInvasionPublisher.h.

Constructor & Destructor Documentation

◆ CarlaLineInvasionPublisher() [1/3]

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

Definition at line 164 of file CarlaLineInvasionPublisher.cpp.

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

+ Here is the call graph for this function:

◆ ~CarlaLineInvasionPublisher()

carla::ros2::CarlaLineInvasionPublisher::~CarlaLineInvasionPublisher ( )

Definition at line 170 of file CarlaLineInvasionPublisher.cpp.

References _impl.

◆ CarlaLineInvasionPublisher() [2/3]

carla::ros2::CarlaLineInvasionPublisher::CarlaLineInvasionPublisher ( const CarlaLineInvasionPublisher other)

◆ CarlaLineInvasionPublisher() [3/3]

carla::ros2::CarlaLineInvasionPublisher::CarlaLineInvasionPublisher ( CarlaLineInvasionPublisher &&  other)

Member Function Documentation

◆ Init()

bool carla::ros2::CarlaLineInvasionPublisher::Init ( )

Definition at line 42 of file CarlaLineInvasionPublisher.cpp.

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

◆ Publish()

bool carla::ros2::CarlaLineInvasionPublisher::Publish ( )

Definition at line 89 of file CarlaLineInvasionPublisher.cpp.

◆ SetData()

void carla::ros2::CarlaLineInvasionPublisher::SetData ( int32_t  seconds,
uint32_t  nanoseconds,
const int32_t *  data 
)

Definition at line 151 of file CarlaLineInvasionPublisher.cpp.

References std_msgs::msg::Header::frame_id(), builtin_interfaces::msg::Time::nanosec(), builtin_interfaces::msg::Time::sec(), and std_msgs::msg::Header::stamp().

Referenced by carla::ros2::ROS2::ProcessDataFromCamera().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ type()

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

Implements carla::ros2::CarlaPublisher.

Definition at line 29 of file CarlaLineInvasionPublisher.h.

Member Data Documentation

◆ _impl

std::shared_ptr<CarlaLineInvasionPublisherImpl> carla::ros2::CarlaLineInvasionPublisher::_impl
private

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