We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 029dc6e commit 410ba9eCopy full SHA for 410ba9e
anki_vector/robot.py
@@ -490,8 +490,19 @@ def carrying_object_id(self) -> int:
490
.. testcode::
491
492
import anki_vector
493
+ from anki_vector.util import degrees
494
+
495
+ # Set the robot so that he can see a cube.
496
with anki_vector.Robot() as robot:
- current_carrying_object_id = robot.carrying_object_id
497
+ robot.behavior.set_head_angle(degrees(0.0))
498
+ robot.behavior.set_lift_height(0.0)
499
500
+ robot.world.connect_cube()
501
502
+ if robot.world.connected_light_cube:
503
+ robot.behavior.pickup_object(robot.world.connected_light_cube)
504
505
+ print("carrying_object_id: ", robot.carrying_object_id)
506
"""
507
return self._carrying_object_id
508
0 commit comments