This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| robot_connected = 0 | |
| while robot_connected == 0: | |
| try: | |
| print("Connecting to Vector") | |
| myrobot.connect(timeout=30) | |
| robot_connected = 1 | |
| sleep(2) | |
| except anki_vector.exceptions.VectorNotFoundException as e: | |
| print("Vector not found exception, sleeping for 60 secs and retrying. Error: " + repr(e)) | |
| sleep(60) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| # --- VectorDiag 0.3.1 --- | |
| vd_version = "0.3.1" | |
| # | |
| # a program to monitor Vector's sensors and other telemetry data, can be running while other vector programs are running (I think...it worked for me) | |
| # requirements: | |
| # - Windows, Mac, or Linux system | |
| # - configured Vector SDK and Vector robot (i.e. you can already connect to the robot with python) | |
| # - the dashing library: pip3 install dashing |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| # | |
| # NOTE I HAVE MOVED ON TO USING A CUSTOM MARKER PRINTED OUT AND PASTED ON TOP OF MY CHARGER | |
| # SIZED AT 4CM/SIDE COZMO HAS A MUCH BETTER CHANCE OF FINDING THE CHARGER - SIMILAR TO THE NEW VECTOR ROBOT | |
| # the last "general purpose" version is https://gist.github.com/acidzebra/c02ff8c8ccb0e3a057ae0b48a5082a68/ad4ff9d686f7e2a1b197c4a26c6290d51a7c4380 | |
| # if you want to print out your own you can find a version of marker CustomObjectMarkers.Hexagons2 used here | |
| # http://cozmosdk.anki.com/docs/generated/cozmo.objects.html?highlight=hexagons2#cozmo.objects.CustomObjectMarkers.Hexagons2 | |
| # | |
| # WHAT THIS PROGRAM DOES | |
| # |