Hello,
I have just installed the ns-3 highway mobility module from
https://github.com/weiglemc/ns-3-highway-mobility/. I have changed some things to make it work with the latest version of ns-3, and everything seems to run just fine.
However, I cannot seem to get NetAnim to work. The error I get is as follows:
"Node:0 not found in Location table"All nodes in the simulation are contained withing the
Vehicle class, and are assigned a mobility model inside the class' constructor.
Vehicle::Vehicle() {
m_node = CreateObject<Node > ();
MobilityHelper mobility;
mobility.Install(m_node);
.....
Soon after the Vehicle's creation, the node position is also set:
m_node->GetObject<MobilityModel > ()->SetPosition(value);
I would assume that having set the position in the following manner would be enough to get the node into NetAnim's location table, so I am really confused by the error message.
Inside the main function, I have placed the
AnimationInterface anim ("animation.xml"); line just above
Simulator::Run(); as seems to be the norm.
Does anyone have an idea what I might be doing wrong?
Many Thanks,
Brandon