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]) |
tuple seller::auction_data = auction_msgs.msg.Auction() |
tuple seller::auction_duration = rospy.Time.now() |
string seller::auction_type = 'k-sap' |
tuple seller::auctioneer_service = rospy.ServiceProxy(service_path, auction_srvs.srv.AuctionConfigService) |
seller::event_location = auction_data.task_location |
tuple seller::line = str(event_location.x) |
tuple seller::messages = float(rospy.get_param('/num_messages')/number_of_nodes) |
seller::nearest_node = [] |
seller::nearest_node_distance = 99999999 |
string seller::node = '/node_' |
string seller::node_param = '/position' |
tuple seller::node_position = eval(rospy.get_param(node_param)) |
string seller::nodes_collected = '' |
tuple seller::nodes_collected_list = rospy.get_param('/nodes_collected') |
string seller::nodes_collected_str = ',' |
int seller::number_of_nodes = 0 |
string seller::role = 'be_auctioneer' |
tuple seller::sending_node = rospy.get_name() |
string seller::service_path = '/auction_config_server' |
tuple seller::time_i = rospy.Time.now() |
tuple seller::x = float(node_position[0]) |
tuple seller::y = float(node_position[1]) |
tuple seller::z = float(node_position[2]) |