Skip to content

Commit

Permalink
Fix #92
Browse files Browse the repository at this point in the history
  • Loading branch information
gerardcanal committed Jun 15, 2023
1 parent 4187535 commit 4401536
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion smach/smach/concurrence.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ def add(label, state, remapping={}):
return state

### State interface
def execute(self, parent_ud = smach.UserData()):
def execute(self, parent_ud = None):
"""Overridden execute method.
This starts all the threads.
"""
Expand Down
2 changes: 1 addition & 1 deletion smach/smach/iterator.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def set_contained_state(
self._final_outcome_map = final_outcome_map

### State interface
def execute(self, parent_ud):
def execute(self, parent_ud = None):
self._is_running = True

# Copy input keys
Expand Down
2 changes: 1 addition & 1 deletion smach/smach/state_machine.py
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ def _update_once(self):
return None

### State Interface
def execute(self, parent_ud = smach.UserData()):
def execute(self, parent_ud = None):
"""Run the state machine on entry to this state.
This will set the "closed" flag and spin up the execute thread. Once
this flag has been set, it will prevent more states from being added to
Expand Down

0 comments on commit 4401536

Please sign in to comment.