18 Q_PLUGIN_METADATA(IID
"facontidavide.PlotJuggler3.ParserFactoryPlugin")
24 const char*
name()
const override 26 return "ParserFactoryROS2";
35 const std::string& schema,
40 throw std::runtime_error(
"ParserFactoryROS2 requires a schema (message definition)");
42 std::string
msg_type = QString::fromStdString(type_name).replace(
"/msg/",
"/").toStdString();
44 return std::make_shared<ParserROS>(topic_name, msg_type, schema,
FastCDR_Deserializer ROS2_Deserializer
const char * name() const override
Name of the plugin type, NOT the particular instance.
std::shared_ptr< MessageParser > MessageParserPtr
std::string type_name(lua_State *L, type t)
MessageParserPtr createParser(const std::string &topic_name, const std::string &type_name, const std::string &schema, PlotDataMapRef &data) override
const char * encoding() const override