#include <CarlaSemanticLidarPublisher.h>
Public Member Functions | |
CarlaSemanticLidarPublisher (const char *ros_name="", const char *parent="") | |
CarlaSemanticLidarPublisher (const CarlaSemanticLidarPublisher &) | |
CarlaSemanticLidarPublisher (CarlaSemanticLidarPublisher &&) | |
bool | Init () |
CarlaSemanticLidarPublisher & | operator= (const CarlaSemanticLidarPublisher &) |
CarlaSemanticLidarPublisher & | operator= (CarlaSemanticLidarPublisher &&) |
bool | Publish () |
void | SetData (int32_t seconds, uint32_t nanoseconds, size_t elements, size_t height, size_t width, float *data) |
const char * | type () const override |
~CarlaSemanticLidarPublisher () | |
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 Member Functions | |
void | SetData (int32_t seconds, uint32_t nanoseconds, size_t height, size_t width, std::vector< uint8_t > &&data) |
Private Attributes | |
std::shared_ptr< CarlaSemanticLidarPublisherImpl > | _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 CarlaSemanticLidarPublisher.h.
carla::ros2::CarlaSemanticLidarPublisher::CarlaSemanticLidarPublisher | ( | const char * | ros_name = "" , |
const char * | parent = "" |
||
) |
Definition at line 217 of file CarlaSemanticLidarPublisher.cpp.
References carla::ros2::CarlaPublisher::_name, carla::ros2::CarlaPublisher::_parent, and carla::ros2::CarlaPublisher::parent().
carla::ros2::CarlaSemanticLidarPublisher::~CarlaSemanticLidarPublisher | ( | ) |
Definition at line 223 of file CarlaSemanticLidarPublisher.cpp.
References _impl.
carla::ros2::CarlaSemanticLidarPublisher::CarlaSemanticLidarPublisher | ( | const CarlaSemanticLidarPublisher & | other | ) |
Definition at line 240 of file CarlaSemanticLidarPublisher.cpp.
References carla::ros2::CarlaPublisher::_frame_id, _impl, carla::ros2::CarlaPublisher::_name, and carla::ros2::CarlaPublisher::_parent.
carla::ros2::CarlaSemanticLidarPublisher::CarlaSemanticLidarPublisher | ( | CarlaSemanticLidarPublisher && | other | ) |
Definition at line 256 of file CarlaSemanticLidarPublisher.cpp.
References carla::ros2::CarlaPublisher::_frame_id, _impl, carla::ros2::CarlaPublisher::_name, and carla::ros2::CarlaPublisher::_parent.
bool carla::ros2::CarlaSemanticLidarPublisher::Init | ( | ) |
Definition at line 43 of file CarlaSemanticLidarPublisher.cpp.
CarlaSemanticLidarPublisher & carla::ros2::CarlaSemanticLidarPublisher::operator= | ( | const CarlaSemanticLidarPublisher & | other | ) |
Definition at line 247 of file CarlaSemanticLidarPublisher.cpp.
References carla::ros2::CarlaPublisher::_frame_id, _impl, carla::ros2::CarlaPublisher::_name, and carla::ros2::CarlaPublisher::_parent.
CarlaSemanticLidarPublisher & carla::ros2::CarlaSemanticLidarPublisher::operator= | ( | CarlaSemanticLidarPublisher && | other | ) |
Definition at line 263 of file CarlaSemanticLidarPublisher.cpp.
References carla::ros2::CarlaPublisher::_frame_id, _impl, carla::ros2::CarlaPublisher::_name, and carla::ros2::CarlaPublisher::_parent.
bool carla::ros2::CarlaSemanticLidarPublisher::Publish | ( | ) |
Definition at line 89 of file CarlaSemanticLidarPublisher.cpp.
void carla::ros2::CarlaSemanticLidarPublisher::SetData | ( | int32_t | seconds, |
uint32_t | nanoseconds, | ||
size_t | elements, | ||
size_t | height, | ||
size_t | width, | ||
float * | data | ||
) |
Definition at line 151 of file CarlaSemanticLidarPublisher.cpp.
Referenced by type().
|
private |
Definition at line 165 of file CarlaSemanticLidarPublisher.cpp.
References sensor_msgs::msg::PointField::count(), sensor_msgs::msg::PointField::datatype(), std_msgs::msg::Header::frame_id(), sensor_msgs::msg::PointField::name(), builtin_interfaces::msg::Time::nanosec(), sensor_msgs::msg::PointField::offset(), sensor_msgs::msg::PointField__FLOAT32, sensor_msgs::msg::PointField__UINT32, builtin_interfaces::msg::Time::sec(), and std_msgs::msg::Header::stamp().
|
inlineoverridevirtual |
Implements carla::ros2::CarlaPublisher.
Definition at line 30 of file CarlaSemanticLidarPublisher.h.
References SetData().
|
private |
Definition at line 36 of file CarlaSemanticLidarPublisher.h.
Referenced by CarlaSemanticLidarPublisher(), operator=(), and ~CarlaSemanticLidarPublisher().