offline_diag_updater.h
Go to the documentation of this file.
1 // SPDX-License-Identifier: BSD-3-Clause
2 // SPDX-FileCopyrightText: Czech Technical University in Prague
3 
10 #pragma once
11 
12 #include <string>
13 
16 #include <ros/duration.h>
17 #include <ros/time.h>
18 
19 namespace cras
20 {
21 
23 {
24 public:
25  explicit OfflineDiagUpdater(const ::std::string& hwid);
26  virtual ~OfflineDiagUpdater();
27 
28  virtual ::cras::optional<::diagnostic_msgs::DiagnosticArray> update(const ::ros::Time& now);
29 
30 protected:
33  ::std::string hwid_;
34 };
35 
36 }
cras
Definition: any.hpp:15
time.h
cras::OfflineDiagUpdater::~OfflineDiagUpdater
virtual ~OfflineDiagUpdater()
diagnostic_updater::DiagnosticTaskVector
diagnostic_updater.h
duration.h
cras::OfflineDiagUpdater::OfflineDiagUpdater
OfflineDiagUpdater(const ::std::string &hwid)
cras::OfflineDiagUpdater::period_
::ros::Duration period_
Definition: offline_diag_updater.h:32
cras::OfflineDiagUpdater::next_time_
::ros::Time next_time_
Definition: offline_diag_updater.h:31
cras::OfflineDiagUpdater
Definition: offline_diag_updater.h:22
cras::OfflineDiagUpdater::hwid_
::std::string hwid_
Definition: offline_diag_updater.h:33
ros::Time
cras::OfflineDiagUpdater::update
virtual ::cras::optional<::diagnostic_msgs::DiagnosticArray > update(const ::ros::Time &now)
ros::Duration
optional.hpp
A C++11 shim for std::optional. Uses std::optional when used in C++17 mode.


cras_cpp_common
Author(s): Martin Pecka
autogenerated on Tue Nov 5 2024 03:50:30