Skip to content

mobility: Fix velocity when nodes are standing still

Tommaso Pecorella requested to merge tommypec/ns-3-dev:FixSpeed into master

Small fix.

If RandomWaypointMobilityModel the node stops when it reaches the intended destination. However, if the next destination is the point the node is at... kaboom.

It happens in this case:

  • The nodes use a ListPositionAllocator
  • The mobility model uses the same ListPositionAllocator, or a different one with the same number of points as the number of nodes (didn't test this sub-case tho).

... and other fun variations.

Merge request reports