vision package

Submodules

vision.visionconstants module

vision.visionmaster module

class vision.visionmaster.VisionMaster(host, port)[source]

Bases: object

Runs on the RoboRIO; Tells the Jetson what to look for and reads the location response

clear_commands()[source]

wipe out the queue if you need to :return:

get_location()[source]

read the location state, as long as you’ve told jetson to look for a valid thing, there should be a value :return: dict containing azimuth and altitude

locate(thing)[source]

tell jetson what you want to look for, check visionconstants module for list of things :param thing: what to look for :return:

vision.visionslave module

class vision.visionslave.VisionSlave(host, port)[source]

Bases: object

Used on jetson, inside vision loop check for new commands and always post location for last thing requested

pop_command()[source]

check for a command on the queue, returns None if empty queue

update_location(azimuth, altitude)[source]

send back the degrees relative to camera + or - from 0 degrees :param azimuth: :param altitude: :return:

Module contents