Repository navigation
On top of the MicroRTI Rust crates 0.5.0 (they were 0.4.1), whose changelog says more. Two changes may
break a federate: FOM modules named by URL, and the federation saves of a microrti server 0.4.
Added
FomUrlPolicy,FomUrlReaderand the methodsset_fom_url_policy,set_fom_url_readerand
fom_url_readerofEmbeddedRti, with the names of the Rust library: which FOM modules and MIMs named
by URL anEmbeddedRtireads (FomUrlPolicy.unrestricted(), the default,.refused(),
.directory(path)) and the time limit for all the modules of one Create or Join Federation Execution
(FomUrlReader().with_timeout(seconds), 30 seconds by default).RtiAmbassador.close(), and thewithblock that invokes it at its end: the connection ends without
Disconnect, whatever the state of the federate; a federate still joined is resigned by the RTI with its
automatic resign directive, as a lost federate (IEEE 1516.1-2025, 4.1.6). It never fails, does nothing
when not connected and, unlike Disconnect, may be invoked inside a callback. An extension of MicroRTI.RtiAmbassador.with_call_timeout(seconds), another handle of the same ambassador whose services wait at
most that long for the RTI, then raiseRTIinternalError, recognized by the new function
microrti.is_call_timeout;call_timeout()reads the limit. The RTI may still carry out a service
given up. An extension of MicroRTI.RtiAmbassador.evoke_callback_countedandevoke_multiple_callbacks_counted, Evoke Callback and Evoke
Multiple Callbacks (10.57, 10.58) that return anEvokeOutcome: the number of callbacks delivered and
the pending callback indicator. An extension of MicroRTI.
Changed
- Depends on
microrti-client,microrti-encodingandmicrorti-fom0.5.0. The network tests of the CI
run against themicrortiandchatbinaries of MicroRTI v0.5.0. The enumerations are converted by
their numbers in the Rust client (to_i32,TryFrom<i32>); the Python classes do not change. - Incompatible: FOM modules and MIMs named by URL (
FomModule.url). Themicrortiserver 0.5 reads by
default everyfile:,http:andhttps:URL a federate names, wherever it leads; it read none unless
its operator setfom_url_directory. Its operator restricts it withfom_urls = "none"or
fom_url_directory.EmbeddedRtireads the same URLs,http:andhttps:included, and now refuses a
designator without a scheme (Fleet.xml,/srv/fom/Fleet.xml) withCouldNotOpenFOM
(CouldNotOpenMIMfor a MIM): writefile:///srv/fom/Fleet.xml(pathlib.Path.as_uri()), or send the
content withFomModule.file, which every RTI accepts. A relativefile:URL is read only under
FomUrlPolicy.directory, relative to the directory. - Incompatible (
micrortiserver): the saves written by amicrortiserver 0.4 in its
save_directorycannot be restored by a server 0.5, which writes a new save format with a checksum:
Request Federation Restore is answered withrequest_federation_restore_failed(4.28), and the server
logs the reason. A save damaged after it was written is refused the same way. Nothing changes for a
federate otherwise; anEmbeddedRtikeeps its saves in memory, within the process. EmbeddedRtiis the RTI of MicroRTI 0.5.0. A module named by URL is read without holding the RTI, the
other federates go on: at most 64 URLs, 8 MiB each and 16 MiB in all for one Create or Join Federation
Execution, within its time limit. A FOM module or MIM with more than 1 048 576<or=raises
ErrorReadingFOM(ErrorReadingMIM) before it is parsed.
Fixed
evoke_callbackandevoke_multiple_callbacksgiven a number of seconds too large to be added to the
current instant (1.8e19) raisedPanicException; they wait without end, until a callback comes (or
Ctrl-C).- Create Federation Execution with a MIM and a FOM module that both cannot be read raises
CouldNotOpenMIM, which IEEE 1516.1-2025 4.5.5 ranks aboveCouldNotOpenFOM; it raised
CouldNotOpenFOM.