|
Easy Navigation
|
Handles the creation and updating of DetectionsPerceptions instances from sensor_msgs::msg::Image messages. More...
#include <DetectionsPerception.hpp>


Public Member Functions | |
| std::shared_ptr< PerceptionBase > | create (const std::string &) override |
| Creates a new empty DetectionsPerceptions instance. | |
| rclcpp::SubscriptionBase::SharedPtr | create_subscription (rclcpp_lifecycle::LifecycleNode &node, const std::string &topic, const std::string &type, std::shared_ptr< PerceptionBase > target, rclcpp::CallbackGroup::SharedPtr cb_group) override |
| Creates a subscription to an image topic that updates a target DetectionsPerceptions. | |
| std::string | group () const override |
| Returns the group managed by this handler. | |
Public Member Functions inherited from PerceptionHandler | |
| virtual | ~PerceptionHandler ()=default |
Handles the creation and updating of DetectionsPerceptions instances from sensor_msgs::msg::Image messages.
This class provides methods to register subscriptions to image topics, decode incoming messages into cv::Mat using cv_bridge, and update target DetectionsPerceptions instances.
|
overridevirtual |
Creates a new empty DetectionsPerceptions instance.
| sensor_id | Name or identifier of the sensor. Currently unused, reserved for future extensions. |
Implements PerceptionHandler.
|
overridevirtual |
Creates a subscription to an image topic that updates a target DetectionsPerceptions.
The subscription receives sensor_msgs::msg::Image messages on topic, converts them to cv::Mat, fills DetectionsPerceptions::data, and updates inherited metadata (stamp, frame_id).
| node | Lifecycle node used to create the subscription. |
| topic | Topic name to subscribe to. |
| type | ROS message type name. It must be "sensor_msgs/msg/Image". |
| target | Shared pointer to the DetectionsPerceptions to be updated. |
| cb_group | Callback group for executor-level concurrency control. |
Implements PerceptionHandler.
|
overridevirtual |
Returns the group managed by this handler.
Implements PerceptionHandler.