Poisiton of fixed host

7 views
Skip to first unread message

rport...@gmail.com

unread,
May 24, 2013, 6:29:05 AM5/24/13
to omn...@googlegroups.com
Good afternoon

Can anyone please tell which is the best way to know the position of a fixed host, which has StationaryMobility module, please?

I didn't declare anything related to this in .ini file. Should I ?

Also, how will I call to get the value of this position?

For mobile hosts I did:
 cModule *Pos = getParentModule()->getSubmodule("mobility");
 TraCIMobility *myPos = check_and_cast<TraCIMobility *>(Pos);
 
 myPos->getCurrentPosition().x, myPos->getCurrentPosition().y


I need to do something similar, but for a fixed host with StationaryMobility module.

Any ideas please?

Thanks in advance


Reply all
Reply to author
Forward
0 new messages