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

Unify handling of global services, operations, attributes and properties #280

Open
meyerj opened this issue Apr 15, 2019 · 0 comments
Open
Labels

Comments

@meyerj
Copy link
Member

meyerj commented Apr 15, 2019

GlobalsRepository::Instance() could simply return a pointer to GlobalService::Instance(). I do not see a good reason to use different class instances for attributes and constants. GlobalService could serve as a unified container for:

All of these primitives can then be accessed from RTT scripting and the OCL TaskBrowser either explicitly (by global.<name>, with a new keyword global) or implicitly, if the name is not defined in the current context. This would simplify the implementation of orocos-toolchain/ocl#63 and the TaskBrowser in general.

Ultimately, the GlobalService could be replaced by a global TaskContext which even can have peers (global components) and is served by the GlobalEngine.

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

No branches or pull requests

1 participant