def loggingUIMain(argv, stdout, env): global master #check arguments for a help flag optlist, args = getopt.getopt(argv[1:], "h?", ["help"]) if filter(lambda x: x in ["-h", "-?", "--help"], optlist): usage(stdout, argv[0]) return # HACK to get things running serverUri = 'http://localhost:%s/' % rospy.DEFAULT_TEST_PORT print "TEST MODE: Providing ROS parameters manually" print "NOTE: assuming server at %s" % serverUri os.environ[rospy.ROS_PORT] = str(0) #any os.environ[rospy.ROS_MASTER_URI] = serverUri os.environ[rospy.ROS_NODE] = NAME rospy.start() #blocks until connected to master master = rospy.getMaster() print "ready to run" root = Tkinter.Tk() #Tkinter.Button(root,text="Load Graph").pack() #root.update() f = InitialPrompt(root) # root.wait_window(f.top) # print "got my initial prompt" #d = RecordManagement(root) # print "record management has returned" # root.wait_window(d.top) # Tkinter.Button(root, text="test").pack() # root.update() root.mainloop()
def logging_nodeMain(argv, stdout, env): #check arguments for a help flag optlist, args = getopt.getopt(argv[1:], "h?", ["help"]) if filter(lambda x: x in ["-h", "-?", "--help"], optlist): usage(stdout, argv[0]) return rospy.start() #blocks until connected to master master = rospy.getMaster() #initialize flows in_string_in = common_flows.FlowString(".input") while 1: #TODO: replace with shutdown check #read/publish flows # - read inflow data #print master.getParam('.name') string_inData = in_string_in.receive() print "logging_node recieved: " + string_inData.data
def logging_nodeMain(argv, stdout, env): #check arguments for a help flag optlist, args = getopt.getopt(argv[1:], "h?", ["help"]) if filter(lambda x: x in ["-h","-?","--help"], optlist): usage(stdout, argv[0]) return rospy.start() #blocks until connected to master master = rospy.getMaster(); #initialize flows in_string_in = common_flows.FlowString(".input") while 1: #TODO: replace with shutdown check #read/publish flows # - read inflow data #print master.getParam('.name') string_inData = in_string_in.receive() print "logging_node recieved: " + string_inData.data
def loggingUIMain(argv, stdout, env): global master #check arguments for a help flag optlist, args = getopt.getopt(argv[1:], "h?", ["help"]) if filter(lambda x: x in ["-h","-?","--help"], optlist): usage(stdout, argv[0]) return # HACK to get things running serverUri = 'http://localhost:%s/'%rospy.DEFAULT_TEST_PORT print "TEST MODE: Providing ROS parameters manually" print "NOTE: assuming server at %s"%serverUri os.environ[rospy.ROS_PORT] = str(0) #any os.environ[rospy.ROS_MASTER_URI] = serverUri os.environ[rospy.ROS_NODE] = NAME rospy.start() #blocks until connected to master master = rospy.getMaster() print "ready to run" root = Tkinter.Tk() #Tkinter.Button(root,text="Load Graph").pack() #root.update() f = InitialPrompt(root) # root.wait_window(f.top) # print "got my initial prompt" #d = RecordManagement(root) # print "record management has returned" # root.wait_window(d.top) # Tkinter.Button(root, text="test").pack() # root.update() root.mainloop()