Class MessageDefinitionProvider
Defined in File message_definition_provider.hpp
Class Documentation
-
class MessageDefinitionProvider
Reads ROS2 .msg files from the ament index and produces full message definition strings (with all transitive dependencies) suitable for Foxglove’s “ros2msg” schema encoding.
Output format matches the rosbag2 convention:
<top-level .msg content>
MSG: geometry_msgs/msg/Point
<Point .msg content>
MSG: std_msgs/msg/Header <Header .msg content> …
Public Functions
-
inline std::string getFullDefinition(const std::string &type_name)
Get the full concatenated message definition for a ROS2 type.
- Parameters:
type_name – Fully qualified type, e.g. “nav_msgs/msg/Odometry”
- Returns:
Full definition string, or empty on failure.
-
inline std::string getFullDefinition(const std::string &type_name)