How to set up the position allocator when using Ramdomwaypoint model in NS-3
问题 I tried to alter the example code(third.cc) by replacing the mobility model name(RandomWalk2dMobilityModel) with RandomWaypointMobilityModel. After running the code, it turned out to be an output like assert failed. cond="m_position", msg="No position allocator added before using this model" So basically this is the most relevant code with the error msg MobilityHelper mobility; mobility.SetPositionAllocator ("ns3::GridPositionAllocator", "MinX", DoubleValue (0.0), "MinY", DoubleValue (0.0),