anki / cozmo-python-sdk

Anki Cozmo Python SDK
Other
661 stars 427 forks source link

robot.set_head_angle #186

Closed ghost closed 6 years ago

ghost commented 6 years ago

robot.set_head_angle error min angle is -0.44 max is 0.78 why i can not set 0.20

File "/Users/.local/lib/python3.6/site-packages/cozmo/util.py", line 141, in _cmp_int raise TypeError("Unsupported operand for < expected Angle") TypeError: Unsupported operand for < expected Angle

MarkWez commented 6 years ago

As per the documentation - http://cozmosdk.anki.com/docs/generated/cozmo.robot.html#cozmo.robot.Robot.set_head_angle - it expects an http://cozmosdk.anki.com/docs/generated/cozmo.util.html#cozmo.util.Angle object, not a raw float value