plotjuggler_plugins
ParserROS
ros1_parser.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
PlotJuggler/messageparser_base.h
"
4
5
#include <QCheckBox>
6
#include <QDebug>
7
#include <QSettings>
8
#include <string>
9
10
#include "
ros_parser.h
"
11
12
using namespace
PJ
;
13
14
class
ParserFactoryROS1
:
public
ParserFactoryPlugin
15
{
16
Q_OBJECT
17
Q_PLUGIN_METADATA(IID
"facontidavide.PlotJuggler3.ParserFactoryPlugin"
)
18
Q_INTERFACES(
PJ::ParserFactoryPlugin
)
19
20
public
:
21
ParserFactoryROS1
() =
default
;
22
23
const
char
*
name
()
const override
24
{
25
return
"ParserFactoryROS1"
;
26
}
27
const
char
*
encoding
()
const override
28
{
29
return
"ros1msg"
;
30
}
31
32
MessageParserPtr
createParser
(
const
std::string& topic_name,
33
const
std::string&
type_name
,
const
std::string& schema,
34
PlotDataMapRef
&
data
)
override
35
{
36
auto
parser
= std::make_shared<ParserROS>(topic_name,
type_name
, schema,
37
new
RosMsgParser::ROS_Deserializer
(),
data
);
38
QSettings settings;
39
parser
->enableTruncationCheck(
40
settings.value(
"Preferences::truncation_check"
,
true
).toBool());
41
return
parser
;
42
}
43
};
PJ::MessageParserPtr
std::shared_ptr< MessageParser > MessageParserPtr
Definition:
messageparser_base.h:136
sol::type_name
std::string type_name(lua_State *L, type t)
Definition:
sol.hpp:8079
ParserFactoryROS1::createParser
MessageParserPtr createParser(const std::string &topic_name, const std::string &type_name, const std::string &schema, PlotDataMapRef &data) override
Definition:
ros1_parser.h:32
ParserFactoryROS1
Definition:
ros1_parser.h:14
ParserFactoryROS1::name
const char * name() const override
Name of the plugin type, NOT the particular instance.
Definition:
ros1_parser.h:23
PJ::ParserFactoryPlugin
Definition:
messageparser_base.h:139
udp_client.parser
parser
Definition:
udp_client.py:9
ParserFactoryROS1::encoding
const char * encoding() const override
Definition:
ros1_parser.h:27
RosMsgParser::ROS_Deserializer
Definition:
deserializer.hpp:63
PJ
Definition:
dataloader_base.h:16
mqtt_test.data
dictionary data
Definition:
mqtt_test.py:22
PJ::PlotDataMapRef
Definition:
plotdata.h:34
ros_parser.h
messageparser_base.h
plotjuggler
Author(s): Davide Faconti
autogenerated on Mon Nov 11 2024 03:23:46