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

#include <CarlaSpeedometerSensor.h>

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

Public Member Functions

 CarlaSpeedometerSensor (const char *ros_name="", const char *parent="")
 
 CarlaSpeedometerSensor (const CarlaSpeedometerSensor &)
 
 CarlaSpeedometerSensor (CarlaSpeedometerSensor &&)
 
bool Init ()
 
CarlaSpeedometerSensoroperator= (const CarlaSpeedometerSensor &)
 
CarlaSpeedometerSensoroperator= (CarlaSpeedometerSensor &&)
 
bool Publish ()
 
void SetData (float data)
 
const char * type () const override
 
 ~CarlaSpeedometerSensor ()
 
- 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< CarlaSpeedometerSensorImpl_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 CarlaSpeedometerSensor.h.

Constructor & Destructor Documentation

◆ CarlaSpeedometerSensor() [1/3]

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

Definition at line 154 of file CarlaSpeedometerSensor.cpp.

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

+ Here is the call graph for this function:

◆ ~CarlaSpeedometerSensor()

carla::ros2::CarlaSpeedometerSensor::~CarlaSpeedometerSensor ( )

Definition at line 160 of file CarlaSpeedometerSensor.cpp.

References _impl.

◆ CarlaSpeedometerSensor() [2/3]

carla::ros2::CarlaSpeedometerSensor::CarlaSpeedometerSensor ( const CarlaSpeedometerSensor other)

◆ CarlaSpeedometerSensor() [3/3]

carla::ros2::CarlaSpeedometerSensor::CarlaSpeedometerSensor ( CarlaSpeedometerSensor &&  other)

Member Function Documentation

◆ Init()

bool carla::ros2::CarlaSpeedometerSensor::Init ( )

Definition at line 42 of file CarlaSpeedometerSensor.cpp.

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

◆ Publish()

bool carla::ros2::CarlaSpeedometerSensor::Publish ( )

Definition at line 88 of file CarlaSpeedometerSensor.cpp.

◆ SetData()

void carla::ros2::CarlaSpeedometerSensor::SetData ( float  data)

Definition at line 150 of file CarlaSpeedometerSensor.cpp.

◆ type()

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

Implements carla::ros2::CarlaPublisher.

Definition at line 30 of file CarlaSpeedometerSensor.h.

Member Data Documentation

◆ _impl

std::shared_ptr<CarlaSpeedometerSensorImpl> carla::ros2::CarlaSpeedometerSensor::_impl
private

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