.
This commit is contained in:
@@ -10,13 +10,13 @@ from hos_core_msgs.msg import DeviceCommand
|
||||
from hos_huecontroller.huecontroller import HueController
|
||||
|
||||
|
||||
controller = HueController()
|
||||
|
||||
def deviceCmdCallback(data):
|
||||
controller.deviceCmdCallback(data)
|
||||
|
||||
if __name__ == '__main__':
|
||||
try:
|
||||
controller = HueController()
|
||||
rospy.Subscriber(controller.cmd_topic, DeviceCommand, deviceCmdCallback)
|
||||
controller.mainLoop()
|
||||
except socket.error as e:
|
||||
|
||||
@@ -1,19 +0,0 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-04/schema#",
|
||||
"title": "Color Capability",
|
||||
"description": "",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"colormode": {
|
||||
"description": "",
|
||||
"type": "string",
|
||||
"persistent": "True",
|
||||
"volatile": "False"
|
||||
},
|
||||
"prop1": {
|
||||
"$ref" : "hos:schema://core/capabilities/switch/command#"
|
||||
}
|
||||
},
|
||||
"test" : "bla",
|
||||
"persistent": ["bla1", "bla2"]
|
||||
}
|
||||
Reference in New Issue
Block a user