|
CARLA
|
#include <AutowareControlSubscriber.h>
Inheritance diagram for carla::ros2::AutowareControlSubscriber:Classes | |
| class | Impl |
Public Member Functions | |
| AutowareControlSubscriber (void *vehicle, std::string frame_id) | |
| void | ProcessMessages (ActorCallback callback) override |
| Drains the six command topics once per frame (called from ROS2::SetFrame like every BaseSubscriber). | |
| ~AutowareControlSubscriber () override | |
Public Member Functions inherited from carla::ros2::BaseSubscriber | |
| BaseSubscriber ()=default | |
| BaseSubscriber (BaseSubscriber &&)=delete | |
| BaseSubscriber (const BaseSubscriber &)=delete | |
| BaseSubscriber (std::string base_topic_name) | |
| BaseSubscriber (std::string base_topic_name, std::string frame_id) | |
| BaseSubscriber (void *actor, std::string base_topic_name, std::string frame_id) | |
| void * | GetActor () const noexcept |
| const std::string & | GetBaseTopicName () const noexcept |
| const std::string & | GetFrameId () const noexcept |
| BaseSubscriber & | operator= (BaseSubscriber &&)=delete |
| BaseSubscriber & | operator= (const BaseSubscriber &)=delete |
| virtual | ~BaseSubscriber ()=default |
Protected Member Functions | |
| ROS2CallbackData | GetMessage () override |
Private Attributes | |
| std::shared_ptr< Impl > | _impl |
Additional Inherited Members | |
Protected Attributes inherited from carla::ros2::BaseSubscriber | |
| void * | _actor {nullptr} |
| std::string | _base_topic_name |
| std::string | _frame_id |
Definition at line 39 of file AutowareControlSubscriber.h.
| carla::ros2::AutowareControlSubscriber::AutowareControlSubscriber | ( | void * | vehicle, |
| std::string | frame_id | ||
| ) |
Definition at line 49 of file AutowareControlSubscriber.cpp.
References _impl, carla::log_error(), and carla::ros2::QosProfile::ReliableTransientLocal().
|
overridedefault |
|
overrideprotectedvirtual |
Implements carla::ros2::BaseSubscriber.
Definition at line 70 of file AutowareControlSubscriber.cpp.
References _impl, carla::ros2::VehicleAccelerationControl::acceleration, and carla::ros2::autoware_steering_compensation::GetSteeringInput().
Referenced by ProcessMessages().
|
overridevirtual |
Drains the six command topics once per frame (called from ROS2::SetFrame like every BaseSubscriber).
Fires the actor callback with a VehicleAccelerationControl when any command topic has news.
Implements carla::ros2::BaseSubscriber.
Definition at line 105 of file AutowareControlSubscriber.cpp.
References _impl, carla::ros2::BaseSubscriber::GetActor(), and GetMessage().
|
private |
Definition at line 54 of file AutowareControlSubscriber.h.
Referenced by AutowareControlSubscriber(), GetMessage(), and ProcessMessages().