Skip to content

Releases

MicroRTI for Python 0.3.0

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.

MicroRTI for Python 0.2.1

Choose a tag to compare

@github-actions github-actions released this 02 Dec 13:34

On top of the MicroRTI Rust crates 0.4.1 (they were 0.3.0). The Python API is the same; what changes
comes from the crates, whose changelog says more.

Changed

  • Depends on microrti-client, microrti-encoding and microrti-fom 0.4.1. The network tests of the CI
    run against the microrti and chat binaries of MicroRTI v0.4.1.
  • The microrti server, from 0.4.0 on, no longer reads a FOM module or MIM named by URL or path on its
    host unless its operator sets fom_url_directory: FomModule.url then raises CouldNotOpenFOM (or
    CouldNotOpenMIM). FomModule.file and a plain path send the content of a local file and are not
    affected. An EmbeddedRti still reads every URL it is given.

Fixed

  • A service invoked while not connected raises NotConnected without reading its FOM module or MIM files
    (a file that could not be read raised CouldNotOpenFOM or CouldNotOpenMIM first), and Join
    Federation Execution invoked from a callback raises CallNotAllowedFromWithinCallback before reading
    them (IEEE 1516.1-2025, 1.6, 4.11, 12.8).
  • Over the network, a call made at the very moment the session ends now always returns, with the reason
    the session ended; it could wait for ever.
  • Connect over the network fails when the RTI grants the session with an invalid sequence number in the
    header of CTRL_NEW_SESSION_STATUS (IEEE 1516.1-2025, 12.13.4.6); it was accepted.
  • EmbeddedRti is the RTI of MicroRTI 0.4.1: a pending Enable Time Regulation is honoured as soon as the
    time-constrained federate that held it back invokes Disable Time Constrained (8.2); an update due when
    its time-regulating sender resigns is delivered before Initiate Federate Save (4.19); a FOM module named
    by a path to a named pipe or a device raises ErrorReadingFOM instead of blocking the RTI; a damaged
    save whose FDD differs from the one of the federation execution is not restored; with Delay
    Subscription Evaluation enabled, the MOM interactions and updates are evaluated when they are
    delivered (8.1.8); a federate that becomes time-regulating after a time-constrained federate was
    instructed to save at a time cannot send it anything up to that time (4.19).

MicroRTI for Python 0.2.0

Choose a tag to compare

@github-actions github-actions released this 01 Dec 20:41

On top of the MicroRTI Rust crates 0.3.0 (they were 0.1.1). The Python API is the same; what changes
comes from the crates, whose changelog says more.

Added

  • The first release on GitHub: wheels for Linux (manylinux_2_28 and musllinux_1_2, x86_64 and
    aarch64) and the source distribution, with their SHA-256. Nothing is published on PyPI; the README says
    how to install from the release.

Changed

  • Depends on microrti-client, microrti-encoding and microrti-fom 0.3.0. The network tests of the CI
    run against the microrti and chat binaries of MicroRTI v0.3.0.
  • Connect: the ConfigurationResult is completed with what the federate side did with the configuration
    (IEEE 1516.1-2025 4.2). Over the Federate Protocol, address_used is True when the link reached the
    RTI at the address given, and the FED_* and TLS_* settings it applied give SETTINGS_APPLIED and
    are named in message. An ambassador of an EmbeddedRti names them as without effect, and
    address_used is True when the scheme registered with EmbeddedRti.register chose the RTI.
  • Connect: an unknown FED_* or TLS_* key or a value that cannot be read no longer raises
    ConnectionFailed: the connection is made and the result is SETTINGS_FAILED_TO_PARSE, with the line
    and the reason in message. Over tls:// and wss://, a TLS_* line the federate side cannot use
    still raises ConnectionFailed, naming the line: it may be the trust anchors written wrong (a
    deliberate deviation of MicroRTI from 4.2).
  • Over the network, a response of the RTI larger than the federate's message size limit raises
    RTIinternalError and the session goes on; the microrti RTI 0.3.0 answers a request larger than its
    own limit (a Create Federation Execution with large FOM modules, for instance) the same way. Both ended
    the session before. A callback larger than the federate's limit still ends it.
  • EmbeddedRti is the RTI of MicroRTI 0.3.0. When the FOM modules leave the automatic resign directive
    unspecified, it is now CancelThenDeleteThenDivest (IEEE 1516.2-2025 4.13.3; it was No Action): the
    object instances of a lost federate are deleted. FOM modules are checked against more rules of
    IEEE 1516.2-2025 and merged as its clause 7 requires (more InvalidFOM and InconsistentFOM). An empty
    logical time implementation name at Create Federation Execution means HLAfloat64Time (4.5.1). A
    time-constrained federate receives a message stamped with its GALT once no other federate can still
    send with that timestamp (8.8, 8.9), and the other corrections of time management of MicroRTI 0.1.2.
  • microrti.encoding: the codec of a FOM resolves the basic data representations it defines of any size
    up to 1024 bits, with the octet boundary of IEEE 1516.2-2025 4.14.10: up to 64 bits they are an int
    (only 8, 16, 32 and 64 bits were; the others were bytes that took the rest of the input). A
    discriminant of an HLAvariantRecord that no alternative applies to is encoded and decoded alone
    (a Variant without value; it was refused). HLAextendableVariantRecord always writes the padding
    after its length (4.14.10.3), which changes the encoding of a record whose discriminant has more than
    four octets and that carries no alternative (16 octets, not 12), and its length is signed.