Skip to content

Commit

Permalink
fix ROS2 parser
Browse files Browse the repository at this point in the history
  • Loading branch information
facontidavide committed Feb 20, 2024
1 parent 2376fdf commit 4d06f95
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion plotjuggler_plugins/ParserROS/ros2_parser.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class ParserFactoryROS2 : public ParserFactoryPlugin
std::string msg_type =
QString::fromStdString(type_name).replace("/msg/", "/").toStdString();

auto parser = std::make_shared<ParserROS>(topic_name, type_name, schema,
auto parser = std::make_shared<ParserROS>(topic_name, msg_type, schema,
new RosMsgParser::ROS2_Deserializer(), data);
QSettings settings;
parser->enableTruncationCheck(settings.value("Preferences::truncation_check", true).toBool());
Expand Down
2 changes: 1 addition & 1 deletion plotjuggler_plugins/ParserROS/ros_parser.h
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ inline void ParserROS::parseCovariance(const std::string& prefix, double& timest
for (int j = i; j < N; j++)
{
const size_t index = i * N + j;
getSeries(fmt::format("{}[{};{}]", prefix, i, j)).pushBack({ timestamp, cov[index] });
getSeries(fmt::format("{}/[{};{}]", prefix, i, j)).pushBack({ timestamp, cov[index] });
}
}
}
Expand Down

0 comments on commit 4d06f95

Please sign in to comment.