From fcc26231a14555bf010d39e87205aa6eccfdd260 Mon Sep 17 00:00:00 2001 From: vivek-shankar Date: Sun, 2 Apr 2017 15:31:13 -0400 Subject: [PATCH] robots variable correction --- src/roscontroller.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/roscontroller.cpp b/src/roscontroller.cpp index 2347878..6aea0ba 100644 --- a/src/roscontroller.cpp +++ b/src/roscontroller.cpp @@ -73,9 +73,9 @@ namespace rosbzz_node{ multi_msg=true; } /*Set ROBOTS variable for barrier in .bzz from neighbours count*/ - buzz_utility::set_robot_var(neighbours_pos_map.size()); + buzz_utility::set_robot_var(neighbours_pos_map.size()+1); /*Set no of robots for updates*/ - updates_set_robots(neighbours_pos_map.size()); + updates_set_robots(neighbours_pos_map.size()+1); /*run once*/ ros::spinOnce(); /*loop rate of ros*/