cozmo_taste_game package

This is the module contents for cozmo_taste_game.

cozmo_taste_game.taster module

class cozmo_taste_game.taster.Taster(robot)[source]

Bases: object

get_new_preferences() → None[source]

Shuffles self.tastes so that the Taster has different taste preferences. self.tastes are ordered from LEAST favorite (index 0) to MOST favorite.

Returns:None
rank_food(food)[source]

Rank is implicit in the ordering of the self.tastes list. A rank of 0 means that Cozmo really dislikes the food and 5 means that Cozmo really likes the food. If the food tastes like multiple things then we just use the first taste.

Parameters:food – A Food Prop instance
Returns:A ranking of how much the taster likes the food
taste_food(food)[source]

The robot tastes the food and reacts to it.

Parameters:
  • robot – A Cozmo instance
  • food – A Food Prop instance
Returns:

None