diff --git a/src/roscontroller.cpp b/src/roscontroller.cpp index 0d40cc5..0471f78 100644 --- a/src/roscontroller.cpp +++ b/src/roscontroller.cpp @@ -175,18 +175,17 @@ void roscontroller::RosControllerRun() << cur_pos.altitude * 100000 << ","; log << (int)no_of_robots<<","; log << neighbours_pos_map.size()<< ","; - // if(neighbours_pos_map.size() > 0)log<<","; map::iterator it = neighbours_pos_map.begin(); for (; it != neighbours_pos_map.end(); ++it) { - log<<","<< it->first<<","; + log<< it->first<<","; log<< (double)it->second.x << "," << (double)it->second.y - << "," << (double)it->second.z; + << "," << (double)it->second.z <<","; } for (std::vector::iterator it = inmsgdata.begin() ; it != inmsgdata.end(); ++it){ - log<<","<<(int)it->nid <<","<<(int)it->msgid<<","<<(int)it->size<<","<sent_time - <<","<received_time; + log<<(int)it->nid <<","<<(int)it->msgid<<","<<(int)it->size<<","<sent_time + <<","<received_time <<","; } inmsgdata.clear(); log<<(int)inmsgdata.size()<<","<< message_number<<",";