コード例 #1
0
ファイル: autonomous.py プロジェクト: simonbroggi/SchneeEulen
 def __init__(self, main_thread, agitation=0.5):
     StrategyThread.__init__(self, main_thread, 'BlinkingAgitation')
     self.agitation = agitation
     self.open = 0.1  # 0.3
     self.closed = 0.0  # 0.05
     self.eye_left = self.main_thread.get_dimmer('eye_left')
     self.eye_right = self.main_thread.get_dimmer('eye_right')
コード例 #2
0
ファイル: autonomous.py プロジェクト: simonbroggi/SchneeEulen
 def __init__(self, main_thread, agitation=0.5):
     StrategyThread.__init__(self, main_thread, 'HeartbeatBody')
     self.agitation = agitation
     self.body_dimmer = self.main_thread.get_dimmer('body')
     self.low = 0.05
     self.mid = 0.35
     self.midLow = 0.15
     self.high = 0.7
コード例 #3
0
ファイル: autonomous.py プロジェクト: simonbroggi/SchneeEulen
 def __init__(self, main_thread, agitation=0.5):
     StrategyThread.__init__(self, main_thread, 'HeartbeatAgitation')
     self.agitation = agitation
     self.body_dimmer = self.main_thread.get_dimmer('body')
     self.eye_left = self.main_thread.get_dimmer('eye_left')
     self.eye_right = self.main_thread.get_dimmer('eye_right')
     self.low = 0.05
     self.mid = 0.35
     self.midLow = 0.15
     self.high = 0.7
     self.eye_delta = 0.0
コード例 #4
0
ファイル: autonomous.py プロジェクト: simonbroggi/SchneeEulen
 def __init__(self, main_thread):
     StrategyThread.__init__(self, main_thread, 'CleaningStrategy')
     self.servo = self.main_thread.get_servo('head')
     self.body = self.main_thread.get_dimmer('body')
     self.eye_left = self.main_thread.get_dimmer('eye_left')
     self.eye_right = self.main_thread.get_dimmer('eye_right')
     self.rest_angle = 70
     self.delta_angle = 35
     self.t = 0.055  # 0.004 # 0.53 for a No
     self.bright = 0.08
     self.dark = 0.03
コード例 #5
0
ファイル: lightup.py プロジェクト: simonbroggi/SchneeEulen
 def __init__(self, main_thread):
     """
     :param main_thread: SnowlyServer
     :return:
     """
     StrategyThread.__init__(self, main_thread, "LightUp")
コード例 #6
0
ファイル: autoclient.py プロジェクト: simonbroggi/SchneeEulen
 def __init__(self, main_thread):
     """
     :param main_thread: SnowlyServer
     :return:
     """
     StrategyThread.__init__(self, main_thread, "AutoClient")
コード例 #7
0
 def __init__(self, main_thread):
     StrategyThread.__init__(self, main_thread, 'NightBlinking')
コード例 #8
0
 def __init__(self, main_thread):
     StrategyThread.__init__(self, main_thread, 'SimpleBlink')
コード例 #9
0
ファイル: autonomous.py プロジェクト: simonbroggi/SchneeEulen
 def __init__(self, main_thread, agitation=0.5):
     StrategyThread.__init__(self, main_thread, 'HeartbeatAndLook')
コード例 #10
0
ファイル: autonomous.py プロジェクト: simonbroggi/SchneeEulen
 def __init__(self, main_thread):
     StrategyThread.__init__(self, main_thread, 'AutoStrategy')
コード例 #11
0
ファイル: autonomous.py プロジェクト: simonbroggi/SchneeEulen
 def __init__(self, main_thread):
     StrategyThread.__init__(self, main_thread, 'SimpleAuto')
     self.servo = self.main_thread.get_servo('head')
     self.body = self.main_thread.get_dimmer('body')
     self.eye_left = self.main_thread.get_dimmer('eye_left')
     self.eye_right = self.main_thread.get_dimmer('eye_right')
コード例 #12
0
ファイル: autonomous.py プロジェクト: simonbroggi/SchneeEulen
 def __init__(self, main_thread, agitation=0.5):
     StrategyThread.__init__(self, main_thread, 'HeadTurnAngularVelocity')
     self.agitation = agitation
     self.servo = self.main_thread.get_servo('head')
     self.velocity = 80  # turn speed in degrees per second
コード例 #13
0
ファイル: autonomous.py プロジェクト: simonbroggi/SchneeEulen
 def __init__(self, main_thread, agitation=0.5):
     StrategyThread.__init__(self, main_thread, 'BreathingAgitation')
     self.agitation = agitation
     self.body_dimmer = self.main_thread.get_dimmer('body')
     self.dark = 0.03
     self.light = 0.3
コード例 #14
0
ファイル: breathing.py プロジェクト: simonbroggi/SchneeEulen
 def __init__(self, main_thread):
     """
     :param main_thread: SnowlyServer
     :return:
     """
     StrategyThread.__init__(self, main_thread, 'Breathing')
コード例 #15
0
ファイル: headshake.py プロジェクト: simonbroggi/SchneeEulen
 def __init__(self, main_thread):
     """
     :param main_thread: SnowlyServer
     :return:
     """
     StrategyThread.__init__(self, main_thread, 'Headshake')
コード例 #16
0
 def __init__(self, main_thread):
     """
     :param main_thread: SnowlyServer
     :return:
     """
     StrategyThread.__init__(self, main_thread, 'ClientPlaylist')