i have write this part of code
MobilityHelper gmobility;
gmobility.SetPositionAllocator ("ns3::GridPositionAllocator",
"MinX", DoubleValue (1000.0),
"MinY", DoubleValue (1000.0),
"DeltaX", DoubleValue (0.0),
"DeltaY", DoubleValue (0.0),
"GridWidth", UintegerValue (1),
"LayoutType", StringValue ("RowFirst"));
gmobility.SetMobilityModel ("ns3::ConstantPositionMobilityModel");
gmobility.Install (gNodes);
MobilityHelper mobility;
mobility.SetPositionAllocator ("ns3::GridPositionAllocator",
"MinX", DoubleValue (0.0),
"MinY", DoubleValue (0.0),
"DeltaX", DoubleValue (2000.0),
"DeltaY", DoubleValue (2000.0),
"GridWidth", UintegerValue (1),
"LayoutType", StringValue ("RowFirst"));
mobility.SetMobilityModel ("ns3::RandomWalk2dMobilityModel",
"Mode", StringValue ("Distance"),
"Distance", StringValue ("1000"),
"Speed", StringValue ("ns3::ConstantRandomVariable[Constant=1.0]"),
"Bounds", StringValue ("0|200|0|200"));
mobility.Install (anNodes);
i got this error message after compilation in run time
Creating 2 anNodes.
assert failed. cond="m_bounds.IsInside (position)", file=../src/mobility/model/random-walk-2d-mobility-model.cc, line=168
terminate called without an active exception
Command ['/home/amirale32/ns-allinone-3.15/ns-3.15/build/scratch/aero2dtest'] terminated with signal SIGIOT. Run it under a debugger to get more information (./waf --run <program> --command-template="gdb --args %s <args>").
can you please show me what is wrong here