Class DetectionsPerceptionsHandler
Defined in File DetectionsPerception.hpp
Inheritance Relationships
Base Type
public easynav::PerceptionHandler(Class PerceptionHandler)
Class Documentation
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.
Public Functions
Returns the group managed by this handler.
- Returns:
The string literal “image”.
Creates a new empty DetectionsPerceptions instance.
- Parameters:
sensor_id – Name or identifier of the sensor. Currently unused, reserved for future extensions.
- Returns:
Shared pointer to a newly created DetectionsPerceptions.
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).- Parameters:
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.
- Returns:
Shared pointer to the created subscription.