You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current version is a first draft of the parser which only works for models that contains an unique node (case if you use the HAROS extractor) and it support ros services and topics (missed parameters and actions).
I have added a help script to make easier for you the tests.
You just have to create the parser (giving as input the path to the .ros model file or directly a string with the content of the file) and then call parse:
the result (static_model) is an array that contains all the information found on the model, to filter the different interfaces you can call the get function with the key of the selected interface:
This is a very preliminary version, there is a lot of room for improvements but should be enough for the first tests, let me know if this approach can work for you!
The text was updated successfully, but these errors were encountered:
This Issue substitute: ipa320/ros-model-cloud#35
@aremazeilles
As discussed this repository holds python parsers for the ROS models.
The current version is a first draft of the parser which only works for models that contains an unique node (case if you use the HAROS extractor) and it support ros services and topics (missed parameters and actions).
I have added a help script to make easier for you the tests.
You just have to create the parser (giving as input the path to the .ros model file or directly a string with the content of the file) and then call parse:
https://github.com/ipa320/ros_model_parser/blob/2f0f104b460418b8f3ae55099bd89d838475afd0/scripts/ros_parser_example.py#L13-L22
the result (static_model) is an array that contains all the information found on the model, to filter the different interfaces you can call the get function with the key of the selected interface:
https://github.com/ipa320/ros_model_parser/blob/2f0f104b460418b8f3ae55099bd89d838475afd0/scripts/ros_parser_example.py#L24-L29
This is a very preliminary version, there is a lot of room for improvements but should be enough for the first tests, let me know if this approach can work for you!
The text was updated successfully, but these errors were encountered: