3 import os, sys, string, time, getopt
10 topics = topics + [
"/power_state",
"/power_board_state",
"/app_status"]
12 for topic
in topics: topicList.append(
"topic=%s" % topic)
13 topics = string.join(topicList,
"&")
15 url =
"http://localhost:%s/ros/receive?since=0&nowait=1&%s" % (config.gROSBridgePort, topics)
17 fp = urllib.urlopen(url)
21 hdf.setValue(
"CGI.cur.messages", body)
30 cmd = [
"rospack",
"depends-on",
"webui"]
31 p = subprocess.Popen(cmd, stdout=subprocess.PIPE)
33 line = p.stdout.readline()
37 path = roslib.packages.get_pkg_dir(pkg)
38 files = glob.glob(os.path.join(path,
"*.app"))
46 hdf.setValue(
"CGI.cur.tabs.%d" % i, tab)
52 hdf.setValue(
"%s.%s" % (prefix, i), element)
def grabTopics(hdf, topics)
def hdf_array(hdf, array, prefix)