Skip to content

Commit

Permalink
Merge pull request #107 from gerardcanal/noetic-devel
Browse files Browse the repository at this point in the history
Fix #92
  • Loading branch information
130s authored Jun 29, 2023
2 parents be10033 + 189f196 commit 7153326
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 7153326

Please sign in to comment.