aboutsummaryrefslogtreecommitdiff
path: root/src/argaze/TobiiGlassesPro2/TobiiController.py
blob: aafa22578436ca2ec886bca9d7ff66c9ddaafa46 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import tobiiglassesctrl

class TobiiController(tobiiglassesctrl.TobiiGlassesController):

	# initialisation
	def __init__(self, ip_address, project_name, participant_id):

		super().__init__(ip_address, video_scene = True)

		# edit project and participant
		project_id = super().create_project(project_name)
		participant_id = super().create_participant(project_id, project_name)
		'''
		# start calibration
		input("Position Tobbi glasses calibration target then presse 'Enter' to start calibration.")
		calibration_id = super().create_calibration(project_id, participant_id)
		super().start_calibration(calibration_id)

		if not super().wait_until_calibration_is_done(calibration_id):
		ogging.error('TobiiController.__init__() : Calibration has failed')
		'''

	# destruction
	def __del__(self):
		pass