ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
Right now, you can use the public API for ros2 msg
, which can locate the file for you:
https://github.com/ros2/ros2cli/blob/b73107adff475f4a2853c73060a6c5c56ed6062b/ros2msg/ros2msg/api/__init__.py#L47-L54
But then you'll need to open the file and read the contents for yourself.
Additionally, there should be a Python API which will parse the file for you and give you a Python object representation of it, part of rosidl_adapter.parser
:
https://github.com/ros2/rosidl/blob/30544042932204403923582cbc190f94e7a71734/rosidl_adapter/rosidl_adapter/parser.py#L424