mrs_lib
Various reusable classes, functions and utilities for use in MRS projects
Loading...
Searching...
No Matches
mrs_lib::errorgraph::Errorgraph::error_t Struct Reference

Represents a single error reported by a node. More...

#include <errorgraph.h>

Public Member Functions

bool is_waiting_for () const
 Returns true if this error indicates a dependency (waiting for a topic or node).
 
bool is_waiting_for_topic () const
 Returns true if this error is waiting for a topic.
 
bool is_waiting_for_node () const
 Returns true if this error is waiting for a node.
 
bool is_waiting_for (const std::string &topic) const
 Returns true if this error is waiting for the given topic.
 
bool is_waiting_for (const node_id_t &node_id) const
 Returns true if this error is waiting for the given node.
 
bool is_no_error () const
 Returns true if this represents a "no error" state.
 
 error_t (const errorgraph_error_msg_t &msg)
 Construct from a ROS message.
 
errorgraph_error_msg_t to_msg () const
 Convert to a ROS message.
 

Public Attributes

rclcpp::Time stamp
 Timestamp when the error was reported.
 
std::string type
 Error type string (see ErrorgraphError message constants).
 
std::optional< std::string > waited_for_topic
 Topic name if this is a "waiting for topic" error.
 
std::optional< node_id_twaited_for_node
 Node ID if this is a "waiting for node" error.
 

Detailed Description

Represents a single error reported by a node.

An error can be a general description, or a dependency indicator (waiting for a specific node or topic).


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