DirectFunctionsBase

class DirectFunctionsBase[source]

Bases: object

Override this class in your project to define functions triggered directly. For example, you can trigger these functions from the behaviour controller, the camera trigger, or the GUI buttons. These functions can not accept arguments because they are triggered directly, but they can use self.task and then use some of the variables or settings of the task.

Example

class DirectFunctions(DirectFunctionsBase):
def function1(self):

self.task.water_valve.open()

def function2(self):

self.task.screen.show_image(“reward.png”)

def function3(self):

self.

__init__() None[source]

Methods