8 import roslib.scriptutil
9 from roslib.names
import ns_join, get_ros_namespace, make_caller_id, make_global_ns, GLOBALNS
12 import roslib; roslib.load_manifest(PKG_NAME)
15 return make_caller_id(
'rosparam-%s'%os.getpid())
17 class Params(roslib.message.Message):
18 __slots__ = (
'parameters', )
25 raise RosTopicException(
"remote call failed: %s"%msg)
30 threading.Thread.__init__(self)
39 for k,v
in params.items():
41 if type(v) == type({}):
42 l = l + self.
flatten(v, _path +
"/")
44 l.append((_path, str(v)))
48 master = roslib.scriptutil.get_master()
51 paramlist = self.
flatten(params)
68 def main(argv, stdout, environ):
70 optlist, args = getopt.getopt(argv[1:],
"", [
"help",
"test",
"debug"])
76 if __name__ ==
"__main__":
77 main(sys.argv, sys.stdout, os.environ)
def __init__(self, params)
def flatten(self, params, path="/")
def setCallback(self, callback)
def main(argv, stdout, environ)