Go to the documentation of this file.00001
00002
00003 import time
00004 start = time.time()
00005
00006 import os,sys
00007
00008 if 0:
00009 ros_root = '/u/hassan/pr2/ros/'
00010
00011 os.environ['ROS_ROOT'] = ros_root
00012 os.environ['ROS_PACKAGE_PATH'] = '/u/hassan/pr2/ros-pkg/'
00013 os.environ['ROS_MASTER_URI'] = 'http://localhost:11311/'
00014 rospythonpath = os.path.join(ros_root, 'core/roslib/src')
00015 os.environ['PYTHONPATH'] = rospythonpath
00016 os.environ['ROS_BOOST_PATH'] = '/opt/ros/'
00017
00018 sys.path.insert(0, rospythonpath)
00019
00020 os.environ['HOME'] = '/tmp'
00021
00022 os.environ['ROS_CACHE_TIMEOUT'] = '3600'
00023 PKG = 'webui'
00024 import roslib; roslib.load_manifest(PKG)
00025 ros_root = os.environ['ROS_ROOT']
00026 os.environ['PATH'] = os.path.join(ros_root, "bin") + ":" + os.environ['PATH']
00027
00028 from pyclearsilver import log
00029 from webui import cgistarter
00030
00031 import config
00032
00033 path,f = os.path.split(__file__)
00034 os.chdir(path)
00035
00036 cgistarter.setConfig(config)
00037
00038 end = time.time()
00039
00040 try:
00041 start = time.time()
00042 cgistarter.main(sys.argv, sys.stdout, os.environ)
00043 finally:
00044 end = time.time()
00045
00046