15#ifndef ROBOLIGO_COMMON_CONNECTOR_SENSORS__ODOM_HPP_
16#define ROBOLIGO_COMMON_CONNECTOR_SENSORS__ODOM_HPP_
18#include <nav_msgs/msg/odometry.hpp>
39 Odom(std::string new_name, std::string new_topic)
40 :
Sensor(new_name, new_topic){}
47 rclcpp::Subscription<nav_msgs::msg::Odometry>::SharedPtr
subscriber;
49 nav_msgs::msg::Odometry::SharedPtr
data;
55 void callback(nav_msgs::msg::Odometry::SharedPtr msg);
nav_msgs::msg::Odometry::SharedPtr data
Shared pointer storing the latest received odometry message.
Definition Odom.hpp:49
virtual ~Odom()=default
Virtual destructor.
rclcpp::Subscription< nav_msgs::msg::Odometry >::SharedPtr subscriber
ROS 2 subscription object for odometry messages.
Definition Odom.hpp:47
void callback(nav_msgs::msg::Odometry::SharedPtr msg)
Callback function invoked when a new odometry message is received.
Definition Odom.cpp:20
Odom(std::string new_name, std::string new_topic)
Constructor for Odom sensor.
Definition Odom.hpp:39
Sensor(std::string new_name, std::string new_topic)
Constructor for Sensor.
Definition Sensor.cpp:19
Definition ClassificationBase.hpp:28