Skip to content

Commit

Permalink
Catch if attributes detection fail in main state machine
Browse files Browse the repository at this point in the history
  • Loading branch information
haiwei-luo committed Jun 26, 2024
2 parents 205897e + 77b66a8 commit 6eed3d9
Show file tree
Hide file tree
Showing 12 changed files with 452 additions and 495 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def __init__(self) -> None:
self._server.start()

def _execute_cb(self, _: FollowGoal) -> None:
while not self._follower.begin_tracking():
while not self._follower.begin_tracking(ask=False):
rospy.logwarn("No people found, retrying...")
rospy.sleep(rospy.Duration(1.0))
warnings.warn(
Expand All @@ -48,6 +48,6 @@ def _preempt_cb(self) -> None:

if __name__ == "__main__":
rospy.init_node("person_following_server")
rospy.loginfo("Person following server started")
server = PersonFollowingServer()
rospy.loginfo("Person following server started")
rospy.spin()
Loading

0 comments on commit 6eed3d9

Please sign in to comment.