Skip to content

Commit

Permalink
Start with predicting FoF in the dummy node
Browse files Browse the repository at this point in the history
  • Loading branch information
amalnanavati committed Mar 22, 2024
1 parent 25d9966 commit 05982fb
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@ def toggle_food_on_fork_detection_callback(self, request, response):
self.get_logger().info("Incoming service request. turn_on: %s" % (request.data))
if request.data:
# Reset counters
self.num_consecutive_images_without_food = 0
self.num_consecutive_images_without_food = (
self.food_on_fork_detection_interval
) # Start predicting FoF
self.num_consecutive_images_with_food = 0
# Turn on food-on-fork detection
self.is_on_lock.acquire()
Expand Down

0 comments on commit 05982fb

Please sign in to comment.