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

Add API function for list of allowed commands with number of parameters #217

Closed
geekstor opened this issue Jul 20, 2016 · 2 comments · Fixed by #237
Closed

Add API function for list of allowed commands with number of parameters #217

geekstor opened this issue Jul 20, 2016 · 2 comments · Fixed by #237
Assignees
Labels

Comments

@geekstor
Copy link
Contributor

No description provided.

@geekstor geekstor changed the title Gett Add API function for list of allowed commands with number of parameters Jul 20, 2016
@timhutton
Copy link
Contributor

When loading missions for agents to run, it is sometimes important to know what actions the mission permits. This happens when the agent is able to cope with both discrete and continuous actions, for example. We see this in the human action component and the rl-framework.

For discrete commands it makes sense to have an API function that returns a list of the allowed commands: { "move 1","turn 1", ... }. For continuous actions this is less obvious, but maybe a list of the verbs is useful: { "move", turn", ... }

@timhutton
Copy link
Contributor

Suggestion:

vector<string> MissionSpec::getListOfCommandHandlers() const;
vector<string> MissionSpec::getAllowedCommands(const string& command_handler) const;

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

Successfully merging a pull request may close this issue.

2 participants