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

Represents a single odometry perception from a sensor. More...

#include <OdometryPerception.hpp>

Inheritance diagram for OdometryPerception:
Collaboration diagram for OdometryPerception:

Public Member Functions

 OdometryPerception ()
Public Member Functions inherited from PerceptionBase
virtual ~PerceptionBase ()=default

Static Public Member Functions

static bool supports_msg_type (std::string_view t)
 Returns whether the given ROS 2 type name is supported by this perception.

Public Attributes

nav_msgs::msg::Odometry data
 Odometry data received from the sensor.
Public Attributes inherited from PerceptionBase
std::string frame_id
 Coordinate frame associated with the perception.
bool new_data = false
 Whether the data has changed since the last observation.
rclcpp::Time stamp
 Timestamp of the perception (ROS time).
bool valid = false
 Whether the perception contains valid data.

Static Public Attributes

static constexpr std::string_view default_group_ = "odom"
 Group identifier for odometry perceptions.

Detailed Description

Represents a single odometry perception from a sensor.

Inherits from PerceptionBase and stores a nav_msgs::msg::Odometry message.

Constructor & Destructor Documentation

◆ OdometryPerception()

OdometryPerception ( )

Member Function Documentation

◆ supports_msg_type()

bool supports_msg_type ( std::string_view t)
static

Returns whether the given ROS 2 type name is supported by this perception.

Parameters
tFully qualified message type name (e.g., "nav_msgs/msg/Odometry").
Returns
true if t equals "nav_msgs/msg/Odometry", otherwise false.

Member Data Documentation

◆ data

nav_msgs::msg::Odometry data

Odometry data received from the sensor.

◆ default_group_

std::string_view default_group_ = "odom"
staticconstexpr

Group identifier for odometry perceptions.


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