#include <CarlaCollisionPublisher.h>
Public Member Functions | |
CarlaCollisionPublisher (const char *ros_name="", const char *parent="") | |
CarlaCollisionPublisher (const CarlaCollisionPublisher &) | |
CarlaCollisionPublisher (CarlaCollisionPublisher &&) | |
bool | Init () |
CarlaCollisionPublisher & | operator= (const CarlaCollisionPublisher &) |
CarlaCollisionPublisher & | operator= (CarlaCollisionPublisher &&) |
bool | Publish () |
void | SetData (int32_t seconds, uint32_t nanoseconds, uint32_t actor_id, float x, float y, float z) |
const char * | type () const override |
~CarlaCollisionPublisher () | |
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, uint32_t actor_id, std::vector< float > &&data) |
Private Attributes | |
std::shared_ptr< CarlaCollisionPublisherImpl > | _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 CarlaCollisionPublisher.h.
carla::ros2::CarlaCollisionPublisher::CarlaCollisionPublisher | ( | const char * | ros_name = "" , |
const char * | parent = "" |
||
) |
Definition at line 176 of file CarlaCollisionPublisher.cpp.
References carla::ros2::CarlaPublisher::_name, carla::ros2::CarlaPublisher::_parent, and carla::ros2::CarlaPublisher::parent().
carla::ros2::CarlaCollisionPublisher::~CarlaCollisionPublisher | ( | ) |
Definition at line 182 of file CarlaCollisionPublisher.cpp.
References _impl.
carla::ros2::CarlaCollisionPublisher::CarlaCollisionPublisher | ( | const CarlaCollisionPublisher & | other | ) |
Definition at line 199 of file CarlaCollisionPublisher.cpp.
References carla::ros2::CarlaPublisher::_frame_id, _impl, carla::ros2::CarlaPublisher::_name, and carla::ros2::CarlaPublisher::_parent.
carla::ros2::CarlaCollisionPublisher::CarlaCollisionPublisher | ( | CarlaCollisionPublisher && | other | ) |
Definition at line 215 of file CarlaCollisionPublisher.cpp.
References carla::ros2::CarlaPublisher::_frame_id, _impl, carla::ros2::CarlaPublisher::_name, and carla::ros2::CarlaPublisher::_parent.
bool carla::ros2::CarlaCollisionPublisher::Init | ( | ) |
Definition at line 43 of file CarlaCollisionPublisher.cpp.
CarlaCollisionPublisher & carla::ros2::CarlaCollisionPublisher::operator= | ( | const CarlaCollisionPublisher & | other | ) |
Definition at line 206 of file CarlaCollisionPublisher.cpp.
References carla::ros2::CarlaPublisher::_frame_id, _impl, carla::ros2::CarlaPublisher::_name, and carla::ros2::CarlaPublisher::_parent.
CarlaCollisionPublisher & carla::ros2::CarlaCollisionPublisher::operator= | ( | CarlaCollisionPublisher && | other | ) |
Definition at line 222 of file CarlaCollisionPublisher.cpp.
References carla::ros2::CarlaPublisher::_frame_id, _impl, carla::ros2::CarlaPublisher::_name, and carla::ros2::CarlaPublisher::_parent.
bool carla::ros2::CarlaCollisionPublisher::Publish | ( | ) |
Definition at line 91 of file CarlaCollisionPublisher.cpp.
void carla::ros2::CarlaCollisionPublisher::SetData | ( | int32_t | seconds, |
uint32_t | nanoseconds, | ||
uint32_t | actor_id, | ||
float | x, | ||
float | y, | ||
float | z | ||
) |
Definition at line 153 of file CarlaCollisionPublisher.cpp.
Referenced by carla::ros2::ROS2::ProcessDataFromCollisionSensor(), and type().
|
private |
Definition at line 158 of file CarlaCollisionPublisher.cpp.
References std_msgs::msg::Header::frame_id(), builtin_interfaces::msg::Time::nanosec(), builtin_interfaces::msg::Time::sec(), std_msgs::msg::Header::stamp(), geometry_msgs::msg::Vector3::x(), geometry_msgs::msg::Vector3::y(), and geometry_msgs::msg::Vector3::z().
|
inlineoverridevirtual |
Implements carla::ros2::CarlaPublisher.
Definition at line 30 of file CarlaCollisionPublisher.h.
References SetData().
|
private |
Definition at line 36 of file CarlaCollisionPublisher.h.
Referenced by CarlaCollisionPublisher(), operator=(), and ~CarlaCollisionPublisher().