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

Public Member Functions

 obj_t (rclcpp::Node::SharedPtr node, std::shared_ptr< mrs_lib::TimeoutManager > tom, std::shared_ptr< std::atomic< bool > > test_stop_from_cbk, const double &desired_dt, const double &max_expected_dt_err)
 
void set_timeout_id (mrs_lib::TimeoutManager::timeout_id_t new_timeout_id)
 
void callback (const rclcpp::Time &last_update)
 

Public Attributes

std::mutex mtx
 
int n_cbks = 0
 
int sooner_cbks = 0
 
bool null_cbk = false
 
bool cbk_not_running = false
 
std::atomic_bool cbk_running = false
 
double max_dt_err = 0
 
double avg_dt_err = 0
 
rclcpp::Node::SharedPtr node_
 
std::shared_ptr< mrs_lib::TimeoutManagertom_
 
std::shared_ptr< std::atomic< bool > > test_stop_from_cbk_
 
bool check_dt_err = false
 
double desired_dt
 
double max_expected_dt_err
 
mrs_lib::TimeoutManager::timeout_id_t timeout_id
 

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