void
CourseChange (Ptr<OutputStreamWrapper> stream,Ptr<const MobilityModel> model)
{
Vector position = model->GetPosition ();
NS_LOG_UNCOND (" x = " << position.x << ", y = " << position.y);
*stream->GetStream () << Simulator::Now ().GetSeconds () << " x = " << position.x << ", y = " << position.y<< std::endl;
std::cout<<"here"<<std::endl;
}
AsciiTraceHelper asciiTraceHelper;
Ptr<OutputStreamWrapper> stream = asciiTraceHelper.CreateFileStream ("testtr.tr");
wifiStaNodes.Get (nWifi - 1)->TraceConnectWithoutContext("CourseChange", MakeBoundCallback (&CourseChange,stream));