4 usage: %(progname)s [args] 9 import os, sys, string, time, getopt, re
12 import neo_cgi, neo_util, neo_cs
14 from pyclearsilver
import CSPage
15 from pyclearsilver
import odb
21 import roslib.scriptutil
31 topic = hdf.getValue(
"Query.topic",
"")
32 hdf.setValue(
"CGI.cur.topic", topic)
33 webutil.set_tabs(hdf, [
"status",
"topics"])
34 webutil.grabTopics(hdf, [
"/topics", topic,
"/battery_state",
"/power_board_state",
"/app_status"])
36 topic_data = nodeutil.topic_info(topic)
38 if "error" in topic_data:
39 hdf.setValue(
"CGI.cur.error", topic_data[
"error"])
41 webutil.hdf_array(hdf, sorted(topic_data[
"publishers"]),
"CGI.cur.publishers")
42 webutil.hdf_array(hdf, sorted(topic_data[
"subscribers"]),
"CGI.cur.subscribers")
45 return MyPage(context, pagename=
"topic", nologin=
False)
48 context = CSPage.Context()
51 if __name__ ==
"__main__":