From 601b1d91e642d51821f8b5debf2476f30df2520b Mon Sep 17 00:00:00 2001 From: Fang Wu Date: Wed, 7 Nov 2018 18:53:52 -0500 Subject: [PATCH] Removed some debugging log to reduce the message size: modified: src/rosbuzz/buzz_scripts/include/taskallocate/bidding.bzz --- buzz_scripts/include/taskallocate/bidding.bzz | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/buzz_scripts/include/taskallocate/bidding.bzz b/buzz_scripts/include/taskallocate/bidding.bzz index 01fd468..82101c1 100644 --- a/buzz_scripts/include/taskallocate/bidding.bzz +++ b/buzz_scripts/include/taskallocate/bidding.bzz @@ -457,6 +457,9 @@ function init_bidding() { # executed at each time step function bidding() { + # enable debug will increase the message size + debug = 0 + # read the csv file with the waypoints information read_from_csv(CSV_FILENAME_AND_PATH) @@ -565,11 +568,11 @@ function bidding() { bid_made = 1 bid_time = experiment_iteration bidded_area = highest_area - log("Drone", id, "SET its bid", highest_bid, "on", highest_area, "at iter", experiment_iteration, "status was", stig_get_status(highest_area)) + log("Drone", id, "SET its bid", highest_bid, "on", highest_area, "at iter", experiment_iteration) } else { bid_made = 0 bidded_area = -1 - log("Drone", id, "GAVE UP bid", highest_bid, "on", highest_area, "at iter", experiment_iteration, "status was", stig_get_status(highest_area)) + log("Drone", id, "GAVE UP bid", highest_bid, "on", highest_area, "at iter", experiment_iteration) } } } @@ -616,7 +619,7 @@ function bidding() { ######################################## # TEMP DEBUG BLOCK START ############### ######################################## - if (id == 2) { + if (id == 2 and debug == 1) { if (experiment_iteration%20==0){ print_out_bidding_stigmergy() }