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 an API to declare that an action should be running only once in a given system #87

Open
doudou opened this issue Feb 15, 2018 · 0 comments

Comments

@doudou
Copy link
Member

doudou commented Feb 15, 2018

Ideally, we should be able to specify that the system assumes a given action should be running only once, possibly "narrowing" on a subset of the arguments.

I've seen a bunch of use cases for this over time, but the latest is the following:

We have to control the position of some objects in a Gazebo scene. There's an action for that, and obviously we should have only one item of this action running. We could do some job tracking in the UI, but then it defeats the main goal of having only Roby do state tracking. However, having the "perfect" logic to keep the action unique is a bit involved (requires some knowledge about Roby patterns).

Proposed API:

describe('an action').
   unique(*on_arguments)
@doudou doudou changed the title add an API to declare that an action's result should be unique add an API to declare that an action should be running only once in a given system Feb 15, 2018
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