add check connection timer

This commit is contained in:
Joe Dong
2022-12-28 17:11:30 +08:00
parent 2d82c14dec
commit 68662847c5
2 changed files with 12 additions and 1 deletions
@@ -39,6 +39,8 @@ class OBCameraNodeFactory : public rclcpp::Node {
static OBLogSeverity obLogSeverityFromString(const std::string& log_level);
void checkConnectTimer();
void queryDevice();
private:
@@ -55,6 +57,7 @@ class OBCameraNodeFactory : public rclcpp::Node {
std::shared_ptr<std::thread> query_thread_ = nullptr;
std::recursive_mutex device_lock_;
size_t device_num_ = 1;
rclcpp::TimerBase::SharedPtr check_connect_timer_ = nullptr;
};
} // namespace orbbec_camera