Hello, I'm new to ns-3 and I'm new to networking as well. I'm trying to create LoRa simulation and its visual presentation in netanim. The module I work on with is the next one ==>
I have seen codes of several examples I'm trying to do this:
At first in the beggining I wrote #include "ns3/netanim-module.h"
And at the end after ==> Simulator::Stop (appStopTime + Hours (2)); <== after that I wrote:
AnimationInterface anim ("pirveli.xml");
anim.SetConstantPosition(gateways.Get(0), 1.0, 2.0);
anim.SetConstantPosition(endDevices.Get(1), 2.0, 3.0);
anim.SetConstantPosition(endDevices.Get(2), 3.0, 4.0);
I've tried to visualize only several nodes to see if it has output. Probably lora module sets it nodes positions automatically and I don't know how to indicate them there, but the first problem is that it doesn't run at all and it has some problem with referencing.
This is the output:
