Exemple #1
0
    def update(self, mov, audio=True):
        s = Environment.update(self, mov)

        if self.audio and audio:
            sound = self.sound_wave(self.art_traj)
            self.stream.write(sound.astype(float32).tostring())
            #time.sleep(1)
            #print "Sound sent", sound, len(sound)
        return s
 def update(self, m_ag, reset=False, log=False):
     return Environment.update(self, m_ag, reset=True, log=log)
Exemple #3
0
 def update(self, mov, audio=True):
     s = Environment.update(self, mov)
     if self.audio and audio:
         self.play_sound(self.art_traj)
     return s
Exemple #4
0
 def update(self, m_ag, reset=False, log=False):
     return Environment.update(self, m_ag, reset=True, log=log)
Exemple #5
0
 def update(self, mov, audio=True):
     s = Environment.update(self, mov)
     if self.audio and audio:
         self.play_sound(self.art_traj)
     return s