I'm plotting the distance of wifi nodes using the following snippet of code:
Ptr<MobilityModel> mob = nodes.Get(id)->GetObject<MobilityModel>();
Vector pos = mob->GetPosition ();
std::ostringstream oss;
oss <<"for node "<<id<<" POS: x=" << pos.x << ", y=" << pos.y << std::endl;
corrosponding output :
for node 1 POS: x=-85.2645, y=143.92
is this distance in metres (from the origin) ?