Skip to content

Instantly share code, notes, and snippets.

try:
s = ""
vision_server_client.send("g".encode()) # send 'g' to get response
clock.tick(5)
s = vision_server_client.recv(10000) # there must be a better way to do this
markersDict = json.loads(s.decode())
except:
continue
aruco_markers = markersDict["aruco"]
{
"aruco": [
{
"ID": 2,
"center": {
"x": 266,
"y": 259
},
"heading": -3.1150837133093243,
"markerCorners": [