neigh pos correction

This commit is contained in:
vivek-shankar 2017-01-13 14:41:42 -05:00
parent 83f4286736
commit e5c64f69ad
1 changed files with 1 additions and 1 deletions

View File

@ -222,7 +222,7 @@ namespace rosbzz_node{
/*Puts raw neighbours position*/
void roscontroller::raw_neighbours_pos_put(int id, buzz_utility::Pos_struct pos_arr ){
map< int, buzz_utility::Pos_struct >::iterator it = raw_neighbours_pos_map.find(id);
if(it!=neighbours_pos_map.end())
if(it!=raw_neighbours_pos_map.end())
raw_neighbours_pos_map.erase(it);
raw_neighbours_pos_map.insert(make_pair(id, pos_arr));
}