Add a New Comment (Rich Markup)
Hello, I have investigated and I have to implement a different handling of lookahead for NMP protocol. This was causing the stall using your special way to use NER algorithm. I don't have time to do it now but it is on my "to-do" list. Did you get a chance to retry it with your new NER implementation in your app?
Hello, I checked your code and you are using the NER in a strange way. You are using the NER to mimic time stepped federate (which should use TAR) by forcing the federate to stay in a while loop until it reaches the "time_step". Then you send the UAV ("updateObject(next_step)"). So I guess at some point the time-stamping protocol is reaching a state similar to the mixture of TAR/NER which (as discussed) can be a corner case. I believe that there is an issue with the handling of timestamp that must be fixed to properly support TAR and NER and avoid corner case. However, the way you are using NER looks inconsistent to me. Basically you are just loading the RTI with additional NULL MESSAGE (time creep in NER) for the exact same behaviour as the TAR. I don't see the benefit of this execution scheme. I will have a look on my side on the time-stamping within the algorithm.
I am currently working on the br_dev_distancematrix branch (with HEAD at c692894e30 as of me writing this bug report) and found a difference in behavior in a federation, depending on if the Null Prime Message Protocol is used or not. The test program used spawns 5 federates. Fed0 publishes Object0, Fed1 subscribes to Object0 and publish Object1, etc. Fed0 have a lookahead of 5, Fed1 a lookahead of 4, etc until Fed4 with a lookahead of 1. When using NER without NPMP, the federation executes and finishes. When using NER with NPMP, the execution does not yield a result as it never finishes. Steps to reproduce :
step();
to
stepNER();
$CERTI_HOME/bin/distanceMatrixTesting
5 federates are launched, and after a few seconds the execution completes.
5 federates are launched, but the execution never finishes.
(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)
Attach Files: Comment:
No files currently attached
Depends on the following items: None found
Items that depend on this one: None found
Please enter the title of George Orwell's famous dystopian book (it's a date):
Follow 5 latest changes.
Copyright © 2023 Free Software Foundation, Inc. Verbatim copying and distribution of this entire article is permitted in any medium, provided this notice is preserved. The Levitating, Meditating, Flute-playing Gnu logo is a GNU GPL'ed image provided by the Nevrax Design Team. Source Code
Powered by Savane 3.11