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

Implement availability triggers for lights and blinds actuators in AI-MAS lab #3

Open
4 tasks done
asorici opened this issue Jun 27, 2019 · 2 comments
Open
4 tasks done
Assignees
Labels
enhancement New feature or request

Comments

@asorici
Copy link
Collaborator

asorici commented Jun 27, 2019

Why

Context information from web-enabled devices should be advertised only when these devices are actually available (e.g. plugged in).
To maintain consistency of implementation for the AI-MAS lab devices, triggers of availability should be based on notifications sent over the ROS-based AMIRO framework.

What

  • Implement ROS service to query for the availability of Philips Hue lights
  • Implement ROS channel to signal notification of light being available or not
  • Implement ROS service to query for the availability of blinds
  • Implement ROS channel to signal notification of blinds being available or not

Notes

@asorici asorici added the enhancement New feature or request label Jun 27, 2019
@asorici
Copy link
Collaborator Author

asorici commented Jun 27, 2019

By ROS services I am referring to this.
In roslibpy they can be used as explained her.

@asorici
Copy link
Collaborator Author

asorici commented Jun 27, 2019

Before implementing the availability triggers, code refactoring is required:

  • Convert main webthings server into a manager node, which registers the things it is responsible for
  • Create a subclass of Thing to act as the general wrapper for things representation. Create two additional services for this class, that help the representation communicate with the physical devices:
    • An Actuation Service - provides the methods that translates action invocations POST requests into actual changes on the device
    • An Availability Service - provides methods to check and be informed on the physical availability of the devices

For each of the above services, implement a default class (for testing), as well as the ROS-based version for interacting with the AMIRO framework.

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

No branches or pull requests

2 participants