Revision 64f5c90e client/python/hlrc_client/MiddlewareRSB.py

View differences:

client/python/hlrc_client/MiddlewareRSB.py
30 30

  
31 31
import rsb
32 32
import rsb.converter
33
try:
34
    import rst
35
    import rstsandbox
36
    from rst.robot.EmotionState_pb2 import EmotionState
37
    from rst.robot.Animation_pb2    import Animation
38
    from rst.robot.GazeTarget_pb2   import GazeTarget
39
    from rst.robot.MouthTarget_pb2  import MouthTarget
40
except ImportError, e:
41
    print("Warning, RSB could be imported, but the required message types do not exist: ")
42
    print e
43

  
44
#except ImportError as exception:
45
#    sys.stderr.write("ImportError: {}\n> HINT: try to export PYTHONPATH=$PYTHONPATH:$YOUR_PREFIX/lib/python2.7/site-packages/\n\n".format(exception))
46
#    sys.exit(errno.ENOPKG)
33
import rst
34
import rstsandbox
35
from rst.robot.EmotionState_pb2 import EmotionState
36
from rst.robot.Animation_pb2    import Animation
37
from rst.robot.GazeTarget_pb2   import GazeTarget
38
from rst.robot.MouthTarget_pb2  import MouthTarget
47 39

  
48 40
class MiddlewareRSB(Middleware):
49 41
	#######################################################################

Also available in: Unified diff