Hi,
Thanks for your help. Following is the code I have implemented. But it is giving an error which I have mentioned in my previous post. Please let me know what's wrong in the code.
int MeshTest::Run (){
std::string animFile = "reports/mesh_animation.xml" ; // Name of file for animation output
std::string routeTrackFile = "reports/mesh_track_route.xml" ; // Name of file for animation output
CreateNodes ();
InstallInternetStack ();
InstallApplication ();
//Simulator::Schedule (Seconds (m_totalTime), &MeshTest::Report, this);
Simulator::Stop (Seconds (m_totalTime));
// Create the animation object and configure for specified output
AnimationInterface anim (animFile);
//anim.EnableIpv4RouteTracking(routeTrackFile,Seconds(0.0),Seconds())
//anim.EnableIpv4RouteTracking(routeTrackFile,Seconds(0.0),Seconds(m_totalTime),Seconds(5));
anim.AnimationInterface::EnablePacketMetadata(true);
Simulator::Run ();
std::cout << "Animation Trace file created:" << animFile.c_str ()<< std::endl;
Simulator::Destroy ();
return 0;