Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Model extraction in batch mode #1

Open
ipa-nhg opened this issue Jun 3, 2020 · 0 comments
Open

Model extraction in batch mode #1

ipa-nhg opened this issue Jun 3, 2020 · 0 comments

Comments

@ipa-nhg
Copy link
Member

ipa-nhg commented Jun 3, 2020

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant