Skip to content

Commit

Permalink
'trigger_action' is blocking
Browse files Browse the repository at this point in the history
  • Loading branch information
fmessmer committed Mar 21, 2017
1 parent 9661651 commit 65f129e
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def CreateControlPanel(self):
elif button[1] == "move_base_rel":
buttons.append(self.CreateButton(button[0],self.sss.move_base_rel,component_name,button[2]))
elif button[1] == "trigger_action":
buttons.append(self.CreateButton(button[0],self.sss.trigger_action,component_name,button[2]))
buttons.append(self.CreateButton(button[0],self.sss.trigger_action,component_name,button[2],True))
elif button[1] == "trigger":
buttons.append(self.CreateButton(button[0],self.sss.trigger,component_name,button[2]))
if button[2] == "stop":
Expand Down Expand Up @@ -144,11 +144,11 @@ def CreateControlPanel(self):


## Creates one button with functionality
def CreateButton(self,button_name,function,component_name,parameter_name=None):
def CreateButton(self,button_name,function,component_name,parameter_name=None,blocking=False):
if parameter_name == None:
button = (button_name,function,(component_name,False))
button = (button_name,function,(component_name,blocking))
else:
button = (button_name,function,(component_name,parameter_name,False))
button = (button_name,function,(component_name,parameter_name,blocking))
return button

## Sorts a dictionary alphabetically
Expand Down

0 comments on commit 65f129e

Please sign in to comment.