Hey guys,
I'm developing a NS3 App with an ad-hoc network, and I need the app installed in the nodes to be aware of the node's coordinates. I know that a way to obtain this, is using something like this:
Ptr<MobilityModel> mob = GetNode()->GetObject<MobilityModel>();
Vector pos = mob->GetPosition();
My problem is that the node app does not have access to the nodecontainer, nor the pointer to the node required to get the correspondent location. My node application is in a different class from where it's mobility is set up.
How can I solve this ?
Thank you in advance
Pedro