Bug 2166

Summary: SteadyStateRandomWaypointMobilityModel directs the node to the ground
Product: ns-3 Reporter: Tommaso Pecorella <tommaso.pecorella>
Component: mobility modelsAssignee: ns-bugs <ns-bugs>
Status: RESOLVED FIXED    
Severity: major    
Priority: P5    
Version: ns-3-dev   
Hardware: All   
OS: All   
Attachments: patch

Description Tommaso Pecorella 2015-08-08 07:41:36 UTC
Created attachment 2114 [details]
patch

SteadyStateRandomWaypointMobilityModel is turning the nodes down. To the ground to be precise.

The culprit is that the node's z position is not considered, and the model is ignoring it when calculating the new point to be reached.
Since the new point is derived from RandomRectanglePositionAllocator (2D model), the Z axis value for the new point is zero.

The alternatives are:
1) use a RandomBoxPositionAllocator (as in the attached patch), or
2) force the z position of the destination point to be the same as the one of the original point.

The bug was reported here by Ziyi He.
https://groups.google.com/forum/#!topic/ns-3-users/Z3I1aajP7RU
Comment 1 Tommaso Pecorella 2015-08-22 11:10:07 UTC
Fixed in changeset:   11612:47c1048095f0