27#ifndef EASYNAV_COMMON_TYPES__IMAGEPERCEPTIONS_HPP_
28#define EASYNAV_COMMON_TYPES__IMAGEPERCEPTIONS_HPP_
34#include "cv_bridge/cv_bridge.hpp"
35#include "sensor_msgs/msg/image.hpp"
37#include "rclcpp/time.hpp"
38#include "rclcpp_lifecycle/lifecycle_node.hpp"
66 std::string
group()
const override {
return "image";}
71 std::shared_ptr<PerceptionBase>
create(
const std::string &)
override
73 return std::make_shared<ImagePerception>();
84 rclcpp_lifecycle::LifecycleNode & node,
85 const std::string & topic,
86 const std::string & type,
87 std::shared_ptr<PerceptionBase> target,
88 rclcpp::CallbackGroup::SharedPtr cb_group)
override;
96 std::vector<std::shared_ptr<ImagePerception>>;
Defines data structures and utilities for representing and processing sensor perceptions.
Handles the creation and updating of ImagePerception instances from sensor_msgs::msg::Image messages.
Definition ImagePerception.hpp:62
std::shared_ptr< PerceptionBase > create(const std::string &) override
Creates a new empty ImagePerception instance.
Definition ImagePerception.hpp:71
std::string group() const override
Returns the group name this handler manages ("image").
Definition ImagePerception.hpp:66
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 an perception.
Definition ImagePerception.cpp:38
Represents a single image perception from a sensor.
Definition ImagePerception.hpp:50
cv::Mat data
Image data received from the sensor.
Definition ImagePerception.hpp:53
Abstract base class for representing a single sensor perception.
Definition Perceptions.hpp:50
Abstract base interface for group-specific perception handlers.
Definition Perceptions.hpp:87
Definition RTTFBuffer.hpp:30
std::vector< std::shared_ptr< ImagePerception > > ImagePerceptions
Alias for a vector of shared pointers to ImagePerception objects.
Definition ImagePerception.hpp:95