Using the "
Ptr<MobilityModel> mobility", you can get the position. You can use the following commands:
Ptr<MobilityModel> mob = nodes.Get(i)->GetObject<MobilityModel>();
Vector pos = mob->GetPosition ();
std::cout << "POS: x=" << pos.x << ", y=" << pos.y << std::endl;Regards,
--
Rafael Fernandes Lopes
Lattes:
http://lattes.cnpq.br/1972734433460838____________________________________________________________
Universidade Federal de Campina Grande -- UFCG
Unidade Acadêmica de Engenharia Elétrica -- UAEE
Instituto de Estudos Avançados em Comunicações -- IECOM
http://www.iecom.org.br
Instituto Federal de Educação, Ciência e Tecnologia do Maranhão -- IFMA
http://www.ifma.edu.br____________________________________________________________