Class GNSSPerceptionHandler
Defined in File GNSSPerception.hpp
Inheritance Relationships
Base Type
public easynav::PerceptionHandler(Class PerceptionHandler)
Class Documentation
Handles the creation and updating of GNSSPerception instances from sensor_msgs::msg::NavSatFix messages.
This class provides methods to register subscriptions to GNSS topics and update GNSSPerception objects.
Public Functions
Returns the group managed by this handler.
- Returns:
The string literal “gnss”.
Creates a new empty GNSSPerception instance.
- Parameters:
sensor_id – Name or identifier of the sensor. Currently unused, reserved for future extensions.
- Returns:
Shared pointer to a newly created GNSSPerception.
Creates a subscription to an GNSS topic that updates a target GNSSPerception.
The subscription receives sensor_msgs::msg::NavSatFix messages on
topicand writes the content into GNSSPerception::data, updating 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/NavSatFix”.
target – Shared pointer to the GNSSPerception to be updated.
cb_group – Callback group for executor-level concurrency control.
- Returns:
Shared pointer to the created subscription.