|
Bugzilla – Full Text Bug Listing |
| Summary: | Indoor/outdoor status is not updated when the node moves | ||
|---|---|---|---|
| Product: | ns-3 | Reporter: | Michele Polese <michele.polese> |
| Component: | buildings | Assignee: | Biljana Bojović <bbojovic> |
| Status: | NEW --- | ||
| Severity: | normal | CC: | michele.polese, ns-bugs, zorazeali |
| Priority: | P5 | ||
| Version: | ns-3-dev | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| Attachments: |
patch
Example |
||
Created attachment 3227 [details]
Example
Please see: https://gitlab.com/nsnam/ns-3-dev/issues/80 |
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