From 04b8937ae5f1ef1d1d82b702475b937624b4ad91 Mon Sep 17 00:00:00 2001 From: rschoene <rene.schoene@tu-dresden.de> Date: Fri, 7 May 2021 22:07:11 +0200 Subject: [PATCH] fix command and add rewind --- main.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index bbedf27..d8c59fa 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"), -- GitLab