Skip to content

Commit

Permalink
Change callback for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
Ferry Schoenmakers committed May 7, 2024
1 parent fcd4fea commit bdf18e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions smach_ros/smach_ros/simple_action_state.py
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ def execute(self, ud):
# Dispatch goal via non-blocking call to action server
send_future = self._action_client.send_goal_async(
self._goal, feedback_callback=self._goal_feedback_cb)
send_future.add_done_callback(self._goal_active_cb)
send_future.add_done_callback(self._goal_accepted_cb)

# Execution timeout watch thread
if self._exec_timeout:
Expand Down Expand Up @@ -435,7 +435,7 @@ def execute(self, ud):
return outcome

# Action client callbacks
def _goal_active_cb(self, future):
def _goal_accepted_cb(self, future):
"""Goal Active Callback
Accept or reject a client request to begin an action.
"""
Expand Down

1 comment on commit bdf18e0

@Timple
Copy link
Member

@Timple Timple commented on bdf18e0 May 7, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Y

Please sign in to comment.