diff --git a/src/roscontroller.cpp b/src/roscontroller.cpp index 6aea0ba..5be8d5d 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()+1); + buzz_utility::set_robot_var(raw_neighbours_pos_map.size()+1); /*Set no of robots for updates*/ - updates_set_robots(neighbours_pos_map.size()+1); + updates_set_robots(raw_neighbours_pos_map.size()+1); /*run once*/ ros::spinOnce(); /*loop rate of ros*/