diff --git a/main.py b/main.py index bbedf27001d5ad740d12dfa2e41c615b4a05f793..d8c59fa3de6fe516b342f8550c2d876034a1a1a4 100644 --- a/main.py +++ b/main.py @@ -33,9 +33,11 @@ message_queue = queue.Queue() commands = { 'send-place-a-model': ('place-a/model', '1'), 'send-place-a-model-details': ('place-a/model', 'details'), + 'send-place-a-rewind': ('place-a/rewind', '1'), 'send-place-a-exit': ('place-a/exit', '1'), 'send-place-b-model': ('place-b/model', '1'), 'send-place-b-model-details': ('place-b/model', 'details'), + 'send-place-b-rewind': ('place-b/rewind', '1'), 'send-place-b-exit': ('place-b/exit', '1'), 'send-place-a-demo-objRed-blue': ('place-a/demo/move/objectRed1/blue', '1'), 'send-place-a-demo-objRed-red': ('place-a/demo/move/objectRed1/red', '1'), @@ -59,7 +61,7 @@ bytes_topics = [ 'place-b/scene/update', 'place-b/reachability/arm1', 'place-b/reachability/arm2', - 'place-b/commands', + 'place-b/command', ] button_style_normal = {"marginRight": "15px"} @@ -116,6 +118,7 @@ app.layout = html.Div([ html.H3("Commands Place A"), html.Button('Model', id='send-place-a-model', style=button_style_normal), html.Button('Model (Details)', id='send-place-a-model-details', style=button_style_normal), + html.Button('Rewind', id='send-place-a-rewind', style=button_style_normal), html.Button('Exit', id='send-place-a-exit', style=button_style_exit), html.Button('obj-Red -> Red', id='send-place-a-demo-objRed-red', style=button_style_normal), html.Button('obj-Red -> Blue', id='send-place-a-demo-objRed-blue', style=button_style_normal), @@ -124,6 +127,7 @@ app.layout = html.Div([ html.H3("Commands Place B"), html.Button('Model', id='send-place-b-model', style=button_style_normal), html.Button('Model (Details)', id='send-place-b-model-details', style=button_style_normal), + html.Button('Rewind', id='send-place-b-rewind', style=button_style_normal), html.Button('Exit', id='send-place-b-exit', style=button_style_exit), html.Button('obj-Red -> Red', id='send-place-b-demo-objRed-red', style=button_style_normal), ], className="six columns"),