|
From: <tf...@us...> - 2008-03-27 01:51:32
|
Revision: 46
http://personalrobots.svn.sourceforge.net/personalrobots/?rev=46&view=rev
Author: tfoote
Date: 2008-03-26 18:51:37 -0700 (Wed, 26 Mar 2008)
Log Message:
-----------
adding back nodes to roslogger
Added Paths:
-----------
pkg/trunk/roslogger/nodes/
pkg/trunk/roslogger/nodes/loggingUI
pkg/trunk/roslogger/nodes/logging_node
Added: pkg/trunk/roslogger/nodes/loggingUI
===================================================================
--- pkg/trunk/roslogger/nodes/loggingUI (rev 0)
+++ pkg/trunk/roslogger/nodes/loggingUI 2008-03-27 01:51:37 UTC (rev 46)
@@ -0,0 +1,45 @@
+#!/usr/bin/env python
+
+PKG = 'loggingUI'
+MODULE = 'loggingUI.loggingUI' #this is the module that will be invoked by python
+
+######################################################
+# BOILERPLATE: Should not have to modify anything
+# below except for very last line
+######################################################
+# Bootstrap ourselves into latest rospy install
+import sys, os, subprocess
+BOOTSTRAP_VERSION = "0.1"
+
+# Read in ROS_ROOT
+if not os.environ.has_key('ROS_ROOT'):
+ print """\nCannot run ROS: ROS_ROOT is not set.\nPlease set the ROS_ROOT environment variable to the
+location of your ROS install.\n"""
+ sys.exit(-1)
+rosRoot = os.environ['ROS_ROOT']
+
+# Read in the rospy directory location from the 'rospack latest rospy' command
+rospyDir = subprocess.Popen([os.path.join(rosRoot,'rospack'), 'latest', 'rospy'], stdout=subprocess.PIPE).communicate()[0]
+if rospyDir is None or not os.path.isdir(rospyDir.strip()):
+ print "\nERROR: Cannot locate rospy installation.\n"
+ sys.exit(-1)
+
+# Run launcher bootstrapper
+sys.path.append(os.path.join(rospyDir.strip(),'scripts'))
+import launcher
+
+manifestFile = launcher.getManifestFile(sys.argv[0], PKG)
+launcher.init(BOOTSTRAP_VERSION)
+launchCommand, launchArgs, launchEnv = \
+ launcher.getLaunchCommands(manifestFile, MODULE)
+launcher.ready(launchCommand, launchArgs, launchEnv, BOOTSTRAP_VERSION)
+
+######################################################
+# END BOILERPLATE:
+# You may wish to modify the exec command below to
+# customize the behavior of your node, e.g.:
+# * env['FOO'] = bar
+# * launchArgs.append('--test')
+######################################################
+
+os.execvpe(launchCommand, launchArgs, launchEnv)
Property changes on: pkg/trunk/roslogger/nodes/loggingUI
___________________________________________________________________
Name: svn:executable
+ *
Name: svn:mime-type
+ text/script
Added: pkg/trunk/roslogger/nodes/logging_node
===================================================================
--- pkg/trunk/roslogger/nodes/logging_node (rev 0)
+++ pkg/trunk/roslogger/nodes/logging_node 2008-03-27 01:51:37 UTC (rev 46)
@@ -0,0 +1,45 @@
+#!/usr/bin/env python
+
+PKG = 'logging_node'
+MODULE = 'logging_node.logging_node' #this is the module that will be invoked by python
+
+######################################################
+# BOILERPLATE: Should not have to modify anything
+# below except for very last line
+######################################################
+# Bootstrap ourselves into latest rospy install
+import sys, os, subprocess
+BOOTSTRAP_VERSION = "0.1"
+
+# Read in ROS_ROOT
+if not os.environ.has_key('ROS_ROOT'):
+ print """\nCannot run ROS: ROS_ROOT is not set.\nPlease set the ROS_ROOT environment variable to the
+location of your ROS install.\n"""
+ sys.exit(-1)
+rosRoot = os.environ['ROS_ROOT']
+
+# Read in the rospy directory location from the 'rospack latest rospy' command
+rospyDir = subprocess.Popen([os.path.join(rosRoot,'rospack'), 'latest', 'rospy'], stdout=subprocess.PIPE).communicate()[0]
+if rospyDir is None or not os.path.isdir(rospyDir.strip()):
+ print "\nERROR: Cannot locate rospy installation.\n"
+ sys.exit(-1)
+
+# Run launcher bootstrapper
+sys.path.append(os.path.join(rospyDir.strip(),'scripts'))
+import launcher
+
+manifestFile = launcher.getManifestFile(sys.argv[0], PKG)
+launcher.init(BOOTSTRAP_VERSION)
+launchCommand, launchArgs, launchEnv = \
+ launcher.getLaunchCommands(manifestFile, MODULE)
+launcher.ready(launchCommand, launchArgs, launchEnv, BOOTSTRAP_VERSION)
+
+######################################################
+# END BOILERPLATE:
+# You may wish to modify the exec command below to
+# customize the behavior of your node, e.g.:
+# * env['FOO'] = bar
+# * launchArgs.append('--test')
+######################################################
+
+os.execvpe(launchCommand, launchArgs, launchEnv)
Property changes on: pkg/trunk/roslogger/nodes/logging_node
___________________________________________________________________
Name: svn:executable
+ *
Name: svn:mime-type
+ text/script
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|