hello Sir ,
the value of X ,Y,Z get change but it only contain the same before that i.e. node list 9.
During the simulation I have found that all the nodes are moving in xml file.
I am putting the code which I put just below the inclusion of header file
NS_LOG_COMPONENT_DEFINE ("WifiSimpleAdhoc");
using namespace ns3;
void
CourseChange (std::string context, Ptr<const MobilityModel> model)
{
Vector position = model->GetPosition ();
NS_LOG_UNCOND (context <<
" x = " << position.x << ", y = " << position.y << " , z = " << position.z);
}
and before the simulation stop
hello Sir,
as I informed you that I did not paste the code from any where.When previously you suggested me then I read it throughly and implemented in my program. I used the GetId () function to get the id of the particular node but it did not works.
Secondly it did not capture the the position of 9th node because in the above code we have that (nwifi-1) because of that . it shows the node list 9.
so I requested you that please tell me that how I can implement the GetId() so that I can get the location of the particular node. It is not implemented on 9th node.