Example #1
0
def savePosition(name, listener):
    print "Please move Brett to: %s."%name
    print "Is Brett ready?"
    waitForInput = raw_input()
    srv = rospy.ServiceProxy("locations/add_current_location", AddCurrentLocation)
    resp = srv(name, "/map")
    return True
Example #2
0
def saveLocations(listener):
	savePosition("pre-Dryer", listener)
	savePosition("Dryer", listener)
	savePosition("pre-Table1", listener)
	savePosition("Table1", listener)
	savePosition("pre-Table2", listener)
	savePosition("Table2", listener)
	srv = rospy.ServiceProxy("locations/save_locations", SaveLocations)
	resp = srv("hackathon_demo")
def goToPosition(name):
    srv = rospy.ServiceProxy("locations/%s" % name, ExecuteLocation)
    resp = srv(5, [])
    return True
def loadLocations():
    srv = rospy.ServiceProxy("locations/load_locations", LoadLocations)
    resp = srv("dryer_demo")
    resp = srv("unload_dryer")
def goToPosition(name):
    srv = rospy.ServiceProxy("locations/%s" % name, ExecuteLocation)
    resp = srv(5, [])
    return True
def loadLocations():
    srv = rospy.ServiceProxy("locations/load_locations", LoadLocations)
    resp = srv("hackathon_demo")
def loadLocations():
	srv = rospy.ServiceProxy("locations/load_locations", LoadLocations)
	resp = srv("hackathon_demo")
def loadLocations():
	srv = rospy.ServiceProxy("locations/load_locations", LoadLocations)
	resp = srv("dryer_demo")
	resp = srv("unload_dryer")