Skip to content

Commit

Permalink
Fix #92
Browse files Browse the repository at this point in the history
  • Loading branch information
gerardcanal committed Jun 14, 2023
1 parent be10033 commit 189f196
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion smach/src/smach/concurrence.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,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/src/smach/iterator.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,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/src/smach/state_machine.py
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,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 189f196

Please sign in to comment.