Class PerceptionHandler
Defined in File Perceptions.hpp
Inheritance Relationships
Derived Types
public easynav::DetectionsPerceptionsHandler(Class DetectionsPerceptionsHandler)public easynav::GNSSPerceptionHandler(Class GNSSPerceptionHandler)public easynav::IMUPerceptionHandler(Class IMUPerceptionHandler)public easynav::ImagePerceptionHandler(Class ImagePerceptionHandler)public easynav::PointPerceptionHandler(Class PointPerceptionHandler)
Class Documentation
Abstract base interface for group-specific perception handlers.
Each handler is responsible for a sensor group (e.g., “points”, “image”, “dummy”). It creates appropriate PerceptionBase instances and handles the conversion from ROS messages.
Subclassed by easynav::DetectionsPerceptionsHandler, easynav::GNSSPerceptionHandler, easynav::IMUPerceptionHandler, easynav::ImagePerceptionHandler, easynav::PointPerceptionHandler
Public Functions
Creates a new instance of a perception object managed by this handler.
- Parameters:
sensor_id – Name or ID of the sensor (optional use by handler).
- Returns:
Shared pointer to a new instance of a class derived from PerceptionBase.
Creates a subscription that processes messages into PerceptionBase instances.
The handler is expected to parse the message received on
topicof typetypeand store the result intarget.- Parameters:
node – Reference to the lifecycle node used for creating the subscription.
topic – Topic name to subscribe to.
type – ROS message type name (e.g.,
"sensor_msgs/msg/LaserScan").target – Shared pointer where perception results are stored.
cb_group – Callback group where the subscription callback will be executed.
- Returns:
Shared pointer to the created subscription.
Returns the group identifier associated with this handler.
This identifier is used to match sensors to the appropriate handler. Example:
"points","image","dummy".- Returns:
String representing the group name.