Variables |
tuple | auction_config_server_resp = auctioneer_service(role,auction_type,sending_node) |
tuple | auction_data = auction_msgs.msg.Auction() |
tuple | auction_duration = rospy.Time.now() |
string | auction_type = 'k-sap' |
tuple | auctioneer_server_resp = auctioneer_service(sending_node,nodes_collected,auction_data) |
tuple | auctioneer_service = rospy.ServiceProxy(service_path, auction_srvs.srv.AuctionConfigService) |
tuple | distance = float(math.sqrt(x*x+y*y+z*z)) |
| event_location = auction_data.task_location |
tuple | f = open(sys.argv[3], 'a') |
int | i = 1 |
tuple | line = str(event_location.x) |
tuple | messages = float(rospy.get_param('/num_messages')/number_of_nodes) |
list | nearest_node = [] |
int | nearest_node_distance = 99999999 |
| nearest_node_position = node_position |
string | node = '/node_' |
string | node_param = '/position' |
tuple | node_position = eval(rospy.get_param(node_param)) |
string | nodes_collected = '' |
tuple | nodes_collected_list = rospy.get_param('/nodes_collected') |
string | nodes_collected_str = ',' |
int | number_of_nodes = 0 |
string | role = 'be_auctioneer' |
| Main function.
|
tuple | sending_node = rospy.get_name() |
string | service_path = '/auction_config_server' |
| stop_search = False |
tuple | time_i = rospy.Time.now() |
tuple | x = float(node_position[0]) |
tuple | y = float(node_position[1]) |
tuple | z = float(node_position[2]) |