Easy Navigation
Loading...
Searching...
No Matches
PointPerceptionHandler Class Reference

PerceptionHandler implementation for sensors producing point-based data. More...

#include <PointPerception.hpp>

Inheritance diagram for PointPerceptionHandler:
Collaboration diagram for PointPerceptionHandler:

Public Member Functions

std::shared_ptr< PerceptionBasecreate (const std::string &) override
 Creates a new PointPerception 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 LaserScan or PointCloud2 messages and updates the perception.
 
std::string group () const override
 Returns the sensor group handled by this handler: "points".
 
- Public Member Functions inherited from PerceptionHandler
virtual ~PerceptionHandler ()=default
 

Detailed Description

PerceptionHandler implementation for sensors producing point-based data.

This handler supports both sensor_msgs::msg::LaserScan and sensor_msgs::msg::PointCloud2. It converts incoming messages into PointPerception instances and stores them.

Member Function Documentation

◆ create()

std::shared_ptr< PerceptionBase > create ( const std::string & )
overridevirtual

Creates a new PointPerception instance.

Parameters
sensor_idIdentifier of the sensor (unused in this handler).
Returns
Shared pointer to a new PointPerception.

Implements PerceptionHandler.

◆ create_subscription()

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 )
overridevirtual

Creates a subscription to LaserScan or PointCloud2 messages and updates the perception.

Implements PerceptionHandler.

◆ group()

std::string group ( ) const
overridevirtual

Returns the sensor group handled by this handler: "points".

Implements PerceptionHandler.


The documentation for this class was generated from the following files: