Hi Team,
I am trying to implement a model where we have two access points and a single wifi station.
THe two wireless APs are modelled using ConstantPositionMobilityModel (working fine).
I have implemented the wireless station such that it will move (mobile) and check the behaviour wiht the two access points defined above.
The issue is that when I implement this scenario on NetAnim, I am able to see the access points being places correctly, however the wireless station is never seen to move and is simply stuck on (0,0). If I place the wireless station using constant position it works. It is just that for a mobile station, I am not able to see the movements.
As per the guide :
http://www.nsnam.org/wiki/NetAnim_3.105#For_mobile_nodes , it is mentioned that we just need to implement a mobility model and the NetAnim will print based on the poll interval which is a default value of 250 ms.
I have used the following models so far : waypoint, random 2d walk, constant velocity and none of them seem to show the movement of nodes on NetAnim.
Is this a feature that is supported and should work? I did check a couple of videos / documents and they mention that such scenarios should work too. There is also a video here that demonstrates nodes mobility on NetAnim. This is exactly what I am trying to achieve but it does not show on NetAnim.
Here are the code snippets for reference:
mobility_sta.SetMobilityModel ("ns3::WaypointMobilityModel");
mobility_sta.Install(stas.Get(0));
Ptr<WaypointMobilityModel> points = DynamicCast<WaypointMobilityModel>( stas.Get(0)->GetObject<MobilityModel>());
points->AddWaypoint (Waypoint (Seconds (1.0), Vector (20.0, 0.0, 0.0)));
points->AddWaypoint (Waypoint (Seconds (5.0), Vector (20.0, 50.0, 50.0)));
points->AddWaypoint (Waypoint (Seconds (9.0), Vector (20.0, 150.0, 50.0)));
AnimationInterface::SetBoundary (0, 0, 1000, 1000);
AnimationInterface anim ("apstanew.xml");
Any tips on how I can proceed will be appreciated.
Kind Regards,
Avinash