Bugzilla – Bug 3018
Indoor/outdoor status is not updated when the node moves
Last modified: 2019-08-26 12:03:42 EDT
Created attachment 3226 [details] patch Currently, if a node moves from outside a building to inside a building (or vice versa), the state of the associated MobilityBuildingInfo object is not updated. You can try the attached example and check. The only way to update the MobilityBuildingInfo state is (probably) calling BuildingsHelper::MakeMobilityModelConsistent() multiple times (periodically) during the simulation, but this is not efficient and precise. The attached patch verifies the consistency of the MobilityBuildingInfo object every time IsIndoor or IsOutdoor are called. This however has an impact (which I did not quantify) on the simulation time in case of wireless simulations with buildings. Please let me know if my understanding of this issue is correct, and what you think of the proposed solution! Thanks, Michele
Created attachment 3227 [details] Example
Please see: https://gitlab.com/nsnam/ns-3-dev/issues/80