Skip to content

Commit

Permalink
Update ros2_parser.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
facontidavide authored May 9, 2024
1 parent 35d8d66 commit f2c14b1
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/ros_parsers/ros2_parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,14 @@

#include <rosidl_typesupport_cpp/identifier.hpp>
#include <rosidl_typesupport_introspection_cpp/identifier.hpp>
#include <PlotJuggler/fmt/core.h>

#if __has_include(<PlotJuggler/fmt/core.h>)
# include <PlotJuggler/fmt/core.h>
#endif

#if __has_include(<PlotJuggler/contrib/fmt/core.h>)
# include <PlotJuggler/contrib/fmt/core.h>
#endif

bool TypeHasHeader(const rosidl_message_type_support_t* type_support)
{
Expand Down Expand Up @@ -135,4 +141,4 @@ std::shared_ptr<PJ::MessageParser> CreateParserROS2(const PJ::ParserFactories& f
PJ::PlotDataMapRef& data)
{
return factories.at("ros2msg")->createParser(topic_name, type_name, CreateSchema(type_name), data);
}
}

0 comments on commit f2c14b1

Please sign in to comment.