include
cras_cpp_common
diag_utils
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
14
#include <
cras_cpp_common/optional.hpp
>
15
#include <
diagnostic_updater/diagnostic_updater.h
>
16
#include <
ros/duration.h
>
17
#include <
ros/time.h
>
18
19
namespace
cras
20
{
21
22
class
OfflineDiagUpdater
:
public
::diagnostic_updater::DiagnosticTaskVector
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
:
31
::ros::Time
next_time_
;
32
::ros::Duration
period_
{1, 0};
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 26 2024 03:49:04