From 9f805877ea5f7cd17c1af8c4a421698bc0253a0b Mon Sep 17 00:00:00 2001 From: Michele Polese Date: Thu, 24 Oct 2019 14:24:56 +0200 Subject: [PATCH] buildings: (merge !125) Add random walk mobility model that avoids buildings * Adds example, unit test, and bash script to plot results --- CHANGES.html | 3 +- RELEASE_NOTES | 1 + .../examples/outdoor-random-walk-example.cc | 130 ++++++ .../examples/outdoor-random-walk-example.sh | 41 ++ src/buildings/examples/wscript | 3 + .../random-walk-2d-outdoor-mobility-model.cc | 438 ++++++++++++++++++ .../random-walk-2d-outdoor-mobility-model.h | 135 ++++++ .../test/outdoor-random-walk-test.cc | 167 +++++++ src/buildings/wscript | 3 + 9 files changed, 920 insertions(+), 1 deletion(-) create mode 100644 src/buildings/examples/outdoor-random-walk-example.cc create mode 100755 src/buildings/examples/outdoor-random-walk-example.sh create mode 100644 src/buildings/model/random-walk-2d-outdoor-mobility-model.cc create mode 100644 src/buildings/model/random-walk-2d-outdoor-mobility-model.h create mode 100644 src/buildings/test/outdoor-random-walk-test.cc diff --git a/CHANGES.html b/CHANGES.html index c9078c015..625e8eb7d 100644 --- a/CHANGES.html +++ b/CHANGES.html @@ -74,9 +74,10 @@ allows to choose between Block Ack policy and Implicit Block Ack Request policy allows to request an acknowledgment after a configurable number of MPDUs have been transmitted.
  • The MaxSize attribute is removed from the QueueBase base class and moved to subclasses. A new MaxSize attribute is therefore added to the DropTailQueue class, while the MaxQueueSize attribute of the WifiMacQueue class is renamed as MaxSize for API consistency.
  • +
  • A new sequence and timestamp header variant for applications has been added. The SeqTsEchoHeader contains an additional timestamp field for use in echoing a timestamp back to a sender.
  • TCP-based applications (OnOffApplication, BulkSendApplication, and PacketSink) support a new header to convey sequence number, timestamp, and size data. Use is controlled by the "EnableSeqTsSizeHeader" attribute.
  • Added a new trace source PhyRxPayloadBegin in WifiPhy for tracing begin of PSDU reception.
  • -
  • A new sequence and timestamp header variant for applications has been added. The SeqTsEchoHeader contains an additional timestamp field for use in echoing a timestamp back to a sender.
  • +
  • Added the class RandomWalk2dOutdoorMobilityModel that models a random walk which does not enter any building.
  • Changes to existing API: