I'm working with ns3 3.21.
I know how to install a Ns2Mobility in a node container:
NodeContainer nodes;
/*...*/
Ns2MobilityHelper ns2 = Ns2MobilityHelper ("rpgm.ns_movements");
nodes.Install (nodes.Begin(),nodes.End());
Where, the number of nodes in the container is the same that in the bonnmotion file generated.
My doubt is, is it possible to install that mobility model in two different containers? Suppose, a container with X nodes, another container with Y nodes and a bonnmotion file generated with X+Y nodes.
NodeContainer nodes_X;
NodeContainer nodes_Y;
/*...*/
Ns2MobilityHelper ns2 = Ns2MobilityHelper ("rpgmX+Y.ns_movements");
//Here is the problem, how to install on both, i.e., iterate over the two containers.
/*nodes.Install (nodes.Begin(),nodes.End());*/
Thank you in advance.