Skip to content

Commit

Permalink
Ancienne modifs
Browse files Browse the repository at this point in the history
  • Loading branch information
TurpIF committed Mar 4, 2014
1 parent 50da58a commit 92e1fb2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Togetic/Blender/PositionController.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import mathutils
import time
import math

from Togetic.shm import shm
from Togetic.Blender.Receiver import Receiver
Expand All @@ -25,7 +26,7 @@ def run(self):
self._owner.worldPosition = self._initPosition \
+ mathutils.Vector((x, y, z))
ori = self._owner.orientation.to_euler()
ori.x = theta
ori.x = -theta + math.pi / 2
ori.y = -phy
ori.z = psy
self._owner.orientation = ori
Expand Down
2 changes: 2 additions & 0 deletions Togetic/Server/AbstractServer.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import sys
import threading
import time

class AbstractServer(threading.Thread):
def __init__(self):
Expand Down Expand Up @@ -39,6 +40,7 @@ def run(self):
while self._running:
try:
self._serve()
time.sleep(0.005)
except Exception as e:
# print('Server `', self, '` stopped by an exception :', e, file=sys.stderr)
self.stop()
Expand Down

0 comments on commit 92e1fb2

Please sign in to comment.