cozmo_taste_game.robot package¶
cozmo_taste_game.robot.cozmo_robot module¶
-
class
cozmo_taste_game.robot.cozmo_robot.CozmoRobot(cozmo)[source]¶ Bases:
cozmo_taste_game.robot.robot.RobotWrapper class for a
cozmo.robot.Robot-
check_plate_and_celebrate(distance, speed, deg) → None[source]¶ Parameters: - distance – distance to drive in mm
- speed – speed that cozmo will drive
- deg – degrees cozmo will turn
Returns: None
-
react_negatively() → None[source]¶ Performs a negative reaction. Chooses a random number from 0 to 4 and plays reaction that is tied to that number.
Returns: None
-
react_positively() → None[source]¶ Performs a positive reaction. Chooses a random number from 0 to 4 and plays reaction that is tied to that number.
Returns: None
-
speak(text: str) → None[source]¶ Wrapper method for
say_text().Parameters: text – The text to say Returns: None
-
turn_in_place() → None[source]¶ Wrapper method for
turn_in_place().Returns: None
-
-
cozmo_taste_game.robot.cozmo_robot.getrandbits(k) → x. Generates an int with k random bits.¶
cozmo_taste_game.robot.fake_robot module¶
-
class
cozmo_taste_game.robot.fake_robot.FakeRobot[source]¶ Bases:
cozmo_taste_game.robot.robot.RobotFake robot used to simulate a game in the absence of Cozmo