Common
common packages for kyubic
 
Loading...
Searching...
No Matches
driver::sensors_esp32_driver Namespace Reference

driver for sensors_esp32 More...

Classes

class  ButtonBatteryState
 Button Battery State class. More...
 
class  ButtonBatteryStateTopicStatusCheck
 
class  BuzzerSwitch
 
class  BuzzerSwitchTopicSubscriberCheck
 
class  Depth
 Depth class. More...
 
class  DepthTopicStatusCheck
 
class  DepthTypeSubscriberCheck
 
class  Environment
 Environment class. More...
 
class  EnvironmentTopicStatusCheck
 
class  ImuReset
 ImuReset class. More...
 
class  ImuResetSubscriberCheck
 
class  Leak
 Leak class. More...
 
class  LeakTopicStatusCheck
 
class  RGB
 RBG class. More...
 
class  RgbSubscriberCheck
 
class  RtcGnss
 RTC GNSS class. More...
 
class  RtcGnssTopicStatusCheck
 
class  RtcTime
 RTC Time class. More...
 
class  RtcTimeTopicStatusCheck
 
class  SystemStatus
 System Status class. More...
 
class  SystemStatusTopicStatusCheck
 
class  TiltServo
 TiltServo class. More...
 
class  TiltServoSubscriberCheck
 
class  ZedPower
 ZedPower class. More...
 
class  ZedPowerSubscriberCheck
 

Typedefs

using Msg = driver_msgs::msg::ButtonBatteryState
 

Functions

template<typename MsgT >
void check_timeout (rclcpp::Node *node, std::mutex &mutex, std::shared_ptr< timer::Timeout > &timeout, typename rclcpp::Publisher< MsgT >::SharedPtr &pub, const std::string &sensor_name)
 Template function for checking timeouts.
 

Detailed Description

driver for sensors_esp32

Typedef Documentation

◆ Msg

typedef driver_msgs::msg::SystemStatus driver::sensors_esp32_driver::Msg

Function Documentation

◆ check_timeout()

template<typename MsgT >
void driver::sensors_esp32_driver::check_timeout ( rclcpp::Node *  node,
std::mutex &  mutex,
std::shared_ptr< timer::Timeout > &  timeout,
typename rclcpp::Publisher< MsgT >::SharedPtr &  pub,
const std::string &  sensor_name 
)

Template function for checking timeouts.

Template Parameters
MsgTThe type of the message to be published (e.g., driver_msgs::msg::Depth).
Parameters
nodePointer to the node, used for logging and retrieving the current time.
mutexMutex for thread safety (mutual exclusion).
timeoutThe timeout management object.
pubThe publisher instance.
sensor_nameThe name of the sensor used in log messages (e.g., "Depth").