|
Bugzilla – Full Text Bug Listing |
| Summary: | Random walk mobility model: assert failed. cond="m_bounds.IsInside (position)" | ||
|---|---|---|---|
| Product: | ns-3 | Reporter: | Pavel Boyko <boyko> |
| Component: | mobility models | Assignee: | Pavel Boyko <boyko> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | ns-bugs, tomh |
| Priority: | P5 | ||
| Version: | ns-3.13 | ||
| Hardware: | All | ||
| OS: | All | ||
|
Description
Pavel Boyko
2012-04-04 06:12:19 UTC
The problem here is that the combination of the position allocator and mobility model configuration does not permit arbitrarily large numbers of wifi stations.
mobility.SetPositionAllocator ("ns3::GridPositionAllocator",
"MinX", DoubleValue (0.0),
"MinY", DoubleValue (0.0),
"DeltaX", DoubleValue (5.0),
"DeltaY", DoubleValue (10.0),
"GridWidth", UintegerValue (3),
"LayoutType", StringValue ("RowFirst"));
mobility.SetMobilityModel ("ns3::RandomWalk2dMobilityModel",
"Bounds", RectangleValue (Rectangle (-50, 50, -50, 50)));
This starts to segfault at --nWifi > 18 when the initial layout of nodes goes beyond the bounding box.
Will fix in a minimal way that doesn't require too much touching of the tutorial text; specifically, to enforce that --nWifi <= 18.
fixed: changeset 0e14523a87fd |