Skip to content

Commit 6a98275

Browse files
committed
fix plotjuggler
Signed-off-by: wep21 <[email protected]>
1 parent e14ef8f commit 6a98275

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

patch/ros-kilted-plotjuggler.patch

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ index 23f774e5..ed25d0a9 100644
1212
QString type_qname = QString::fromStdString(type_name);
1313
info.descriptors.insert({ type_qname, descriptor });
1414
diff --git a/plotjuggler_plugins/ParserProtobuf/protobuf_parser.cpp b/plotjuggler_plugins/ParserProtobuf/protobuf_parser.cpp
15-
index 467dfbaf..899e9c90 100644
15+
index 467dfbaf..8814b3ce 100644
1616
--- a/plotjuggler_plugins/ParserProtobuf/protobuf_parser.cpp
1717
+++ b/plotjuggler_plugins/ParserProtobuf/protobuf_parser.cpp
1818
@@ -56,7 +56,7 @@ bool ProtobufParser::parseMessage(const MessageRef serialized_msg, double& times
@@ -24,3 +24,12 @@ index 467dfbaf..899e9c90 100644
2424
if (is_map)
2525
{
2626
// Map messages only have 2 fields: key and value. The key will be represented in
27+
@@ -156,7 +156,7 @@ bool ProtobufParser::parseMessage(const MessageRef serialized_msg, double& times
28+
reflection->GetRepeatedEnum(msg, field, index);
29+
30+
auto& series = this->getStringSeries(key + suffix);
31+
- series.pushBack({ timestamp, tmp->name() });
32+
+ series.pushBack({ timestamp, std::string(tmp->name()) });
33+
is_double = false;
34+
}
35+
break;

0 commit comments

Comments
 (0)