Skip to content

Model extraction in batch mode #1

@ipa-nhg

Description

@ipa-nhg

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions