Main Page
Namespaces
Classes
Files
File List
File Members
include
log_view
datatypes.h
Go to the documentation of this file.
1
28
#ifndef LOG_VIEW_DATATYPES_H_
29
#define LOG_VIEW_DATATYPES_H_
30
31
#include <
log_view/utils.h
>
32
#include <
ros/ros.h
>
33
#include <rosgraph_msgs/Log.h>
34
35
namespace
log_view
{
36
37
struct
LogLine
{
38
size_t
index
;
39
size_t
line
;
40
};
41
42
struct
LogEntry
43
{
44
LogEntry
() =
default
;
45
LogEntry
(
const
LogEntry
& entry) =
default
;
46
explicit
LogEntry
(
const
rosgraph_msgs::Log& log) :
47
stamp(log.
header
.stamp),
48
seq(log.
header
.seq),
49
level(log.level),
50
node(log.name),
51
file(log.file),
52
function(log.function),
53
line
(log.
line
),
54
text(
split
(log.msg,
'\n'
))
55
{}
56
57
ros::Time
stamp
;
58
uint32_t
seq
;
59
uint8_t
level
;
60
std::string
node
;
61
std::string
file
;
62
std::string
function
;
63
uint32_t
line
;
64
std::vector<std::string>
text
;
65
};
66
67
struct
NodeData
{
68
bool
exclude =
true
;
69
size_t
count = 0;
70
};
71
72
}
// namespace log_view
73
74
#endif // LOG_VIEW_DATATYPES_H_
log_view::LogLine
Definition:
datatypes.h:37
ros::Time
log_view::NodeData
Definition:
datatypes.h:67
log_view::split
std::vector< std::string > split(const std::string &text, char sep)
Definition:
utils.cpp:44
header
std_msgs::Header * header(M &m)
utils.h
log_view::LogEntry
Definition:
datatypes.h:42
log_view::LogEntry::file
std::string file
Definition:
datatypes.h:61
log_view::LogEntry::node
std::string node
Definition:
datatypes.h:60
ros.h
log_view::LogEntry::stamp
ros::Time stamp
Definition:
datatypes.h:57
log_view::LogEntry::line
uint32_t line
Definition:
datatypes.h:63
log_view::LogEntry::text
std::vector< std::string > text
Definition:
datatypes.h:64
log_view
Definition:
datatypes.h:35
log_view::LogEntry::seq
uint32_t seq
Definition:
datatypes.h:58
log_view::LogLine::index
size_t index
Definition:
datatypes.h:38
log_view::LogLine::line
size_t line
Definition:
datatypes.h:39
log_view::LogEntry::level
uint8_t level
Definition:
datatypes.h:59
log_view::LogEntry::LogEntry
LogEntry(const rosgraph_msgs::Log &log)
Definition:
datatypes.h:46
log_view
Author(s): Marc Alban
autogenerated on Thu Mar 4 2021 03:21:52