9 ros_root =
'/u/hassan/pr2/ros/' 11 os.environ[
'ROS_ROOT'] = ros_root
12 os.environ[
'ROS_PACKAGE_PATH'] =
'/u/hassan/pr2/ros-pkg/' 13 os.environ[
'ROS_MASTER_URI'] =
'http://localhost:11311/' 14 rospythonpath = os.path.join(ros_root,
'core/roslib/src')
15 os.environ[
'PYTHONPATH'] = rospythonpath
16 os.environ[
'ROS_BOOST_PATH'] =
'/opt/ros/' 18 sys.path.insert(0, rospythonpath)
20 os.environ[
'HOME'] =
'/tmp' 22 os.environ[
'ROS_CACHE_TIMEOUT'] =
'3600' 24 import roslib; roslib.load_manifest(PKG)
25 ros_root = os.environ[
'ROS_ROOT']
26 os.environ[
'PATH'] = os.path.join(ros_root,
"bin") +
":" + os.environ[
'PATH']
28 from pyclearsilver
import log
29 from webui
import cgistarter
33 path,f = os.path.split(__file__)
36 cgistarter.setConfig(config)
42 cgistarter.main(sys.argv, sys.stdout, os.environ)