driver for sensors_esp32
More...
|
| using | Msg = driver_msgs::msg::ButtonBatteryState |
| |
|
| 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.
|
| |
◆ Msg
◆ 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
-
| MsgT | The type of the message to be published (e.g., driver_msgs::msg::Depth). |
- Parameters
-
| node | Pointer to the node, used for logging and retrieving the current time. |
| mutex | Mutex for thread safety (mutual exclusion). |
| timeout | The timeout management object. |
| pub | The publisher instance. |
| sensor_name | The name of the sensor used in log messages (e.g., "Depth"). |