Transports¶
How data and triggers physically move between nodes in the Python SDK (2.40.1): the CompositeDataFlow routing rules, the ROS, MQTT and Zenoh dataflow adapters, the trigger adapters and their topic and payload scheme, the process-wide MQTTHandler singleton, and the cross-SDK wire fixtures that keep Python and C++ nodes interoperable. The node-author view of the same machinery is Dataflow and Triggers; this page is for the platform team and names internals those pages leave out.
Overview¶
flowchart LR
NB["NodeBase<br/>get_data / publish / register_handler<br/>fire_trigger / trigger_next_node"]
subgraph DF["Dataflow (dataflow/)"]
CDF["CompositeDataFlow<br/>per-port routing tables"]
ROS["ROSDataFlowAdapter<br/>rclpy node + spin thread"]
MQ["MQTTDataFlowAdapter<br/>JSON envelope, base64 CDR"]
ZDF["ZenohDataFlowAdapter<br/>raw CDR bytes"]
end
subgraph TR["Triggers (trigger/)"]
MT["MQTTTriggerAdapter<br/>selected by initialize()"]
ZT["ZenohTriggerAdapter<br/>registered, never selected"]
end
MH["MQTTHandler singleton<br/>one paho client per process"]
ZH["ZenohHandler<br/>one session per adapter"]
NB --> CDF
CDF --> ROS --> DDS[(ROS 2 / DDS)]
CDF --> MQ --> MH
NB --> MT --> MH --> B[(MQTT broker)]
ZDF -.-> ZH
ZT -.-> ZH -.-> ZR[(Zenoh router)]
Two factories exist. DataFlowFactory (dataflow/dataflow_factory.py) maps DATA_FLOW_COMMUNICATION_TYPE_ROS, _MQTT and _ZENOH to adapter classes and create_data_flow_adapter() calls init() with {}, service_config.mqtt or service_config.zenoh respectively; create_composite_data_flow(service_config) is what NodeBase.initialize() uses. TriggerFactory (trigger/trigger_factory.py) maps TRIGGER_COMMUNICATION_TYPE_MQTT and _ZENOH; NodeBase.initialize() always asks for MQTT, so the Zenoh trigger adapter is reachable only by constructing it directly.
CompositeDataFlow: routing rules¶
CompositeDataFlow (dataflow/composite_dataflow.py) is the only dataflow a NodeBase ever holds. configure(node_data_flow_entry) splits the DataFlowNodeEntry into one sub-entry per transport in _SUPPORTED (ROS, MQTT, ZENOH) with _split_entry(), creates an adapter only when that transport's sub-entry has at least one port, then builds two routing tables: _output_routing (port name to a list of adapters, fan-out) and _input_routing (port name to exactly one adapter). Live adapters are held in _adapters, keyed by DataFlowCommunicationType, which is what _adapter_for() looks up. The rules, from the code and pinned by specifications/prompts/230-dataflow-routing.md:
| Port | Proto field | Value | Served by |
|---|---|---|---|
| Output | OutputConnection.communicationTypes |
[MQTT] |
MQTTDataFlowAdapter |
| Output | [ROS] |
ROSDataFlowAdapter |
|
| Output | [ZENOH] |
ZenohDataFlowAdapter |
|
| Output | several of them (fan-out) | Each of those adapters; one publish() fans out to all of them, and the port appears in each sub-entry |
|
| Output | [] (unspecified) |
MQTTDataFlowAdapter (default) |
|
| Input | InputConnection.communicationType |
MQTT |
MQTTDataFlowAdapter |
| Input | ROS |
ROSDataFlowAdapter |
|
| Input | ZENOH |
ZenohDataFlowAdapter |
|
| Input | UNSPECIFIED |
MQTTDataFlowAdapter (default) |
DDS is the one enum value with no adapter behind it. _output_comm_types() and _input_comm_type() drop values outside _SUPPORTED, so a port carrying only DDS falls back to _DEFAULT_COMM_TYPE, which is MQTT, exactly like an unspecified one. Until 2.40.1 _adapter_for() returned the ROS adapter for everything that was not MQTT, so a DDS or ZENOH input was served by ROS and an output listing only such a value was in no sub-entry at all and raised DataFlowException("Unknown output target") on publish. That fall-through is what made Zenoh dataflow unreachable through the composite. The defaults exist for legacy graphs that carry no communication type; the engine decides the type per connection (see Dataflow).
_create_adapter() builds one adapter for a transport, calls init() with {}, service_config.mqtt or service_config.zenoh, and calls configure(sub_entry) on it. All three steps are inside one try, which matters: every adapter's init() only stores its config, and it is configure() that creates the rclpy node, takes the MQTTHandler connect reference or opens the Zenoh session, so an unreachable router raises from there and not from the constructor. On failure the exception is logged at error level, the half-built adapter is destroyed through _destroy_adapter() (it may already hold a connect reference, the leak specifications/prompts/160-reconfigure-lifecycle.md pins) and None is returned, so that transport costs its own ports and not the node: it is absent from _adapters, its inputs are left out of _input_routing, and its outputs contribute no adapter to _output_routing, which makes publish() on them raise DataFlowException. The classes are constructed from the module-scope imports rather than through DataFlowFactory, both because the factory imports this module and because the spec suite patches those names on composite_dataflow.
get_data(port) looks up the input routing and returns None when the port is not routed; publish(port, msg) raises on an unknown target, which now includes a port whose only transport failed to build; get_connected_ports(), get_input_topics() and get_output_topics() are _merge() over every live adapter; ros_node reads _adapters[ROS] so NodeBase.get_ros_node() works for composite-backed nodes, and returns None without ROS ports, a Zenoh-only graph included.
Destroy before reconfigure¶
A second configure() on the same composite first destroys every adapter in _adapters (each in its own try, logging a warning that names the transport on failure), clears the dict and clears both routing tables before creating new ones. Without this, every reconfigure leaked one MQTT connect reference and the previous subscriptions into the singleton, so destroy() could never release the broker connection and each incoming message fired the handler once per leaked handle. destroy() itself calls destroy() on whichever adapters exist. The reconfigure scenarios live in specifications/specs/lifecycle/.
register_handler semantics¶
CompositeDataFlow.register_handler(callback, input_name="") has two modes. With a port name, it stores the callback in that port's adapter under adapter.message_handlers[input_name]; when the port is not routed nothing is registered and nothing is reported. Without a port name, it replaces handle_message on every existing adapter, which is the catch-all hook. Both take effect only after configure() created the adapters, which is why authors must register in on_configure() and never earlier or in on_execute().
Delivery order is fixed by IDataFlow._save_data() (dataflow/i_dataflow.py): store the message on the blackboard under the lock, set the port's threading.Event, then call the per-port handler if one exists, otherwise handle_message(input_name, msg, topic_info). Handlers run on the adapter's transport thread with the raw message the adapter stored: a deserialized ROS message for ROS ports, but the raw MQTT JSON string for MQTT ports, because deserialization happens in MQTTDataFlowAdapter.get_data(), not in _save_data().
get_data and the never-cleared event¶
IDataFlow.get_data(placeholder, timeout=1.0):
- A falsy timeout (
0orNone) returns the blackboard value immediately. - No event for the port (never subscribed, or not connected) returns
None. - Otherwise
event.wait(timeout); a timeout returnsNone, else the blackboard value.
The event.clear() that would reset the signal is commented out, so once a port has received one message every later get_data() returns immediately with the last value. CompositeDataFlow.get_data() defaults the timeout to 1 and NodeBase.get_data(port) passes no timeout, so an author's first read on a connected but silent port blocks for one second, then returns None. destroy() in every adapter clears and drops the events and the blackboard. wait_for_message() raises NotImplementedError in the ROS, MQTT and Zenoh adapters; the composite only forwards to them.
ROS adapter¶
ROSDataFlowAdapter (dataflow/ros_dataflow_adapter.py) calls rclpy.init() when needed, creates a node named by _ros_safe_node_name(entry.name, entry.id): the display name with every UTF-8 byte outside [A-Za-z0-9_] replaced by _ and cut to 128 characters, then _<node id>_data_flow (node id is the last segment of entry.id, so names that collide after sanitizing stay distinct), an n_ prefix when the result does not start with a letter, capped at 255 characters. The C++ twin is rosSafeNodeName in utils/RosTopicSanitizer.hpp. Sanitizing is byte-wise, so a non-ASCII character becomes one _ per byte in both SDKs, and for each port resolves the message class with _import_msg_type(rosType) (pkg/msg/Type, /pkg/msg/Type or pkg/Type). Output topics are _ros_safe_topic(f"{entry.id}/{output}"): every segment is coerced to [A-Za-z][A-Za-z0-9_]*, illegal characters become _ and a segment that is empty or starts with a digit gets an n_ prefix, so the engine's node-0/out becomes node_0/out. Subscriptions apply the same sanitization to each sourceConnection topic so publisher and subscriber meet on one name. CompositeDataFlow.configure calls _validate_ros_topics on the ROS sub-entry (C++: validateRosTopics(ros_entry)) before it tears down or creates any adapter, so a failed (re)configure keeps the running dataflow. Names that collide across transports are not checked. For MQTT and Zenoh, configure calls validate_wire_topics (utils/topic_validation.py; C++ utils/TopicValidation.hpp) on each sub-entry in the same place: it raises DataFlowException when an output topic {entry.id}/{output} or an input sourceConnection contains # or + (MQTT) or *, $, ? or # (Zenoh), for example Output '+' maps to MQTT topic 'uuid/node-0/+', which contains reserved character '+'; rename the port. Topic names are not altered. _validate_ros_topics(entry) (C++: validateRosTopics in utils/RosTopicSanitizer.hpp) raises DataFlowException when two output ports sanitize to the same topic (Outputs 'a b' and 'a_b' both map to ROS topic '<topic>'; rename one of them) or when an output topic or an input sourceConnection topic ends in / or contains // (an empty segment, which rcl rejects). Several inputs on one source and a leading / pass. Publishers and subscriptions use queue depth 10.
configure() ends in _init(), which adds the node to a SingleThreadedExecutor and starts the daemon thread ros-dataflow-spin running executor.spin(); subscription callbacks (_save_data, hence author handlers) run inline on that thread. destroy() is bounded: executor.shutdown(timeout_sec=2.0) then join(2.0), because the engine enforces a 10 s deadline on StopNode and the composite tears down ROS before MQTT on the same RPC. If the spin thread is still alive after the join (a callback is blocking), the adapter logs a warning and skips remove_node() / destroy_node(), accepting a bounded leak instead of a deadlock; the daemon thread cannot block process exit.
MQTT dataflow adapter¶
MQTTDataFlowAdapter (dataflow/mqtt_dataflow_adapter.py) serializes every message with ROS2MessageSerializer: rclpy.serialization.serialize_message() to CDR, base64, then the MQTTMessage JSON envelope:
{"msg_type": "/std_msgs/msg/String", "payload": "<base64 CDR bytes>"}
Output topics are {entry.id}/{output} (the wire id, not the name, because names collide across graphs sharing a broker). configure() fetches the MQTTHandler singleton, configures it with service_config.mqtt, takes exactly one connect reference per adapter lifetime (connect(blocking=True, timeout=2.0), failure raises ConnectionError), releases every subscription handle from a previous configure, then subscribes each connected input with qos=1 and a partial(self._save_data, ...) callback; a None handle raises DataFlowException. get_data() parses the envelope and deserializes with the class named in msg_type, logging and returning None on a parse or CDR failure. destroy() releases only this adapter's handles and its one connect reference, so other adapters sharing a topic keep receiving. publish() errors are logged, not raised.
Zenoh dataflow adapter¶
ZenohDataFlowAdapter (dataflow/zenoh_dataflow_adapter.py) publishes raw CDR bytes with no envelope, deserializes with the message class declared for the input port, and uses topics {entry.id}/{output} (the same wire key as MQTT and C++; before 2.50.2 it was {entry.name}, so Python Zenoh outputs never met a sourceConnection subscriber). Output names and sourceConnection topics go through validate_wire_topics with ZENOH_KEY_EXPR. Each adapter owns its own ZenohHandler (see below) opened with connect(blocking=True, timeout=2.0) and closed in destroy(). It is built with service_config.zenoh (ZenohConfig: locator default tcp/zenoh-router:7447, mode default client, plus QoS fields), through DataFlowFactory and, since 2.40.1, through CompositeDataFlow whenever the graph entry carries a Zenoh port. A node whose service_config.yaml has no zenoh: block and a graph that does route a port over Zenoh get the _create_adapter() failure path: the error is logged and that port stays unconnected.
Trigger adapters¶
ITrigger base¶
ITrigger (trigger/i_trigger.py) keeps outgoing ports keyed by port name: _outgoing_triggers[port] = topic and _outgoing_port_types[port] = type string, so two ports of the same type both fire and custom ports are addressable. trigger_next_node(TriggerType) fires every port of that built-in type (raising TriggerFlowException when none exists); fire_trigger(port_name, trigger_context=None) fires one port by name. The payload is trigger_context.model_dump_json() when a context is given and the literal string triggered otherwise; the transport-specific abstract _publish_trigger(topic, payload) -> bool does the send, and a False return is logged as a dropped trigger. set_execute_callback(), set_stop_callback() and set_named_trigger_callbacks({type name: callback}) supply the incoming side.
MQTT trigger adapter¶
MQTTTriggerAdapter (trigger/mqtt_trigger_adapter.py), the adapter NodeBase.initialize() always selects:
| Aspect | Behaviour |
|---|---|
| Connection | init(service_config.mqtt) configures the singleton and calls connect(blocking=True, timeout=10.0); failure raises ConnectionError. configure() reconnects when the adapter holds no connect reference. |
| Output topics | {entry.id}/{port} for every outputTriggers item; the value of the map is the type string. configure() first runs validate_wire_topics with MQTT_TOPIC over the output topics and every sourceConnection, raising TriggerFlowException on # or +. |
| Publish | _publish_trigger() calls MQTTHandler.publish(topic, payload=payload, qos=1). |
| Payload | TriggerContext JSON (source_node, timestamp, err_info) or the legacy marker triggered. |
| Input subscriptions | For each inputTriggers item with a non-empty sourceConnection, the callback is resolved once per port from rosType and subscribed on every source topic; a None handle raises TriggerFlowException. |
| Unconnected custom ports | A declared custom input type with no handler fails configure() even while unconnected, so a missing @trigger_handler surfaces at ConfigureNode rather than when the port is first wired. |
| Reconfigure | Releases every previous subscription handle and clears the outgoing maps before rebuilding, so a reconfigure cannot stack callbacks in the singleton. |
| Destroy | Releases only this adapter's handles and its one connect reference. |
Incoming routing by type string (_get_callback_for_type_name), also pinned by specifications/prompts/220-mqtt-triggers.md:
rosType of the input port |
Callback |
|---|---|
Start, InLoop, BreakLoop, IfTrue, IfFalse, Error |
The execute callback (NodeBase._submit_execute). An incoming Error executes the node; the handler reads trigger_context.is_triggered_by_error(). |
Stop |
The stop callback (NodeBase.stop). |
| Any other string | _named_trigger_callbacks[type]; missing raises TriggerFlowException naming the port and the decorator to add. |
Every callback is wrapped by _wrap_callback(): bytes are decoded as UTF-8, a payload that is empty or equals triggered dispatches callback() with no context, anything else is validated as TriggerContext JSON and passed through, and a ValidationError logs a warning and dispatches without context so a malformed payload never escapes into the paho thread. Handlers therefore run on the paho network thread, concurrently with on_execute(); the execute callback only submits to the node's executor, but Stop and custom handlers run inline.
Zenoh trigger adapter¶
ZenohTriggerAdapter (trigger/zenoh_trigger_adapter.py) mirrors the MQTT adapter's routing, wrapping and unconnected-custom-port validation, with two differences: it publishes through ZenohHandler.publish() with no QoS argument, and its output topics are {entry.id}/{port}, like the C++ adapter, so Zenoh triggers interoperate across SDKs. configure() validates the topics with ZENOH_KEY_EXPR and raises TriggerFlowException. destroy() closes the whole Zenoh session.
Connection handlers¶
MQTTHandler singleton¶
utils/mqtt_singleton.py implements one paho client per process, shared by the MQTT dataflow adapters and the MQTT trigger adapters of every node instance:
__new__returns the single instance;__init__runs once.configure(config)is first-wins: later calls with the same broker host and port are ignored, a different host or port raisesTriggerFlowException. Whenclient_idis empty or the defaultneuraverse_node, it is pinned toneuraverse_<uuid hex>for the process so reconnects keep one identity and two pods never fight over a client id. Paho's own reconnect is configured fromreconnect_delay_min/reconnect_delay_max.connect()is refcounted: the first call runsconnect_async()andloop_start(), later calls only bump the count.disconnect()decrements and only disconnects and stops the loop when the count reaches zero. Each adapter holds at most one reference (_holds_connect_ref).subscribe(topic, callback, qos)returns aSubscriptionhandle (identity-based equality). The broker sees oneSUBSCRIBEper topic, issued on the first local subscriber or when a higher QoS is requested;unsubscribe(handle)is idempotent and only sendsUNSUBSCRIBEwhen the last handle for the topic is released. Subscribing while disconnected records the handle and_on_connectreplays every topic at the highest requested QoS (required becauseclean_session=True)._on_messagedecodes the payload as UTF-8 (a non-UTF-8 payload is dropped with an error), snapshots the subscriber list under the lock and calls every callback, isolating exceptions. This is the in-process fan-out that lets several node instances in one process share one source topic.publish()fails fast withFalsewhen not connected instead of queueing; QoS and retain default toMQTTConfig.qos(1) andMQTTConfig.retain(False).
Both MQTT adapters call wait_for_subscription(handle) before
completing input setup. Readiness follows the broker SUBACK for that request's
message ID, including rejection, cancellation and disconnect. Sharing a topic
shares its acknowledgement without letting cancellation of one handle reject
another. A reconnect invalidates prior acknowledgements and resubscribes.
Trigger setup fails if readiness is not confirmed within ten seconds; dataflow
setup fails that adapter through the composite's existing cleanup path.
The final disconnect() reference schedules a shutdown worker. It disconnects
and joins Paho's loop outside the MQTT state lock, including when native Stop
originated on Paho's callback thread. A following connect() waits for that
worker to finish before starting another loop. Connection waits release the
state lock so callbacks can progress. Failed loop starts and connection timeouts
release their references. This prevents both restart on a terminating loop and
joining a callback that needs the same state lock.
The wire tests hold SUBSCRIBE transmission and network-thread exit behind events to verify configuration readiness and Stop/reconfiguration ordering. Broker-boundary tests cover shared subscriptions, negative or unrelated acknowledgements, disconnect during readiness waits and connection ownership.
ZenohHandler¶
Despite the module name utils/zenoh_singleton.py, ZenohHandler is a plain class: every Zenoh adapter constructs its own session. connect() opens zenoh.open() with mode and connect/endpoints from ZenohConfig; add_topic() (aliased as subscribe()) declares one subscriber per key expression, undeclaring an existing one for the same key first; disconnect() undeclares everything and closes the session. Payloads reach callbacks as raw bytes, which is why the Zenoh trigger adapter decodes before comparing with triggered.
Cross-SDK wire contract¶
The Python and C++ SDKs share one repository and pin their wire behaviour against language-neutral golden fixtures kept in the C++ tree, neuraverse-node-sdk-cpp/tests/fixtures/contract/. Two Python tests read them and skip when the C++ tree is absent:
| Fixture | Python test | What it pins |
|---|---|---|
trigger_context.json |
tests/test_cross_sdk_contract.py |
TriggerContext.model_dump_json() equals the golden with and without err_info, parses back with every field, and the key sets are exactly source_node, timestamp, err_info and err_type, err_msg, transaction_id. The timestamp is naive ISO-8601 with six fractional digits so pydantic and nlohmann agree byte for byte. |
custom_trigger_wire.json |
tests/test_custom_trigger_contract.py |
Firing port TaskInterrupt on entry id 3f2b7c1a-run/node-42 publishes to 3f2b7c1a-run/node-42/TaskInterrupt; the no-context payload is triggered; the with-context payload equals the golden JSON; BUILTIN_TRIGGER_NAMES equals the fixture's closed set; a custom type dispatches to the handler registered under that exact string. |
The directory also holds available_node_registration.json, consul_registration.json, mqtt_envelope_std_msgs_string.json, ros_msg_to_json.json and viz_data_packet.json, which the C++ suite asserts. Regenerate trigger_context.json only for an intentional contract change with tests/contract/generate_trigger_context_fixture.py and bump its version.
The resulting contract for a mixed graph:
| Channel | Topic | Payload |
|---|---|---|
| Data over MQTT | {wire id}/{output port} |
{"msg_type": "/pkg/msg/Type", "payload": "<base64 CDR>"} |
| Data over ROS | sanitized {wire id}/{output port} |
Native ROS 2 message, depth 10 |
| Trigger over MQTT | {wire id}/{trigger port}, QoS 1 |
TriggerContext JSON or triggered |
Specifications and tests¶
- Briefs:
specifications/prompts/220-mqtt-triggers.md(publisher to subscriber wake-up chain, fan-out, type routing),specifications/prompts/230-dataflow-routing.md(composite dispatch rules),specifications/prompts/160-reconfigure-lifecycle.md(destroy-before-reconfigure). - In-process specs:
specifications/specs/mqtt-triggers/(publish and deliver, fan-out,Stoproutes to the stop callback, custom trigger round trip),specifications/specs/dataflow-routing/(MQTT output, ROS output, fan-out, input routing, publish and cache, port introspection, viz background push), run bytests/specs/test_mqtt_triggers_specs.pyandtests/specs/test_dataflow_routing_specs.py. - Unit tests:
tests/test_dataflow.py,tests/test_zenoh_dataflow_adapter.py,tests/test_zenoh_trigger_adapter.py,tests/test_zenoh_singleton.py,tests/test_custom_triggers.py,tests/test_error_trigger.py,tests/test_trigger_context.py.
Related pages¶
- Architecture: where the adapters sit, threads and the execute executor.
- Status and health streams: the other queue-based path out of a node.
- Node-author view: Dataflow, Triggers, Lifecycle and states.
Platform Start ingress¶
NodeService input protobuf message names carry the NodeService prefix to avoid
collisions with the engine API, for example NodeServiceTriggerNodeInputRequest.
RPC method names and field numbers are unchanged.
NodeServiceApi.TriggerNodeInput (entities 2.61.0, SDK 2.45.0) receives an exact
runtime nodeId, declared inputPort, and optional NodeInputTriggerContext.
The engine resolves the logical graph address before this call. Python
trigger_input() on NodeBase and C++ NodeBase::triggerInput are platform entry points,
not node-author hooks. They validate active run, lifecycle and input key.
SDK 2.45.0 resolves Stop to the existing stop path, custom types to their registered
handlers, and other built-ins to the execution queue and generation gates. Cleanup or
Stop invalidates queued work normally; ingress never re-arms a node.
Custom inputs run on a tracked worker separate from ordinary execution, so an executing node can wait for a custom event. Stop also runs independently and closes input admission before its hook finishes. Reconfiguration invalidates queued events and waits for a pending Stop before replacing configuration. Input Stop uses the same 2.x teardown as a wired Stop, cancelling pending callbacks and releasing the target resources. It does not stop other nodes. C++ controller shutdown also drains callbacks before destroying derived node objects. Reinitialization closes the previous run before joining its workers.
The response acknowledges dispatch only. No retry is attached to this RPC. Python
uses the existing JWT interceptor; since SDK 2.47.0 the C++ NodeServiceApi validates
the bearer JWT in every handler, and TLS stays a transport concern. Graph APIs synthesize omitted context from the authenticated
original caller. For direct internal NodeService calls, Python synthesizes its
authenticated caller and UTC time; C++ synthesizes the transport peer endpoint
and UTC time. A peer endpoint is not a user identity. Supplied context never
replaces authentication or audit provenance.
Both SDKs preserve source, timestamp and error information and return structured
reasons for inactive (node_run_inactive), idle (node_idle), error (node_error),
unknown runtime (node_not_configured), unknown/output input (input_port_unknown)
and unsupported type (trigger_variant_unsupported) cases. The engine/proxy
preserve these statuses. SDK 2.45.0 supports Start, the other built-ins and
registered custom handlers through the same input wire contract.
wire_tests/test_start_input.py runs with real gRPC, JWT verification, ROS and MQTT,
outside the ordinary suite's transport mocks. The C++ StartInputWire and
StartInputAdmission tests use a real NodeService endpoint. wire_tests/start_input_server.py
and tests/StartInputServer.cpp provide user-hook observations for the engine's
complete-system lane; they do not inspect or mutate SDK internals. Run them with
candidate entities artifacts and record package hashes and image digests.
Scalar JSON input¶
InjectNodeInputData is an authenticated NodeService entry point. The engine
and proxy preserve graph ownership, caller audit context and structured errors.
The SDK receives an existing runtime node ID, declared input key, rosType and
payloadJson; it never creates a node or starts execution for this operation.
NodeBase.inject_input_data() validates admission and decodes the entire payload
before invoking the configured adapter's receive path. ROS stores the generated
message object, MQTT stores its existing JSON/CDR envelope and Zenoh stores CDR
bytes. Composite routing selects the input's configured adapter. Registered
handlers retain those same representations, and ordinary reads deserialize as
before. All declared inputs now have a slot and wake-up event, including inputs
without a native subscription.
Successful acknowledgement confirms value availability. Input is serialized with node lifecycle changes; cleanup and configuration replace old slots. Validation failures leave the previous value intact. Handler effects after commit cannot be rolled back, so an ambiguous timeout must not cause automatic replay. Explicit caller retries can repeat effects.
SDK 2.45.0 extends decoding to nested messages and arrays through ROS
introspection. No schema is installed at runtime and no visualization decoder is
used. ros-json-v1 describes the complete JSON format; the engine also retains
ros-json-scalars-v1 for older relays. A capability advertises engine routing;
every target node still needs an SDK that supports its requested message shape.
Both SDKs required entities 2.61.0 from that release; the current pin is 2.69.0. Shared scalar and compound fixtures cover
numeric limits, generated defaults, fixed/bounded arrays, binary integers,
custom installed messages and field-path errors. A complete candidate message
is validated before the existing adapter receives any value.