15#ifndef ROBOLIGO_COMMON_CONNECTOR_SENSORS__NAVSAT_HPP_
16#define ROBOLIGO_COMMON_CONNECTOR_SENSORS__NAVSAT_HPP_
18#include <sensor_msgs/msg/nav_sat_fix.hpp>
39 NavSat(std::string new_name, std::string new_topic)
40 :
Sensor(new_name, new_topic){}
47 rclcpp::Subscription<sensor_msgs::msg::NavSatFix>::SharedPtr
subscriber;
49 sensor_msgs::msg::NavSatFix::SharedPtr
data;
54 void callback(sensor_msgs::msg::NavSatFix::SharedPtr msg);
sensor_msgs::msg::NavSatFix::SharedPtr data
Pointer to the most recent NavSatFix data received.
Definition NavSat.hpp:49
virtual ~NavSat()=default
Virtual destructor.
rclcpp::Subscription< sensor_msgs::msg::NavSatFix >::SharedPtr subscriber
ROS 2 subscription to NavSatFix messages.
Definition NavSat.hpp:47
NavSat(std::string new_name, std::string new_topic)
Constructor for NavSat sensor.
Definition NavSat.hpp:39
void callback(sensor_msgs::msg::NavSatFix::SharedPtr msg)
Callback function invoked when new NavSatFix data is received.
Definition NavSat.cpp:20
Sensor(std::string new_name, std::string new_topic)
Constructor for Sensor.
Definition Sensor.cpp:19
Definition ClassificationBase.hpp:28