Skip to content

Commit

Permalink
Stop reasoning when a goal is cancelled
Browse files Browse the repository at this point in the history
  • Loading branch information
marioney committed Mar 3, 2021
1 parent 7a1dbaf commit cb8be7a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mros2_reasoner/mros2_reasoner/ros_reasoner.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,8 @@ def set_initial_fd(self, initial_fd):

def objective_cancel_goal_callback(self, cancel_request):
self.get_logger().info("Cancel Action Callback!")

# Stop reasoning
self.hasObjective = False
if (cancel_request.qos_expected is None):
# Checks if there are previously defined objectives.
for old_objective in self.reasoner.search_objectives():
Expand Down

0 comments on commit cb8be7a

Please sign in to comment.