Bug 1916

Summary: RandomWalk2dMobilityMode default "Bounds" attribute is not a rectangle
Product: ns-3 Reporter: Tommaso Pecorella <tommaso.pecorella>
Component: mobility modelsAssignee: ns-bugs <ns-bugs>
Status: RESOLVED FIXED    
Severity: major CC: tomh
Priority: P5    
Version: ns-3-dev   
Hardware: All   
OS: All   

Description Tommaso Pecorella 2014-05-19 13:08:12 UTC
Reported by Nissa Wang here:
https://groups.google.com/forum/?hl=en#!topic/ns-3-users/RJvwo-Uwx7s

The Bounds attribute default value is:
    .AddAttribute ("Bounds",
                   "Bounds of the area to cruise.",
                   RectangleValue (Rectangle (0.0, 0.0, 100.0, 100.0)),
                   MakeRectangleAccessor (&RandomWalk2dMobilityModel::m_bounds),
                   MakeRectangleChecker ())

However, the rectangle constructor is:
Rectangle::Rectangle (double _xMin, double _xMax,
                      double _yMin, double _yMax)

As a consequence, the default "Bounds" attribute is a *point* (and the node will stand still).
Comment 1 Tom Henderson 2014-05-20 00:19:41 UTC
yes on pushing the fix to ns-3-dev now before the release, as long as you test that it is really fixed this time.
Comment 2 Tommaso Pecorella 2014-05-21 15:05:21 UTC
changeset:   10786:52c7ca5d181f