Skip to content
Snippets Groups Projects
Commit 04b8937a authored by René Schöne's avatar René Schöne
Browse files

fix command and add rewind

parent 0b5b48ed
No related branches found
No related tags found
No related merge requests found
...@@ -33,9 +33,11 @@ message_queue = queue.Queue() ...@@ -33,9 +33,11 @@ message_queue = queue.Queue()
commands = { commands = {
'send-place-a-model': ('place-a/model', '1'), 'send-place-a-model': ('place-a/model', '1'),
'send-place-a-model-details': ('place-a/model', 'details'), '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-a-exit': ('place-a/exit', '1'),
'send-place-b-model': ('place-b/model', '1'), 'send-place-b-model': ('place-b/model', '1'),
'send-place-b-model-details': ('place-b/model', 'details'), '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-b-exit': ('place-b/exit', '1'),
'send-place-a-demo-objRed-blue': ('place-a/demo/move/objectRed1/blue', '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'), 'send-place-a-demo-objRed-red': ('place-a/demo/move/objectRed1/red', '1'),
...@@ -59,7 +61,7 @@ bytes_topics = [ ...@@ -59,7 +61,7 @@ bytes_topics = [
'place-b/scene/update', 'place-b/scene/update',
'place-b/reachability/arm1', 'place-b/reachability/arm1',
'place-b/reachability/arm2', 'place-b/reachability/arm2',
'place-b/commands', 'place-b/command',
] ]
button_style_normal = {"marginRight": "15px"} button_style_normal = {"marginRight": "15px"}
...@@ -116,6 +118,7 @@ app.layout = html.Div([ ...@@ -116,6 +118,7 @@ app.layout = html.Div([
html.H3("Commands Place A"), html.H3("Commands Place A"),
html.Button('Model', id='send-place-a-model', style=button_style_normal), 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('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('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 -> 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), html.Button('obj-Red -> Blue', id='send-place-a-demo-objRed-blue', style=button_style_normal),
...@@ -124,6 +127,7 @@ app.layout = html.Div([ ...@@ -124,6 +127,7 @@ app.layout = html.Div([
html.H3("Commands Place B"), html.H3("Commands Place B"),
html.Button('Model', id='send-place-b-model', style=button_style_normal), 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('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('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), html.Button('obj-Red -> Red', id='send-place-b-demo-objRed-red', style=button_style_normal),
], className="six columns"), ], className="six columns"),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment