Main Page
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
Functions
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
Variables
Typedefs
Enumerations
Enumerator
Classes
Class List
Class Hierarchy
Class Members
All
:
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
z
~
Functions
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
w
x
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
Typedefs
Related Functions
Files
File List
File Members
All
c
d
g
n
o
r
s
Functions
Macros
c
d
n
r
include
cras_cpp_common
log_utils
nodelet.h
Go to the documentation of this file.
1
#pragma once
2
3
// SPDX-License-Identifier: BSD-3-Clause
4
// SPDX-FileCopyrightText: Czech Technical University in Prague
5
12
#include <functional>
13
#include <string>
14
15
#include <
cras_cpp_common/log_utils.h
>
16
#include <
cras_cpp_common/nodelet_utils/log_macros.h
>
17
18
namespace
cras
19
{
20
24
class
NodeletLogHelper
:
public
::cras::RosconsoleLogHelper
25
{
26
public
:
28
typedef ::std::function<const ::std::string&()>
GetNameFn
;
29
34
explicit
NodeletLogHelper
(
const
GetNameFn
&
getNameFn
);
35
36
void
initializeLogLocationImpl
(::
ros::console::LogLocation
* loc, const ::std::string& name,
37
::
ros::console::Level
level)
const override
;
38
39
protected
:
41
GetNameFn
getNameFn
;
42
};
43
44
}
cras::NodeletLogHelper::NodeletLogHelper
NodeletLogHelper(const GetNameFn &getNameFn)
cras
Definition:
any.hpp:15
cras::NodeletLogHelper::GetNameFn
::std::function< const ::std::string &()> GetNameFn
Type of the function returning the name of the nodelet.
Definition:
nodelet.h:28
cras::NodeletLogHelper
Definition:
nodelet.h:24
cras::NodeletLogHelper::getNameFn
GetNameFn getNameFn
Function returning the name of the nodelet.
Definition:
nodelet.h:41
log_macros.h
This file adds the missing DELAYED_THROTTLE logging macros for nodelets.
ros::console::levels::Level
Level
log_utils.h
ROS logging helpers.
cras::RosconsoleLogHelper
Log helper relaying all of its work to the same mechanism used by ROS_* logging macros.
Definition:
log_utils.h:208
cras::NodeletLogHelper::initializeLogLocationImpl
void initializeLogLocationImpl(::ros::console::LogLocation *loc, const ::std::string &name, ::ros::console::Level level) const override
ros::console::LogLocation
cras_cpp_common
Author(s): Martin Pecka
autogenerated on Sun Mar 2 2025 03:50:53