#include <CarlaSpeedometerSensor.h>
Public Member Functions | |
CarlaSpeedometerSensor (const char *ros_name="", const char *parent="") | |
CarlaSpeedometerSensor (const CarlaSpeedometerSensor &) | |
CarlaSpeedometerSensor (CarlaSpeedometerSensor &&) | |
bool | Init () |
CarlaSpeedometerSensor & | operator= (const CarlaSpeedometerSensor &) |
CarlaSpeedometerSensor & | operator= (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 = "" |
Definition at line 18 of file CarlaSpeedometerSensor.h.
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().
carla::ros2::CarlaSpeedometerSensor::~CarlaSpeedometerSensor | ( | ) |
Definition at line 160 of file CarlaSpeedometerSensor.cpp.
References _impl.
carla::ros2::CarlaSpeedometerSensor::CarlaSpeedometerSensor | ( | const CarlaSpeedometerSensor & | other | ) |
Definition at line 177 of file CarlaSpeedometerSensor.cpp.
References carla::ros2::CarlaPublisher::_frame_id, _impl, carla::ros2::CarlaPublisher::_name, and carla::ros2::CarlaPublisher::_parent.
carla::ros2::CarlaSpeedometerSensor::CarlaSpeedometerSensor | ( | CarlaSpeedometerSensor && | other | ) |
Definition at line 193 of file CarlaSpeedometerSensor.cpp.
References carla::ros2::CarlaPublisher::_frame_id, _impl, carla::ros2::CarlaPublisher::_name, and carla::ros2::CarlaPublisher::_parent.
bool carla::ros2::CarlaSpeedometerSensor::Init | ( | ) |
Definition at line 42 of file CarlaSpeedometerSensor.cpp.
CarlaSpeedometerSensor & carla::ros2::CarlaSpeedometerSensor::operator= | ( | const CarlaSpeedometerSensor & | other | ) |
Definition at line 184 of file CarlaSpeedometerSensor.cpp.
References carla::ros2::CarlaPublisher::_frame_id, _impl, carla::ros2::CarlaPublisher::_name, and carla::ros2::CarlaPublisher::_parent.
CarlaSpeedometerSensor & carla::ros2::CarlaSpeedometerSensor::operator= | ( | CarlaSpeedometerSensor && | other | ) |
Definition at line 200 of file CarlaSpeedometerSensor.cpp.
References carla::ros2::CarlaPublisher::_frame_id, _impl, carla::ros2::CarlaPublisher::_name, and carla::ros2::CarlaPublisher::_parent.
bool carla::ros2::CarlaSpeedometerSensor::Publish | ( | ) |
Definition at line 88 of file CarlaSpeedometerSensor.cpp.
void carla::ros2::CarlaSpeedometerSensor::SetData | ( | float | data | ) |
Definition at line 150 of file CarlaSpeedometerSensor.cpp.
|
inlineoverridevirtual |
Implements carla::ros2::CarlaPublisher.
Definition at line 30 of file CarlaSpeedometerSensor.h.
|
private |
Definition at line 33 of file CarlaSpeedometerSensor.h.
Referenced by CarlaSpeedometerSensor(), operator=(), and ~CarlaSpeedometerSensor().