Skip to content

MicroRTI for Python 0.3.0

Latest

Choose a tag to compare

@github-actions github-actions released this 02 Dec 20:42

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, FomUrlReader and the methods set_fom_url_policy, set_fom_url_reader and
    fom_url_reader of EmbeddedRti, with the names of the Rust library: which FOM modules and MIMs named
    by URL an EmbeddedRti reads (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 the with block 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 raise RTIinternalError, 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_counted and evoke_multiple_callbacks_counted, Evoke Callback and Evoke
    Multiple Callbacks (10.57, 10.58) that return an EvokeOutcome: the number of callbacks delivered and
    the pending callback indicator. An extension of MicroRTI.

Changed

  • Depends on microrti-client, microrti-encoding and microrti-fom 0.5.0. The network tests of the CI
    run against the microrti and chat binaries 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). The microrti server 0.5 reads by
    default every file:, http: and https: URL a federate names, wherever it leads; it read none unless
    its operator set fom_url_directory. Its operator restricts it with fom_urls = "none" or
    fom_url_directory. EmbeddedRti reads the same URLs, http: and https: included, and now refuses a
    designator without a scheme (Fleet.xml, /srv/fom/Fleet.xml) with CouldNotOpenFOM
    (CouldNotOpenMIM for a MIM): write file:///srv/fom/Fleet.xml (pathlib.Path.as_uri()), or send the
    content with FomModule.file, which every RTI accepts. A relative file: URL is read only under
    FomUrlPolicy.directory, relative to the directory.
  • Incompatible (microrti server): the saves written by a microrti server 0.4 in its
    save_directory cannot be restored by a server 0.5, which writes a new save format with a checksum:
    Request Federation Restore is answered with request_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; an EmbeddedRti keeps its saves in memory, within the process.
  • EmbeddedRti is 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_callback and evoke_multiple_callbacks given a number of seconds too large to be added to the
    current instant (1.8e19) raised PanicException; 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 above CouldNotOpenFOM; it raised
    CouldNotOpenFOM.