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

Provide a unified parser interface for pluginlib #52

Open
ARoefer opened this issue Jul 8, 2017 · 0 comments
Open

Provide a unified parser interface for pluginlib #52

ARoefer opened this issue Jul 8, 2017 · 0 comments

Comments

@ARoefer
Copy link

ARoefer commented Jul 8, 2017

I'd like to specify a simple c++ parser interface class like this:

class IGiskardParser {
      std::string get_language_name() = 0;
      std::string get_file_suffix() = 0;
      giskard_core::QPControllerSpec parseFromFile(const std::string& file) = 0;
      giskard_core::QPControllerSpec parseFromString(const std::string& string) = 0;
};

This interface would allow users (like me) to implement their own parsers and make them accessible through the pluginlib. I'd like to add a feature to my simulation, that automatically finds all installed parser plugins and is able to parse the respective files. This opens the giskard framework to experimenting with different and more complex languages. Please let me know what you think about this idea.

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