rosotacom-dev 2.5.dev50__py3-none-any.whl → 2.5.dev52__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- rosotacom/benchmark.py +12 -2
- rosotacom/cli.py +89 -40
- rosotacom/cli_benchmark.py +80 -28
- rosotacom/resources/examples/sessions/4_comp_occ_grid_zen/session-definition.yaml +3 -0
- rosotacom/resources/examples/sessions/6_sized_payload_zen/session-definition.yaml +3 -0
- rosotacom/resources/ws/ota_configs/fastdds_easy_mode.xml.template +49 -0
- rosotacom/resources/ws/ota_configs/fastdds_tuned.xml.template +154 -0
- rosotacom/resources/ws/ros2src/com_py/com_py/base_bridge_relay.py +9 -2
- rosotacom/resources/ws/ros2src/com_py/com_py/pub_sub_pair.py +19 -7
- rosotacom/resources/ws/ros2src/com_py/com_py/qos.py +24 -0
- rosotacom/resources/ws/session/content/base/session_plugin_base.yaml +21 -3
- rosotacom/resources/ws/session/creation/generate_session_files.py +84 -7
- rosotacom/transit.py +20 -2
- {rosotacom_dev-2.5.dev50.dist-info → rosotacom_dev-2.5.dev52.dist-info}/METADATA +8 -1
- {rosotacom_dev-2.5.dev50.dist-info → rosotacom_dev-2.5.dev52.dist-info}/RECORD +19 -17
- {rosotacom_dev-2.5.dev50.dist-info → rosotacom_dev-2.5.dev52.dist-info}/WHEEL +0 -0
- {rosotacom_dev-2.5.dev50.dist-info → rosotacom_dev-2.5.dev52.dist-info}/entry_points.txt +0 -0
- {rosotacom_dev-2.5.dev50.dist-info → rosotacom_dev-2.5.dev52.dist-info}/licenses/LICENSE.txt +0 -0
- {rosotacom_dev-2.5.dev50.dist-info → rosotacom_dev-2.5.dev52.dist-info}/top_level.txt +0 -0
rosotacom/benchmark.py
CHANGED
|
@@ -191,9 +191,19 @@ def oracle_passes(loss_pct: float, latency_ms: float | None, thresholds: OracleT
|
|
|
191
191
|
return loss_pct <= thresholds.max_loss_pct and latency_ms <= thresholds.max_latency_ms
|
|
192
192
|
|
|
193
193
|
|
|
194
|
+
def _oracle_loss_pct(value: Any) -> float:
|
|
195
|
+
"""A topic's loss for an oracle, with "unknown" read as the worst case.
|
|
196
|
+
|
|
197
|
+
`summarize_transit_records` reports `None` when no receiving peer accounted
|
|
198
|
+
for the topic at all. That is not zero loss; it is no evidence, and an
|
|
199
|
+
oracle that let it pass would turn a dead link into a green run.
|
|
200
|
+
"""
|
|
201
|
+
return 100.0 if value is None else float(value)
|
|
202
|
+
|
|
203
|
+
|
|
194
204
|
def oracle_passes_topic(topic_summary: dict[str, Any], thresholds: OracleThresholds) -> bool:
|
|
195
205
|
"""Apply the oracle to one topic of ``transit.summarize_transit_records`` output."""
|
|
196
|
-
loss_pct =
|
|
206
|
+
loss_pct = _oracle_loss_pct(topic_summary.get("loss_pct", 100.0))
|
|
197
207
|
latency = (topic_summary.get("ota_hop_ms") or {}).get(thresholds.latency_quantile)
|
|
198
208
|
return oracle_passes(loss_pct, None if latency is None else float(latency), thresholds)
|
|
199
209
|
|
|
@@ -323,7 +333,7 @@ def evaluate_bag_run(
|
|
|
323
333
|
lost = data.get("lost")
|
|
324
334
|
reordered = data.get("reordered")
|
|
325
335
|
run_expected = data.get("expected")
|
|
326
|
-
loss_pct =
|
|
336
|
+
loss_pct = _oracle_loss_pct(data.get("loss_pct", 100.0)) if data else 100.0
|
|
327
337
|
latency_p95 = (data.get("ota_hop_ms") or {}).get(quantile) if data else None
|
|
328
338
|
jitter_p95 = (data.get("jitter_ms") or {}).get("p95") if data else None
|
|
329
339
|
latency_val = None if latency_p95 is None else float(latency_p95)
|
rosotacom/cli.py
CHANGED
|
@@ -3668,8 +3668,18 @@ def _ota_extract_peer_artifacts(instance: SessionInstance, peer: OtaSmokePeer, e
|
|
|
3668
3668
|
extracted = archive.extractfile(member)
|
|
3669
3669
|
if extracted is None:
|
|
3670
3670
|
continue
|
|
3671
|
+
# A peer's own `.session_readonly.yaml` is written 0400 on purpose
|
|
3672
|
+
# ("generated, do not edit"), and a peer that runs on the orchestrator
|
|
3673
|
+
# collects into the very directory it wrote. Replacing the file rather
|
|
3674
|
+
# than opening it for writing keeps both true: the copy lands, and the
|
|
3675
|
+
# mode the peer chose travels with it.
|
|
3676
|
+
if target.exists():
|
|
3677
|
+
target.unlink()
|
|
3671
3678
|
with extracted, target.open("wb") as handle:
|
|
3672
3679
|
shutil.copyfileobj(extracted, handle)
|
|
3680
|
+
mode = member.mode & 0o7777
|
|
3681
|
+
if mode:
|
|
3682
|
+
target.chmod(mode)
|
|
3673
3683
|
except tarfile.TarError:
|
|
3674
3684
|
print(f"OTA smoke: could not unpack collected artifacts from peer {peer.name}", file=sys.stderr)
|
|
3675
3685
|
|
|
@@ -6323,6 +6333,33 @@ def _smoke_publish_rate(expect: Any) -> float:
|
|
|
6323
6333
|
return 5.0
|
|
6324
6334
|
|
|
6325
6335
|
|
|
6336
|
+
#: What a `com_msgs/msg/SizedPayload` smoke stream carries when the session does
|
|
6337
|
+
#: not say. Big enough to fragment on any real link, which is what the packaged
|
|
6338
|
+
#: examples want to exercise.
|
|
6339
|
+
SMOKE_SIZED_PAYLOAD_BYTES = 66000
|
|
6340
|
+
|
|
6341
|
+
|
|
6342
|
+
def _smoke_native_payload_bytes(expect: Any, msg_type: str | None) -> int | None:
|
|
6343
|
+
"""How large the synthetic source's `SizedPayload` messages should be.
|
|
6344
|
+
|
|
6345
|
+
The size is a property of the load a session wants driven, not of the smoke
|
|
6346
|
+
driver, so a session may declare `expect.smoke_native_bytes` — the size
|
|
6347
|
+
sibling of `smoke_native_hz`. Comparing two OTA middlewares means holding
|
|
6348
|
+
the payload at a chosen size (a 38 kB camera keyframe, say) rather than at
|
|
6349
|
+
whatever constant the driver happens to carry.
|
|
6350
|
+
"""
|
|
6351
|
+
if msg_type != "com_msgs/msg/SizedPayload":
|
|
6352
|
+
return None
|
|
6353
|
+
if isinstance(expect, dict):
|
|
6354
|
+
declared = expect.get("smoke_native_bytes")
|
|
6355
|
+
if declared is not None:
|
|
6356
|
+
size = int(declared)
|
|
6357
|
+
if size <= 0:
|
|
6358
|
+
raise RuntimeError("expect.smoke_native_bytes must be a positive number of bytes.")
|
|
6359
|
+
return size
|
|
6360
|
+
return SMOKE_SIZED_PAYLOAD_BYTES
|
|
6361
|
+
|
|
6362
|
+
|
|
6326
6363
|
def _smoke_native_publish_rate(expect: Any) -> float:
|
|
6327
6364
|
"""The rate the synthetic source should publish the NATIVE topic at.
|
|
6328
6365
|
|
|
@@ -6529,7 +6566,7 @@ def _received_crossed_topics(cfg: dict[str, Any], receiver_peer_key: str) -> lis
|
|
|
6529
6566
|
hz_min=expect_hz_min,
|
|
6530
6567
|
hz_max=expect_hz_max,
|
|
6531
6568
|
max_delay_s=expect_max_delay_s,
|
|
6532
|
-
expected_size=
|
|
6569
|
+
expected_size=_smoke_native_payload_bytes(entry.expect, entry.msg_type),
|
|
6533
6570
|
publish_qos=_smoke_publish_qos(entry.qos),
|
|
6534
6571
|
),
|
|
6535
6572
|
]
|
|
@@ -6752,7 +6789,7 @@ def _smoke_topic_pub_qos_args(qos: dict[str, Any] | None) -> str:
|
|
|
6752
6789
|
def _smoke_publisher_command(spec: SmokeTopicSpec, ros_setup: str, duration: float) -> str:
|
|
6753
6790
|
assert spec.publish_topic is not None and spec.publish_type is not None
|
|
6754
6791
|
if spec.publish_type == "com_msgs/msg/SizedPayload":
|
|
6755
|
-
size = spec.expected_size or
|
|
6792
|
+
size = spec.expected_size or SMOKE_SIZED_PAYLOAD_BYTES
|
|
6756
6793
|
return (
|
|
6757
6794
|
f"{ros_setup} && timeout {duration} ros2 run com_py sized_publisher --ros-args "
|
|
6758
6795
|
f"-p topic:={shlex.quote(spec.publish_topic)} -p size:={size} -p rate:={spec.publish_rate}"
|
|
@@ -8550,6 +8587,55 @@ def _add_peer_arg(parser: argparse.ArgumentParser) -> None:
|
|
|
8550
8587
|
cast(Any, action).completer = _peer_host_completer
|
|
8551
8588
|
|
|
8552
8589
|
|
|
8590
|
+
def _add_ota_install_args(parser: argparse.ArgumentParser) -> None:
|
|
8591
|
+
"""How the peers get rosotacom, and how they are reached.
|
|
8592
|
+
|
|
8593
|
+
Shared by `ota-smoke` and every OTA benchmark genre. They were only on
|
|
8594
|
+
`ota-smoke` while the benchmarks were something an operator ran with an ssh
|
|
8595
|
+
key in hand; a run driven by a narrower transport needs the same four
|
|
8596
|
+
options wherever it starts, or the measurement is the one thing that still
|
|
8597
|
+
demands a shell on the peer.
|
|
8598
|
+
"""
|
|
8599
|
+
parser.add_argument(
|
|
8600
|
+
"--peer-checkout",
|
|
8601
|
+
action="append",
|
|
8602
|
+
default=[],
|
|
8603
|
+
metavar="PEER=PATH",
|
|
8604
|
+
help=(
|
|
8605
|
+
"Absolute path of a peer's project checkout, for --install-mode checkout. "
|
|
8606
|
+
"Required for every peer in that mode; the same repository is at a different path on each machine."
|
|
8607
|
+
),
|
|
8608
|
+
)
|
|
8609
|
+
parser.add_argument(
|
|
8610
|
+
"--peer-exec",
|
|
8611
|
+
action="append",
|
|
8612
|
+
default=[],
|
|
8613
|
+
metavar="PEER=COMMAND",
|
|
8614
|
+
help=(
|
|
8615
|
+
"Run this peer's commands through COMMAND instead of ssh; the script is appended as the final "
|
|
8616
|
+
"argument, the same contract ssh has. For --install-mode checkout only, and mutually exclusive "
|
|
8617
|
+
"with --peer-ssh for the same peer. Use it to put a peer behind a transport narrower than a "
|
|
8618
|
+
"shell, such as a forced command that accepts only this project's own commands."
|
|
8619
|
+
),
|
|
8620
|
+
)
|
|
8621
|
+
parser.add_argument(
|
|
8622
|
+
"--install-mode",
|
|
8623
|
+
choices=list(OTA_INSTALL_MODES),
|
|
8624
|
+
default="source",
|
|
8625
|
+
help=(
|
|
8626
|
+
"How the peers get rosotacom. 'source' (default) stages and installs what you are running — "
|
|
8627
|
+
"right while iterating on rosotacom. 'pin' installs a published release from the index, so the "
|
|
8628
|
+
"peers run the artefact that ships — right when rehearsing a deployment. 'checkout' stages and "
|
|
8629
|
+
"installs nothing: each peer uses its own installed rosotacom and its own project checkout "
|
|
8630
|
+
"(see --peer-checkout), so the run tests the machines as git left them."
|
|
8631
|
+
),
|
|
8632
|
+
)
|
|
8633
|
+
parser.add_argument(
|
|
8634
|
+
"--install-pin",
|
|
8635
|
+
help="Version for --install-mode pin (default: the version of the rosotacom you are running).",
|
|
8636
|
+
)
|
|
8637
|
+
|
|
8638
|
+
|
|
8553
8639
|
def _add_peer_ssh_arg(parser: argparse.ArgumentParser) -> None:
|
|
8554
8640
|
action = parser.add_argument(
|
|
8555
8641
|
"--peer-ssh",
|
|
@@ -9109,28 +9195,7 @@ def main(argv: list[str] | None = None) -> int:
|
|
|
9109
9195
|
_add_peer_arg(ota_smoke_parser)
|
|
9110
9196
|
_add_peer_address_arg(ota_smoke_parser)
|
|
9111
9197
|
_add_peer_ssh_arg(ota_smoke_parser)
|
|
9112
|
-
ota_smoke_parser
|
|
9113
|
-
"--peer-checkout",
|
|
9114
|
-
action="append",
|
|
9115
|
-
default=[],
|
|
9116
|
-
metavar="PEER=PATH",
|
|
9117
|
-
help=(
|
|
9118
|
-
"Absolute path of a peer's project checkout, for --install-mode checkout. "
|
|
9119
|
-
"Required for every peer in that mode; the same repository is at a different path on each machine."
|
|
9120
|
-
),
|
|
9121
|
-
)
|
|
9122
|
-
ota_smoke_parser.add_argument(
|
|
9123
|
-
"--peer-exec",
|
|
9124
|
-
action="append",
|
|
9125
|
-
default=[],
|
|
9126
|
-
metavar="PEER=COMMAND",
|
|
9127
|
-
help=(
|
|
9128
|
-
"Run this peer's commands through COMMAND instead of ssh; the script is appended as the final "
|
|
9129
|
-
"argument, the same contract ssh has. For --install-mode checkout only, and mutually exclusive "
|
|
9130
|
-
"with --peer-ssh for the same peer. Use it to put a peer behind a transport narrower than a "
|
|
9131
|
-
"shell, such as a forced command that accepts only this project's own commands."
|
|
9132
|
-
),
|
|
9133
|
-
)
|
|
9198
|
+
_add_ota_install_args(ota_smoke_parser)
|
|
9134
9199
|
ota_smoke_parser.add_argument("--target-type", choices=["auto", "session", "scenario"], default="auto")
|
|
9135
9200
|
ota_smoke_parser.add_argument("--interactive", action="store_true", help="Open a local control tmux UI.")
|
|
9136
9201
|
ota_smoke_parser.add_argument("--stop", action="store_true", help="Stop an OTA smoke run.")
|
|
@@ -9147,22 +9212,6 @@ def main(argv: list[str] | None = None) -> int:
|
|
|
9147
9212
|
action="store_true",
|
|
9148
9213
|
help="Reuse an already installed rosotacom source tree in the workdir.",
|
|
9149
9214
|
)
|
|
9150
|
-
ota_smoke_parser.add_argument(
|
|
9151
|
-
"--install-mode",
|
|
9152
|
-
choices=list(OTA_INSTALL_MODES),
|
|
9153
|
-
default="source",
|
|
9154
|
-
help=(
|
|
9155
|
-
"How the peers get rosotacom. 'source' (default) stages and installs what you are running — "
|
|
9156
|
-
"right while iterating on rosotacom. 'pin' installs a published release from the index, so the "
|
|
9157
|
-
"peers run the artefact that ships — right when rehearsing a deployment. 'checkout' stages and "
|
|
9158
|
-
"installs nothing: each peer uses its own installed rosotacom and its own project checkout "
|
|
9159
|
-
"(see --peer-checkout), so the run tests the machines as git left them."
|
|
9160
|
-
),
|
|
9161
|
-
)
|
|
9162
|
-
ota_smoke_parser.add_argument(
|
|
9163
|
-
"--install-pin",
|
|
9164
|
-
help="Version for --install-mode pin (default: the version of the rosotacom you are running).",
|
|
9165
|
-
)
|
|
9166
9215
|
ota_smoke_parser.add_argument(
|
|
9167
9216
|
"--keep-workdir",
|
|
9168
9217
|
action="store_true",
|
rosotacom/cli_benchmark.py
CHANGED
|
@@ -608,6 +608,46 @@ def _profile_context(profile: str | None, profiles_file: Path | None) -> dict[st
|
|
|
608
608
|
return cast(dict[str, Any], _jsonable(context))
|
|
609
609
|
|
|
610
610
|
|
|
611
|
+
def _benchmark_probe_load(args: argparse.Namespace) -> dict[str, Any]:
|
|
612
|
+
"""The load a probe drives, whether it is synthetic or a replay target."""
|
|
613
|
+
if _uses_explicit_ota_target(args):
|
|
614
|
+
return {
|
|
615
|
+
"driven_by": {
|
|
616
|
+
"target": str(args.target),
|
|
617
|
+
"target_type": str(getattr(args, "target_type", None) or "auto"),
|
|
618
|
+
}
|
|
619
|
+
}
|
|
620
|
+
return _probe_load(
|
|
621
|
+
size=getattr(args, "size", 18_000),
|
|
622
|
+
size_pattern=getattr(args, "size_pattern", None),
|
|
623
|
+
rate_hz=getattr(args, "rate_hz", 20.0),
|
|
624
|
+
streams=getattr(args, "streams", 1),
|
|
625
|
+
interval_jitter_ms=getattr(args, "interval_jitter_ms", 0.0),
|
|
626
|
+
interval_jitter_seed=getattr(args, "interval_jitter_seed", 42),
|
|
627
|
+
)
|
|
628
|
+
|
|
629
|
+
|
|
630
|
+
def _benchmark_session_context(args: argparse.Namespace, session_name: str, run_dir: Path) -> dict[str, Any]:
|
|
631
|
+
"""The session a genre drives, and whether this run had to prepare it.
|
|
632
|
+
|
|
633
|
+
A genre normally drives its own packaged session and pins `shared.rmw` into
|
|
634
|
+
a copy of it. With an explicit OTA `--target` the load is somebody else's
|
|
635
|
+
session, running from each peer's own project — nothing is copied and
|
|
636
|
+
nothing is rewritten, so recording a prepared genre session here would
|
|
637
|
+
describe a file the run never used.
|
|
638
|
+
"""
|
|
639
|
+
if _uses_explicit_ota_target(args):
|
|
640
|
+
return {
|
|
641
|
+
"name": session_name,
|
|
642
|
+
"prepared": False,
|
|
643
|
+
"target_override": {
|
|
644
|
+
"target": str(args.target),
|
|
645
|
+
"target_type": str(getattr(args, "target_type", None) or "auto"),
|
|
646
|
+
},
|
|
647
|
+
}
|
|
648
|
+
return _prepare_benchmark_session_config(args, session_name, run_dir)
|
|
649
|
+
|
|
650
|
+
|
|
611
651
|
def _benchmark_result_context(
|
|
612
652
|
args: argparse.Namespace,
|
|
613
653
|
*,
|
|
@@ -673,6 +713,25 @@ def _mean_payload_bytes(load: dict[str, Any]) -> float | None:
|
|
|
673
713
|
|
|
674
714
|
|
|
675
715
|
def _load_context(load: dict[str, Any]) -> dict[str, Any]:
|
|
716
|
+
driven_by = load.get("driven_by")
|
|
717
|
+
if driven_by is not None:
|
|
718
|
+
# An explicit OTA `--target` brings its own publishers, so `--size` /
|
|
719
|
+
# `--rate-hz` describe nothing that ran. Recording them anyway is worse
|
|
720
|
+
# than recording nothing: a figure would carry an offered bandwidth the
|
|
721
|
+
# link never saw.
|
|
722
|
+
return cast(
|
|
723
|
+
dict[str, Any],
|
|
724
|
+
_jsonable(
|
|
725
|
+
{
|
|
726
|
+
"driven_by": driven_by,
|
|
727
|
+
"parameters": None,
|
|
728
|
+
"rate_hz": None,
|
|
729
|
+
"streams": None,
|
|
730
|
+
"mean_payload_bytes": None,
|
|
731
|
+
"offered_bandwidth_bps": None,
|
|
732
|
+
}
|
|
733
|
+
),
|
|
734
|
+
)
|
|
676
735
|
rate_hz = float(load.get("rate", load.get("rate_hz", 0.0)) or 0.0)
|
|
677
736
|
streams = int(load.get("streams", 1) or 1)
|
|
678
737
|
mean_payload_bytes = _mean_payload_bytes(load)
|
|
@@ -4936,6 +4995,7 @@ def _add_benchmark_common_args(parser: argparse.ArgumentParser, *, ota_benchmark
|
|
|
4936
4995
|
OTA_DEFAULT_SUDO_MODE,
|
|
4937
4996
|
OTA_SUDO_MODES,
|
|
4938
4997
|
_add_common_config_args,
|
|
4998
|
+
_add_ota_install_args,
|
|
4939
4999
|
_add_peer_address_arg,
|
|
4940
5000
|
_add_peer_arg,
|
|
4941
5001
|
_add_peer_ssh_arg,
|
|
@@ -4945,6 +5005,11 @@ def _add_benchmark_common_args(parser: argparse.ArgumentParser, *, ota_benchmark
|
|
|
4945
5005
|
_add_peer_arg(parser)
|
|
4946
5006
|
_add_peer_ssh_arg(parser)
|
|
4947
5007
|
_add_peer_address_arg(parser)
|
|
5008
|
+
if ota_benchmark:
|
|
5009
|
+
# Same four options as `ota-smoke`: a measurement run has to be able to
|
|
5010
|
+
# reach a peer the same ways a smoke run can, including a transport that
|
|
5011
|
+
# is narrower than a shell.
|
|
5012
|
+
_add_ota_install_args(parser)
|
|
4948
5013
|
parser.add_argument("--skip-preflight", action="store_true", help="Skip SSH/Docker readiness checks.")
|
|
4949
5014
|
parser.add_argument("--keep-workdir", action="store_true", help="Keep temporary checkout directories.")
|
|
4950
5015
|
parser.add_argument("--dry-run", action="store_true", help="Show commands but do not run them.")
|
|
@@ -5148,6 +5213,10 @@ def _make_live_run_point(args: argparse.Namespace, session_name: str) -> RunPoin
|
|
|
5148
5213
|
peer=getattr(args, "peer", None),
|
|
5149
5214
|
peer_address=getattr(args, "peer_address", None),
|
|
5150
5215
|
peer_ssh=getattr(args, "peer_ssh", None),
|
|
5216
|
+
peer_checkout=getattr(args, "peer_checkout", None),
|
|
5217
|
+
peer_exec=getattr(args, "peer_exec", None),
|
|
5218
|
+
install_mode=getattr(args, "install_mode", None),
|
|
5219
|
+
install_pin=getattr(args, "install_pin", None),
|
|
5151
5220
|
workdir=getattr(args, "workdir", None),
|
|
5152
5221
|
reuse=getattr(args, "reuse", False),
|
|
5153
5222
|
skip_preflight=getattr(args, "skip_preflight", False),
|
|
@@ -5655,7 +5724,7 @@ def benchmark_probe(args: argparse.Namespace) -> int:
|
|
|
5655
5724
|
artifacts_dir = Path(args.artifacts_dir) if getattr(args, "artifacts_dir", None) else runtime.benchmarks_dir
|
|
5656
5725
|
|
|
5657
5726
|
run_dir = _setup_benchmark_run_dir(args, "probe", args.profile)
|
|
5658
|
-
session_context =
|
|
5727
|
+
session_context = _benchmark_session_context(args, "bench_1_1_capacity", run_dir)
|
|
5659
5728
|
result_context = _benchmark_result_context(
|
|
5660
5729
|
args,
|
|
5661
5730
|
genre="probe",
|
|
@@ -5663,14 +5732,7 @@ def benchmark_probe(args: argparse.Namespace) -> int:
|
|
|
5663
5732
|
run_dir=run_dir,
|
|
5664
5733
|
session=session_context,
|
|
5665
5734
|
)
|
|
5666
|
-
probe_load =
|
|
5667
|
-
size=getattr(args, "size", 18_000),
|
|
5668
|
-
size_pattern=getattr(args, "size_pattern", None),
|
|
5669
|
-
rate_hz=getattr(args, "rate_hz", 20.0),
|
|
5670
|
-
streams=getattr(args, "streams", 1),
|
|
5671
|
-
interval_jitter_ms=getattr(args, "interval_jitter_ms", 0.0),
|
|
5672
|
-
interval_jitter_seed=getattr(args, "interval_jitter_seed", 42),
|
|
5673
|
-
)
|
|
5735
|
+
probe_load = _benchmark_probe_load(args)
|
|
5674
5736
|
_attach_benchmark_diagnostics(
|
|
5675
5737
|
result_context,
|
|
5676
5738
|
spdp=_probe_spdp_diagnostics(
|
|
@@ -5731,7 +5793,7 @@ def benchmark_capacity(args: argparse.Namespace) -> int:
|
|
|
5731
5793
|
return _start_interactive_benchmark(args, "capacity")
|
|
5732
5794
|
|
|
5733
5795
|
run_dir = _setup_benchmark_run_dir(args, "capacity", args.profile)
|
|
5734
|
-
session_context =
|
|
5796
|
+
session_context = _benchmark_session_context(args, "bench_1_1_capacity", run_dir)
|
|
5735
5797
|
result_context = _benchmark_result_context(
|
|
5736
5798
|
args,
|
|
5737
5799
|
genre="capacity",
|
|
@@ -6173,17 +6235,7 @@ def benchmark_rows(args: argparse.Namespace) -> int:
|
|
|
6173
6235
|
def _drive_gate_row(args: argparse.Namespace, row: Any, run_dir: Path) -> None:
|
|
6174
6236
|
"""Run one registry row's genre driver with the row's committed parameters."""
|
|
6175
6237
|
session_name = BENCHMARK_SESSIONS_BY_GENRE[row.genre]
|
|
6176
|
-
|
|
6177
|
-
session_context = {
|
|
6178
|
-
"name": session_name,
|
|
6179
|
-
"prepared": False,
|
|
6180
|
-
"target_override": {
|
|
6181
|
-
"target": str(args.target),
|
|
6182
|
-
"target_type": str(getattr(args, "target_type", None) or "auto"),
|
|
6183
|
-
},
|
|
6184
|
-
}
|
|
6185
|
-
else:
|
|
6186
|
-
session_context = _prepare_benchmark_session_config(args, session_name, run_dir)
|
|
6238
|
+
session_context = _benchmark_session_context(args, session_name, run_dir)
|
|
6187
6239
|
result_context = _benchmark_result_context(
|
|
6188
6240
|
args, genre=row.genre, profile=row.profile, run_dir=run_dir, session=session_context
|
|
6189
6241
|
)
|
|
@@ -6621,7 +6673,7 @@ def benchmark_ramp(args: argparse.Namespace) -> int:
|
|
|
6621
6673
|
artifacts_dir = Path(args.artifacts_dir) if getattr(args, "artifacts_dir", None) else runtime.benchmarks_dir
|
|
6622
6674
|
|
|
6623
6675
|
run_dir = _setup_benchmark_run_dir(args, "ramp", args.profile)
|
|
6624
|
-
session_context =
|
|
6676
|
+
session_context = _benchmark_session_context(args, "bench_1_3_ramp", run_dir)
|
|
6625
6677
|
result_context = _benchmark_result_context(
|
|
6626
6678
|
args,
|
|
6627
6679
|
genre="ramp",
|
|
@@ -6673,7 +6725,7 @@ def benchmark_recovery(args: argparse.Namespace) -> int:
|
|
|
6673
6725
|
artifacts_dir = Path(args.artifacts_dir) if getattr(args, "artifacts_dir", None) else runtime.benchmarks_dir
|
|
6674
6726
|
|
|
6675
6727
|
run_dir = _setup_benchmark_run_dir(args, "recovery", args.profile)
|
|
6676
|
-
session_context =
|
|
6728
|
+
session_context = _benchmark_session_context(args, "bench_1_4_recovery", run_dir)
|
|
6677
6729
|
profiles_file = _benchmark_profiles_file(args.profile, runtime.profiles_file)
|
|
6678
6730
|
result_context = _benchmark_result_context(
|
|
6679
6731
|
args,
|
|
@@ -6726,7 +6778,7 @@ def benchmark_sweep(args: argparse.Namespace) -> int:
|
|
|
6726
6778
|
artifacts_dir = Path(args.artifacts_dir) if getattr(args, "artifacts_dir", None) else runtime.benchmarks_dir
|
|
6727
6779
|
|
|
6728
6780
|
run_dir = _setup_benchmark_run_dir(args, "sweep", None)
|
|
6729
|
-
session_context =
|
|
6781
|
+
session_context = _benchmark_session_context(args, "bench_1_2_load_sweep", run_dir)
|
|
6730
6782
|
result_context = _benchmark_result_context(
|
|
6731
6783
|
args,
|
|
6732
6784
|
genre="sweep",
|
|
@@ -7033,7 +7085,7 @@ def benchmark_sensitivity(args: argparse.Namespace) -> int:
|
|
|
7033
7085
|
args.profiles_file = str(generated_profiles_file)
|
|
7034
7086
|
|
|
7035
7087
|
session_name = BENCHMARK_SESSIONS_BY_GENRE["sensitivity"]
|
|
7036
|
-
session_context =
|
|
7088
|
+
session_context = _benchmark_session_context(args, session_name, run_dir)
|
|
7037
7089
|
result_context = _benchmark_result_context(
|
|
7038
7090
|
args,
|
|
7039
7091
|
genre="sensitivity",
|
|
@@ -7113,7 +7165,7 @@ def benchmark_matrix(args: argparse.Namespace) -> int:
|
|
|
7113
7165
|
args.profiles_file = str(generated_profiles_file)
|
|
7114
7166
|
|
|
7115
7167
|
session_name = BENCHMARK_SESSIONS_BY_GENRE["matrix"]
|
|
7116
|
-
session_context =
|
|
7168
|
+
session_context = _benchmark_session_context(args, session_name, run_dir)
|
|
7117
7169
|
result_context = _benchmark_result_context(
|
|
7118
7170
|
args,
|
|
7119
7171
|
genre="matrix",
|
|
@@ -7299,7 +7351,7 @@ def benchmark_requirements(args: argparse.Namespace) -> int:
|
|
|
7299
7351
|
else:
|
|
7300
7352
|
session_name = replay.session_name
|
|
7301
7353
|
|
|
7302
|
-
session_context =
|
|
7354
|
+
session_context = _benchmark_session_context(args, session_name, run_dir)
|
|
7303
7355
|
result_context = _benchmark_result_context(
|
|
7304
7356
|
args,
|
|
7305
7357
|
genre="requirements",
|
|
@@ -7433,7 +7485,7 @@ def benchmark_loss_boundaries(args: argparse.Namespace) -> int:
|
|
|
7433
7485
|
else:
|
|
7434
7486
|
session_name = replay.session_name
|
|
7435
7487
|
|
|
7436
|
-
session_context =
|
|
7488
|
+
session_context = _benchmark_session_context(args, session_name, run_dir)
|
|
7437
7489
|
result_context = _benchmark_result_context(
|
|
7438
7490
|
args,
|
|
7439
7491
|
genre="loss-boundaries",
|
|
@@ -23,6 +23,9 @@ shared:
|
|
|
23
23
|
local: cyclone
|
|
24
24
|
ota:
|
|
25
25
|
zenoh_ros2dds:
|
|
26
|
+
# Explicit, and deliberately the non-default: `tcp` is what a link gets
|
|
27
|
+
# by default since it measured better on the operator's bench pair, so
|
|
28
|
+
# something has to keep exercising the UDP bridge.
|
|
26
29
|
transport: udp
|
|
27
30
|
main_peer: a
|
|
28
31
|
main_port: 7447
|
|
@@ -23,6 +23,9 @@ shared:
|
|
|
23
23
|
local: cyclone
|
|
24
24
|
ota:
|
|
25
25
|
zenoh_ros2dds:
|
|
26
|
+
# Explicit, and deliberately the non-default: `tcp` is what a link gets
|
|
27
|
+
# by default since it measured better on the operator's bench pair, so
|
|
28
|
+
# something has to keep exercising the UDP bridge.
|
|
26
29
|
transport: udp
|
|
27
30
|
main_peer: a
|
|
28
31
|
main_port: 7447
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!--
|
|
3
|
+
Fast DDS "easy mode": discovery by Discovery Server instead of multicast.
|
|
4
|
+
|
|
5
|
+
Fast DDS 3.1 spawns (or reuses) one Discovery Server per host and points the
|
|
6
|
+
participant at the peer's server as well, so two hosts find each other with no
|
|
7
|
+
multicast and no per-participant peer list. It is the answer Fast DDS gives to
|
|
8
|
+
the problem `fastdds_tuned.xml` solves with `initialPeersList`, and the reason
|
|
9
|
+
to keep both is that they fail differently: an explicit peer list cannot
|
|
10
|
+
discover anything it was not told about, while easy mode depends on a server
|
|
11
|
+
process being reachable on 11811.
|
|
12
|
+
|
|
13
|
+
Data transport is NOT discovery, and easy mode does not change it. The
|
|
14
|
+
transport line below therefore only takes shared memory out of the mix (each
|
|
15
|
+
container has its own /dev/shm) and makes a full socket buffer drop rather
|
|
16
|
+
than block the writer. It deliberately does not cap the datagram: measured on
|
|
17
|
+
the bench pair (2026-08-18/19), a `<max_msg_size>` below the sample size stops
|
|
18
|
+
the sample from arriving at all — see fastdds_tuned.xml for the measurement.
|
|
19
|
+
|
|
20
|
+
`#easy_mode_ip` resolves to the peer's address (override per side with
|
|
21
|
+
`shared.rmw.{local|ota}.fastdds.easy_mode_ip`).
|
|
22
|
+
-->
|
|
23
|
+
<dds xmlns="http://www.eprosima.com/XMLSchemas/fastRTPS_Profiles">
|
|
24
|
+
<profiles>
|
|
25
|
+
<participant profile_name="rosotacom_fastdds_easy_mode" is_default_profile="true">
|
|
26
|
+
<rtps>
|
|
27
|
+
<easy_mode_ip>#easy_mode_ip</easy_mode_ip>
|
|
28
|
+
|
|
29
|
+
<builtinTransports sockets_size="1MB" non_blocking="true">UDPv4</builtinTransports>
|
|
30
|
+
</rtps>
|
|
31
|
+
</participant>
|
|
32
|
+
|
|
33
|
+
<data_writer profile_name="rosotacom_fastdds_easy_mode_writer" is_default_profile="true">
|
|
34
|
+
<qos>
|
|
35
|
+
<data_sharing>
|
|
36
|
+
<kind>OFF</kind>
|
|
37
|
+
</data_sharing>
|
|
38
|
+
</qos>
|
|
39
|
+
</data_writer>
|
|
40
|
+
|
|
41
|
+
<data_reader profile_name="rosotacom_fastdds_easy_mode_reader" is_default_profile="true">
|
|
42
|
+
<qos>
|
|
43
|
+
<data_sharing>
|
|
44
|
+
<kind>OFF</kind>
|
|
45
|
+
</data_sharing>
|
|
46
|
+
</qos>
|
|
47
|
+
</data_reader>
|
|
48
|
+
</profiles>
|
|
49
|
+
</dds>
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!--
|
|
3
|
+
Fast DDS on a real OTA link: what `rmw.ota: fastdds` means by default.
|
|
4
|
+
|
|
5
|
+
fastdds_unicast.xml pins the locators and stops there, which is enough on a
|
|
6
|
+
LAN and leaves two things open on a cellular tunnel: a multi-homed host still
|
|
7
|
+
announces every interface it has, and a participant that starts late is never
|
|
8
|
+
found. This profile closes both and changes nothing else.
|
|
9
|
+
|
|
10
|
+
WHAT IT DELIBERATELY DOES NOT DO — cap the datagram. CycloneDDS carries this
|
|
11
|
+
link at FragmentSize/MaxMessageSize 1200 B, and the obvious move is to write
|
|
12
|
+
the same number here. Measured on the bench pair (2026-08-18/19, ROS 2 Kilted,
|
|
13
|
+
Fast DDS 3.2.4): a `<maxMessageSize>` below the sample size stops the sample
|
|
14
|
+
from ever arriving, through the whole OTA pipeline, at 1200 B and at 8192 B,
|
|
15
|
+
with a synchronous writer and with an asynchronous one. An 84 B heartbeat kept
|
|
16
|
+
flowing at 10 Hz while a 12 kB stream on the same link delivered nothing — the
|
|
17
|
+
shape that makes this worth a paragraph, because a link that carries the small
|
|
18
|
+
topics looks alive. Every other knob below was added to the working profile one
|
|
19
|
+
at a time and measured; only the cap breaks it.
|
|
20
|
+
|
|
21
|
+
So Fast DDS here hands a large sample to the kernel as one datagram and lets IP
|
|
22
|
+
fragment it, where CycloneDDS sends RTPS fragments. That is a real difference
|
|
23
|
+
in what a lost packet costs and in what the tunnel has to reassemble, not an
|
|
24
|
+
implementation detail — the measured OpenVPN barrier on this path is around
|
|
25
|
+
110 kB per message (docs/network-baseline.md).
|
|
26
|
+
-->
|
|
27
|
+
<dds xmlns="http://www.eprosima.com/XMLSchemas/fastRTPS_Profiles">
|
|
28
|
+
<profiles>
|
|
29
|
+
<transport_descriptors>
|
|
30
|
+
<transport_descriptor>
|
|
31
|
+
<transport_id>rosotacom_ota_udp</transport_id>
|
|
32
|
+
<type>UDPv4</type>
|
|
33
|
+
|
|
34
|
+
<sendBufferSize>1048576</sendBufferSize>
|
|
35
|
+
<receiveBufferSize>4194304</receiveBufferSize>
|
|
36
|
+
|
|
37
|
+
<!-- Drop rather than block when the socket buffer is full: on a shaped
|
|
38
|
+
uplink the blocking default turns a link-layer backlog into
|
|
39
|
+
application-level latency. -->
|
|
40
|
+
<non_blocking_send>true</non_blocking_send>
|
|
41
|
+
|
|
42
|
+
<!-- An initial peer given without a port makes Fast DDS probe
|
|
43
|
+
participant indices 0..range on that address. The default is 4, and
|
|
44
|
+
an OTA domain carrying a domain bridge plus the IN and OUT splits
|
|
45
|
+
can hand out a higher index, so whichever process starts late is
|
|
46
|
+
never found. CycloneDDS probes 10; this matches it. -->
|
|
47
|
+
<maxInitialPeersRange>10</maxInitialPeersRange>
|
|
48
|
+
|
|
49
|
+
<!-- Two addresses, both load-bearing. #host_ip is the OTA address, and
|
|
50
|
+
pinning it is what keeps a multi-homed VPN host from announcing a
|
|
51
|
+
locator the peer cannot route to. 127.0.0.1 is the same-host half:
|
|
52
|
+
with a split OTA domain the stock `domain_bridge` process sits on
|
|
53
|
+
that domain too and speaks whatever RMW the local side uses, so
|
|
54
|
+
this participant has to be able to discover a peer on its own
|
|
55
|
+
machine. An allowlist of the OTA address alone takes the loopback
|
|
56
|
+
path away and the bridge and the OTA processes never see each
|
|
57
|
+
other — a failure that reads as a dead link and is not one. -->
|
|
58
|
+
<interfaces>
|
|
59
|
+
<allowlist>
|
|
60
|
+
<interface name="127.0.0.1" netmask_filter="OFF"/>
|
|
61
|
+
<interface name="#host_ip" netmask_filter="OFF"/>
|
|
62
|
+
</allowlist>
|
|
63
|
+
</interfaces>
|
|
64
|
+
</transport_descriptor>
|
|
65
|
+
</transport_descriptors>
|
|
66
|
+
|
|
67
|
+
<participant profile_name="rosotacom_fastdds_tuned" is_default_profile="true">
|
|
68
|
+
<rtps>
|
|
69
|
+
<defaultUnicastLocatorList>
|
|
70
|
+
<locator>
|
|
71
|
+
<udpv4>
|
|
72
|
+
<address>127.0.0.1</address>
|
|
73
|
+
<port>0</port>
|
|
74
|
+
</udpv4>
|
|
75
|
+
</locator>
|
|
76
|
+
<locator>
|
|
77
|
+
<udpv4>
|
|
78
|
+
<address>#host_ip</address>
|
|
79
|
+
<port>0</port>
|
|
80
|
+
</udpv4>
|
|
81
|
+
</locator>
|
|
82
|
+
</defaultUnicastLocatorList>
|
|
83
|
+
|
|
84
|
+
<builtin>
|
|
85
|
+
<discovery_config>
|
|
86
|
+
<leaseDuration>
|
|
87
|
+
<sec>60</sec>
|
|
88
|
+
</leaseDuration>
|
|
89
|
+
<leaseAnnouncement>
|
|
90
|
+
<sec>10</sec>
|
|
91
|
+
</leaseAnnouncement>
|
|
92
|
+
</discovery_config>
|
|
93
|
+
|
|
94
|
+
<metatrafficUnicastLocatorList>
|
|
95
|
+
<locator>
|
|
96
|
+
<udpv4>
|
|
97
|
+
<address>127.0.0.1</address>
|
|
98
|
+
<port>0</port>
|
|
99
|
+
</udpv4>
|
|
100
|
+
</locator>
|
|
101
|
+
<locator>
|
|
102
|
+
<udpv4>
|
|
103
|
+
<address>#host_ip</address>
|
|
104
|
+
<port>0</port>
|
|
105
|
+
</udpv4>
|
|
106
|
+
</locator>
|
|
107
|
+
</metatrafficUnicastLocatorList>
|
|
108
|
+
|
|
109
|
+
<initialPeersList>
|
|
110
|
+
<locator>
|
|
111
|
+
<udpv4>
|
|
112
|
+
<address>127.0.0.1</address>
|
|
113
|
+
<port>0</port>
|
|
114
|
+
</udpv4>
|
|
115
|
+
</locator>
|
|
116
|
+
<locator>
|
|
117
|
+
<udpv4>
|
|
118
|
+
<address>#host_ip</address>
|
|
119
|
+
<port>0</port>
|
|
120
|
+
</udpv4>
|
|
121
|
+
</locator>
|
|
122
|
+
<!--peer-block--><locator>
|
|
123
|
+
<udpv4>
|
|
124
|
+
<address>#peer</address>
|
|
125
|
+
<port>0</port>
|
|
126
|
+
</udpv4>
|
|
127
|
+
</locator><!--/peer-block-->
|
|
128
|
+
</initialPeersList>
|
|
129
|
+
</builtin>
|
|
130
|
+
|
|
131
|
+
<userTransports>
|
|
132
|
+
<transport_id>rosotacom_ota_udp</transport_id>
|
|
133
|
+
</userTransports>
|
|
134
|
+
<useBuiltinTransports>false</useBuiltinTransports>
|
|
135
|
+
</rtps>
|
|
136
|
+
</participant>
|
|
137
|
+
|
|
138
|
+
<data_writer profile_name="rosotacom_fastdds_tuned_writer" is_default_profile="true">
|
|
139
|
+
<qos>
|
|
140
|
+
<data_sharing>
|
|
141
|
+
<kind>OFF</kind>
|
|
142
|
+
</data_sharing>
|
|
143
|
+
</qos>
|
|
144
|
+
</data_writer>
|
|
145
|
+
|
|
146
|
+
<data_reader profile_name="rosotacom_fastdds_tuned_reader" is_default_profile="true">
|
|
147
|
+
<qos>
|
|
148
|
+
<data_sharing>
|
|
149
|
+
<kind>OFF</kind>
|
|
150
|
+
</data_sharing>
|
|
151
|
+
</qos>
|
|
152
|
+
</data_reader>
|
|
153
|
+
</profiles>
|
|
154
|
+
</dds>
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
import rclpy
|
|
41
41
|
from rclpy.node import Node
|
|
42
42
|
from com_py.topic_resolution import resolve_topics
|
|
43
|
-
from com_py.qos import load_qos_config
|
|
43
|
+
from com_py.qos import load_qos_config, load_topic_types
|
|
44
44
|
from com_py.pub_sub_pair import PubSubPair
|
|
45
45
|
from com_py.pair_management import PairRefreshMixin
|
|
46
46
|
|
|
@@ -59,6 +59,11 @@ class BaseBridgeRelay(Node, PairRefreshMixin):
|
|
|
59
59
|
self.base_topic_files = self.declare_parameter('base_topic_files', rclpy.Parameter.Type.STRING_ARRAY).value
|
|
60
60
|
self.host_name = self.declare_parameter('local_name', '').value
|
|
61
61
|
self.qos_config_file = self.declare_parameter('qos_config_file', '').value
|
|
62
|
+
# `<stage topic>: <message type>` for every stage of this session, so a
|
|
63
|
+
# pair can create its endpoints without waiting for somebody else to
|
|
64
|
+
# create the matching one first. Empty is allowed: the graph is still
|
|
65
|
+
# consulted, and was the only source before this existed.
|
|
66
|
+
self.topic_types_file = self.declare_parameter('topic_types_file', '').value
|
|
62
67
|
|
|
63
68
|
# Optional parameters with defaults
|
|
64
69
|
self.source_names = self.declare_optional_string_array('source_names')
|
|
@@ -112,6 +117,7 @@ class BaseBridgeRelay(Node, PairRefreshMixin):
|
|
|
112
117
|
return
|
|
113
118
|
|
|
114
119
|
self.qos_config = load_qos_config(self.get_logger(), self.qos_config_file)
|
|
120
|
+
self.topic_types = load_topic_types(self.get_logger(), self.topic_types_file)
|
|
115
121
|
|
|
116
122
|
for (sub_t, pub_t, base_t) in triplets:
|
|
117
123
|
pair = PubSubPair(
|
|
@@ -121,7 +127,8 @@ class BaseBridgeRelay(Node, PairRefreshMixin):
|
|
|
121
127
|
pub_topic=pub_t,
|
|
122
128
|
sub_role=self.sub_role,
|
|
123
129
|
pub_role=self.pub_role,
|
|
124
|
-
qos_config=self.qos_config
|
|
130
|
+
qos_config=self.qos_config,
|
|
131
|
+
topic_types=self.topic_types
|
|
125
132
|
)
|
|
126
133
|
self.pairs.append(pair)
|
|
127
134
|
|
|
@@ -71,7 +71,8 @@ class PubSubPair:
|
|
|
71
71
|
pub_topic: str,
|
|
72
72
|
sub_role: str,
|
|
73
73
|
pub_role: str,
|
|
74
|
-
qos_config: dict
|
|
74
|
+
qos_config: dict,
|
|
75
|
+
topic_types: dict = None):
|
|
75
76
|
|
|
76
77
|
self.node = node
|
|
77
78
|
self.base_topic_name = base_topic_name
|
|
@@ -94,6 +95,9 @@ class PubSubPair:
|
|
|
94
95
|
self.sub_qos = get_topic_qos(self.logger, qos_config, base_topic_name, sub_role)
|
|
95
96
|
self.pub_qos = get_topic_qos(self.logger, qos_config, base_topic_name, pub_role)
|
|
96
97
|
|
|
98
|
+
# What the session says this stage carries, when it says anything.
|
|
99
|
+
self.declared_types = topic_types or {}
|
|
100
|
+
|
|
97
101
|
# Try initial setup
|
|
98
102
|
self.try_initialize()
|
|
99
103
|
|
|
@@ -111,12 +115,20 @@ class PubSubPair:
|
|
|
111
115
|
if self.is_valid:
|
|
112
116
|
return True
|
|
113
117
|
|
|
114
|
-
#
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
118
|
+
# What this stage carries. The session's own declaration first, the ROS
|
|
119
|
+
# graph second: reading it from the graph means an endpoint can only be
|
|
120
|
+
# created after somebody else created the matching one, and over a
|
|
121
|
+
# transport that carries data but not the graph — the zenoh DDS bridge —
|
|
122
|
+
# that is a deadlock. The bridge routes a topic once a local reader
|
|
123
|
+
# exists; the reader waited for the bridge to route a publisher into the
|
|
124
|
+
# graph, so neither ever happened and the topic stayed pending in
|
|
125
|
+
# silence.
|
|
126
|
+
msg_type_str = self.declared_types.get(self.sub_topic)
|
|
127
|
+
if not msg_type_str:
|
|
128
|
+
graph_types = dict(self.node.get_topic_names_and_types())
|
|
129
|
+
if self.sub_topic not in graph_types:
|
|
130
|
+
return False
|
|
131
|
+
msg_type_str = graph_types[self.sub_topic][0]
|
|
120
132
|
msg_type = get_message(msg_type_str)
|
|
121
133
|
if not msg_type:
|
|
122
134
|
self.logger.error(f"[PubSubPair] Could not load message type '{msg_type_str}'!")
|
|
@@ -258,3 +258,27 @@ def dict_to_qos(logger, fields: dict) -> QoSProfile:
|
|
|
258
258
|
raise ValueError("[dict_to_qos] 'liveliness_lease' must be positive.")
|
|
259
259
|
|
|
260
260
|
return qos
|
|
261
|
+
|
|
262
|
+
|
|
263
|
+
def load_topic_types(logger, path):
|
|
264
|
+
"""`{topic: message type}` from a generated topic_types.yaml, or {}.
|
|
265
|
+
|
|
266
|
+
A missing or unreadable file is not an error: the graph is still consulted,
|
|
267
|
+
and it was the only source before this file existed. What the file buys is
|
|
268
|
+
the case where the graph cannot answer — a transport that carries data but
|
|
269
|
+
not the ROS graph, or simply an endpoint that has not been created yet.
|
|
270
|
+
"""
|
|
271
|
+
if not path:
|
|
272
|
+
return {}
|
|
273
|
+
try:
|
|
274
|
+
with open(path, encoding="utf-8") as handle:
|
|
275
|
+
document = yaml.safe_load(handle) or {}
|
|
276
|
+
except (OSError, yaml.YAMLError) as error:
|
|
277
|
+
logger.warning(f"[topic_types] Could not read '{path}': {error}")
|
|
278
|
+
return {}
|
|
279
|
+
types = document.get("topic_types") or {}
|
|
280
|
+
if not isinstance(types, dict):
|
|
281
|
+
logger.warning(f"[topic_types] '{path}' has no 'topic_types' mapping; ignoring it")
|
|
282
|
+
return {}
|
|
283
|
+
logger.info(f"[topic_types] Loaded {len(types)} declared topic type(s) from '{path}'")
|
|
284
|
+
return {str(topic): str(msg_type) for topic, msg_type in types.items()}
|
|
@@ -18,6 +18,8 @@ parameters:
|
|
|
18
18
|
local_name: "" # e.g. "control_center"
|
|
19
19
|
remote_name: "" # e.g. "shuttle_ella"
|
|
20
20
|
qos_config_file: '""' # e.g. "/config/qos_config.yaml"
|
|
21
|
+
topic_types_file: ${peer_dir}/topic_types.yaml # `<stage topic>: <type>`; lets a bridge/relay pair
|
|
22
|
+
# create its endpoints without waiting for the graph
|
|
21
23
|
|
|
22
24
|
in: false
|
|
23
25
|
topic_list_paths_inbound: ""
|
|
@@ -300,14 +302,26 @@ windows:
|
|
|
300
302
|
# - curl http://localhost:8000/@/local/ros2/route/** 2>&1 | tee ${zen_config_file}.route-log
|
|
301
303
|
# ZEN: native rmw_zenoh_cpp router. Runs on this peer's local_domain_id (already exported
|
|
302
304
|
# by common.before_commands). Exactly one of the two peers (the non-main peer) opens a
|
|
303
|
-
#
|
|
304
|
-
#
|
|
305
|
+
# connect endpoint to the main peer via ZENOH_CONFIG_OVERRIDE, over the transport the
|
|
306
|
+
# session chose (`shared.rmw.ota.zenoh_connect_endpoints.transport`, default tcp).
|
|
307
|
+
#
|
|
308
|
+
# The inter-host transport is a link decision, and TCP is the wrong default on a
|
|
309
|
+
# lossy one: a retransmit stalls everything behind it, which is how a cellular
|
|
310
|
+
# dip turns into seconds of latency rather than one lost sample. UDP is the
|
|
311
|
+
# alternative the endpoint syntax already carries.
|
|
312
|
+
#
|
|
313
|
+
# The listen side keeps TCP on 7447 whatever the inter-host transport is. Every
|
|
314
|
+
# rmw_zenoh node on this host is a zenoh *client* of this router and connects to
|
|
315
|
+
# tcp/localhost:7447; a router that stopped listening there would take its own
|
|
316
|
+
# peer's nodes off the graph.
|
|
305
317
|
- name: ZEN
|
|
306
318
|
if: use_zenoh_rmw
|
|
307
319
|
splits:
|
|
308
320
|
- commands:
|
|
309
321
|
- if [ '${zen_connect}' = "True" ] || [ '${zen_connect}' = "true" ]; then
|
|
310
|
-
export ZENOH_CONFIG_OVERRIDE='connect/endpoints=["
|
|
322
|
+
export ZENOH_CONFIG_OVERRIDE='connect/endpoints=["'"${zen_transport}"'/'"${zen_main_ip}"':'"${zen_main_port}"'"]';
|
|
323
|
+
elif [ '${zen_transport}' != "tcp" ]; then
|
|
324
|
+
export ZENOH_CONFIG_OVERRIDE='listen/endpoints=["tcp/[::]:7447","'"${zen_transport}"'/0.0.0.0:'"${zen_main_port}"'"]';
|
|
311
325
|
fi
|
|
312
326
|
- ros2 run rmw_zenoh_cpp rmw_zenohd
|
|
313
327
|
- name: COM
|
|
@@ -331,6 +345,7 @@ windows:
|
|
|
331
345
|
-p base_topic_files:=[${topic_list_paths_inbound}]
|
|
332
346
|
-p local_name:=${local_name}
|
|
333
347
|
-p qos_config_file:='${qos_config_file}'
|
|
348
|
+
-p topic_types_file:='${topic_types_file}'
|
|
334
349
|
-p source_names:=[${remote_name}]
|
|
335
350
|
-p local_explicitly_targeted:=${local_explicitly_targeted_inbound}
|
|
336
351
|
- commands:
|
|
@@ -338,6 +353,7 @@ windows:
|
|
|
338
353
|
-p base_topic_files:=[${topic_list_paths_inbound}]
|
|
339
354
|
-p local_name:=${local_name}
|
|
340
355
|
-p qos_config_file:='${qos_config_file}'
|
|
356
|
+
-p topic_types_file:='${topic_types_file}'
|
|
341
357
|
-p source_names:=[${remote_name}]
|
|
342
358
|
-p local_explicitly_targeted:=${local_explicitly_targeted_inbound}
|
|
343
359
|
-p app_keep_source_name:=${app_keep_source_name_inbound}
|
|
@@ -356,12 +372,14 @@ windows:
|
|
|
356
372
|
-p base_topic_files:=[${topic_list_paths_outbound}]
|
|
357
373
|
-p local_name:=${local_name}
|
|
358
374
|
-p qos_config_file:='${qos_config_file}'
|
|
375
|
+
-p topic_types_file:='${topic_types_file}'
|
|
359
376
|
-p target_names:=[${remote_explicitly_targeted_name_outbound}]
|
|
360
377
|
- commands:
|
|
361
378
|
- ros2 run com_py relay_out --ros-args
|
|
362
379
|
-p base_topic_files:=[${topic_list_paths_outbound}]
|
|
363
380
|
-p local_name:=${local_name}
|
|
364
381
|
-p qos_config_file:='${qos_config_file}'
|
|
382
|
+
-p topic_types_file:='${topic_types_file}'
|
|
365
383
|
-p target_names:=[${remote_explicitly_targeted_name_outbound}]
|
|
366
384
|
-p app_has_source_name:=${app_has_source_name_outbound}
|
|
367
385
|
- name: TM
|
|
@@ -158,7 +158,7 @@ class YamlBlockScalar:
|
|
|
158
158
|
# - a tagged-union mapping with exactly one key (the RMW name):
|
|
159
159
|
# {cyclone: {config?: <fname.xml>, easy_mode_ip?: <address>, spdp_interval?: <duration>}}
|
|
160
160
|
# {fastdds: {config?: <fname.xml>, easy_mode_ip?: <address>}}
|
|
161
|
-
# {zenoh_connect_endpoints: {main_peer?: <peer_key>, main_port?: 7447}}
|
|
161
|
+
# {zenoh_connect_endpoints: {transport?: tcp|udp, main_peer?: <peer_key>, main_port?: 7447}}
|
|
162
162
|
# {zenoh_ros2dds: {transport?: udp|tcp, main_peer?: <peer_key>, main_port?: 7447}}
|
|
163
163
|
# -----------------------------------------------------------------------------
|
|
164
164
|
|
|
@@ -170,7 +170,11 @@ _LOCAL_SHORTS = {"cyclone", "fastdds", "zenoh"}
|
|
|
170
170
|
_SHORTCUT_ALLOWED = {"cyclone", "fastdds", "zenoh"}
|
|
171
171
|
|
|
172
172
|
_DDS_CFG_KEYS = {"config", "easy_mode_ip", "spdp_interval"}
|
|
173
|
-
_ZEN_OTA_CFG_KEYS = {"main_peer", "main_port"}
|
|
173
|
+
_ZEN_OTA_CFG_KEYS = {"transport", "main_peer", "main_port"}
|
|
174
|
+
#: Inter-host transports the native zenoh router may be pointed at. Both are
|
|
175
|
+
#: plain zenoh locator schemes; tls/quic would additionally need certificates
|
|
176
|
+
#: this generator has nowhere to put.
|
|
177
|
+
_ZEN_NATIVE_TRANSPORTS = {"tcp", "udp"}
|
|
174
178
|
_ZEN_R2D_CFG_KEYS = {"transport", "main_peer", "main_port"}
|
|
175
179
|
|
|
176
180
|
# OTA is cross-host by definition. The bare `cyclone`/`fastdds` OTA shortcuts
|
|
@@ -179,9 +183,14 @@ _ZEN_R2D_CFG_KEYS = {"transport", "main_peer", "main_port"}
|
|
|
179
183
|
# overlay/tunnel networks that drop multicast. Default each DDS OTA side to its
|
|
180
184
|
# interface-pinned, unicast-peer config so cross-host delivery works out of the
|
|
181
185
|
# box; an explicit `ota: {cyclone|fastdds: {config: ...}}` still overrides this.
|
|
186
|
+
#: What `rmw.ota: <impl>` means when no ``config:`` is given. Both entries are
|
|
187
|
+
#: the link-ready configuration for their implementation, not the minimal one:
|
|
188
|
+
#: a session that names an OTA middleware and nothing else gets unicast
|
|
189
|
+
#: discovery, a pinned interface and 1200 B fragments either way, which is what
|
|
190
|
+
#: makes `shared.rmw` an interchangeable choice rather than a rewrite.
|
|
182
191
|
_DDS_OTA_DEFAULT_CONFIG = {
|
|
183
192
|
"cyclone": "cyclonedds_tuned.xml",
|
|
184
|
-
"fastdds": "
|
|
193
|
+
"fastdds": "fastdds_tuned.xml",
|
|
185
194
|
}
|
|
186
195
|
|
|
187
196
|
|
|
@@ -215,9 +224,8 @@ class RmwSideSpec:
|
|
|
215
224
|
dds_config: Optional[str] = None
|
|
216
225
|
dds_easy_mode_ip: Optional[str] = None
|
|
217
226
|
dds_spdp_interval: Optional[str] = None
|
|
218
|
-
# zenoh
|
|
227
|
+
# zenoh (native) and zenoh_ros2dds
|
|
219
228
|
zen_main_peer: Optional[str] = None
|
|
220
|
-
# zenoh_ros2dds only
|
|
221
229
|
zen_transport: Optional[str] = None
|
|
222
230
|
zen_main_port: Optional[int] = None
|
|
223
231
|
|
|
@@ -287,6 +295,13 @@ def _parse_rmw_side(value: Any, ctx: str, *, is_local: bool) -> RmwSideSpec:
|
|
|
287
295
|
raise RuntimeError(
|
|
288
296
|
f"{ctx}.{impl} contains unsupported keys {sorted(extra)}. Allowed: {sorted(_ZEN_OTA_CFG_KEYS)}."
|
|
289
297
|
)
|
|
298
|
+
if cfg.get("transport") is not None:
|
|
299
|
+
transport = cfg["transport"]
|
|
300
|
+
if not isinstance(transport, str) or transport.strip() not in _ZEN_NATIVE_TRANSPORTS:
|
|
301
|
+
raise RuntimeError(
|
|
302
|
+
f"{ctx}.{impl}.transport must be one of {sorted(_ZEN_NATIVE_TRANSPORTS)}; got {transport!r}."
|
|
303
|
+
)
|
|
304
|
+
spec.zen_transport = transport.strip()
|
|
290
305
|
if cfg.get("main_peer") is not None:
|
|
291
306
|
if not isinstance(cfg["main_peer"], str) or not cfg["main_peer"].strip():
|
|
292
307
|
raise RuntimeError(f"{ctx}.{impl}.main_peer must be a non-empty string if provided.")
|
|
@@ -1360,6 +1375,31 @@ def _heartbeat_monitor_overrides(heartbeat_expect: Optional[Dict[str, Any]]) ->
|
|
|
1360
1375
|
return overrides
|
|
1361
1376
|
|
|
1362
1377
|
|
|
1378
|
+
def _build_topic_types_map(status_spec_yaml: str) -> str:
|
|
1379
|
+
"""`<stage topic>: <message type>` for every stage this peer takes part in.
|
|
1380
|
+
|
|
1381
|
+
The bridge and relay nodes used to learn a topic's type from the ROS graph,
|
|
1382
|
+
which means they can only create an endpoint after somebody else has created
|
|
1383
|
+
the matching one. Over a transport that carries data but not the graph — the
|
|
1384
|
+
zenoh DDS bridge — that is a deadlock: the bridge routes a topic once a local
|
|
1385
|
+
reader exists, and the reader is not created until the bridge has routed a
|
|
1386
|
+
publisher into the graph. The session already knows every stage's type, so it
|
|
1387
|
+
says so instead.
|
|
1388
|
+
|
|
1389
|
+
Derived from the status pipeline spec rather than recomputed, so the two can
|
|
1390
|
+
never disagree about what a stage is called.
|
|
1391
|
+
"""
|
|
1392
|
+
spec = yaml.safe_load(status_spec_yaml) or {}
|
|
1393
|
+
types: Dict[str, str] = {}
|
|
1394
|
+
for topic in spec.get("topics") or []:
|
|
1395
|
+
for stage in topic.get("stages") or []:
|
|
1396
|
+
name = str(stage.get("topic") or "").strip()
|
|
1397
|
+
msg_type = str(stage.get("type") or "").strip()
|
|
1398
|
+
if name and msg_type:
|
|
1399
|
+
types.setdefault(name, msg_type)
|
|
1400
|
+
return yaml.safe_dump({"topic_types": types}, sort_keys=True, default_flow_style=False)
|
|
1401
|
+
|
|
1402
|
+
|
|
1363
1403
|
def _build_status_pipeline_spec(
|
|
1364
1404
|
*,
|
|
1365
1405
|
local: str,
|
|
@@ -2178,14 +2218,22 @@ def func(
|
|
|
2178
2218
|
[
|
|
2179
2219
|
("zen_main_ip", peer_ip[main_peer]),
|
|
2180
2220
|
("zen_main_port", main_port),
|
|
2181
|
-
|
|
2221
|
+
("zen_transport", ota.zen_transport or "tcp"),
|
|
2222
|
+
# Only the non-main peer opens a connect endpoint.
|
|
2182
2223
|
("zen_connect", local_peer != main_peer),
|
|
2183
2224
|
],
|
|
2184
2225
|
)
|
|
2185
2226
|
if ota.impl == "zenoh_ros2dds":
|
|
2186
2227
|
main_peer = ota.zen_main_peer or peer_keys[0]
|
|
2187
2228
|
main_port = ota.zen_main_port or 7447
|
|
2188
|
-
|
|
2229
|
+
# TCP by default, measured rather than assumed. On the bench pair
|
|
2230
|
+
# (2026-08-19, the 2026-08-17 drive's loss process, 12 kB at 10 Hz)
|
|
2231
|
+
# the UDP bridge delivered in one run of five and lost 66% of that
|
|
2232
|
+
# one, while the TCP bridge delivered in every run at ~1% loss and
|
|
2233
|
+
# the lowest median latency in the whole campaign. UDP stays
|
|
2234
|
+
# available: it is the right answer on a link where TCP's
|
|
2235
|
+
# head-of-line blocking costs more than its retransmission buys.
|
|
2236
|
+
transport = ota.zen_transport or "tcp"
|
|
2189
2237
|
endpoint_role = "listen" if local_peer == main_peer else "connect"
|
|
2190
2238
|
items: List[Tuple[str, Any]] = [
|
|
2191
2239
|
("zen_pub_allow", f"/ota/{peer_name[local_peer]}/.*"),
|
|
@@ -2630,6 +2678,7 @@ def func(
|
|
|
2630
2678
|
per_peer_otau_yaml: Dict[str, Optional[str]] = {p: None for p in peer_keys}
|
|
2631
2679
|
per_peer_domain_bridge_yaml: Dict[str, Optional[str]] = {p: None for p in peer_keys}
|
|
2632
2680
|
per_peer_status_spec_yaml: Dict[str, Optional[str]] = {p: None for p in peer_keys}
|
|
2681
|
+
per_peer_topic_types_yaml: Dict[str, Optional[str]] = {p: None for p in peer_keys}
|
|
2633
2682
|
|
|
2634
2683
|
def _prefix_with_source_name_if_needed(target_peer: str, source_peer: str, topic: str) -> str:
|
|
2635
2684
|
ps = peer_settings_all.get(target_peer, {}) or {}
|
|
@@ -2980,6 +3029,32 @@ def func(
|
|
|
2980
3029
|
)
|
|
2981
3030
|
)
|
|
2982
3031
|
|
|
3032
|
+
# Always: the bridge and relay nodes need the stage types whether or not
|
|
3033
|
+
# anyone asked for a status overview.
|
|
3034
|
+
pipeline_spec_yaml = _build_status_pipeline_spec(
|
|
3035
|
+
local=local,
|
|
3036
|
+
remote=remote,
|
|
3037
|
+
peer_name=peer_name,
|
|
3038
|
+
out_entries=out_entries,
|
|
3039
|
+
out_pipes=out_pipes,
|
|
3040
|
+
in_entries=in_entries,
|
|
3041
|
+
in_pipes=in_pipes,
|
|
3042
|
+
use_target_prefix=use_target_prefix,
|
|
3043
|
+
remote_uses_target_prefix=remote_uses_target_prefix,
|
|
3044
|
+
native_have_source_prefix=native_have_source_prefix,
|
|
3045
|
+
inbound_keep_source_prefix=bool(inbound_cfg.get("keep_source_prefix", False)),
|
|
3046
|
+
local_domain_id=peer_local_domain_id[local],
|
|
3047
|
+
ota_domain_id=ota_domain_id,
|
|
3048
|
+
uses_domain_bridge=_use_domain_bridge(local),
|
|
3049
|
+
hb_topic=hb_topic,
|
|
3050
|
+
use_heartbeat=use_heartbeat,
|
|
3051
|
+
heartbeat_expect=(shared.get("heartbeat") or {}).get("expect"),
|
|
3052
|
+
out_enabled=out_enabled,
|
|
3053
|
+
in_enabled=in_enabled,
|
|
3054
|
+
final_topic_type=_final_topic_type,
|
|
3055
|
+
)
|
|
3056
|
+
per_peer_topic_types_yaml[local] = _build_topic_types_map(pipeline_spec_yaml)
|
|
3057
|
+
|
|
2983
3058
|
if use_status_overview:
|
|
2984
3059
|
per_peer_status_spec_yaml[local] = _build_status_pipeline_spec(
|
|
2985
3060
|
local=local,
|
|
@@ -3332,6 +3407,8 @@ def func(
|
|
|
3332
3407
|
generated.append((os.path.join(param_dir, p, "domain_bridge.yaml"), per_peer_domain_bridge_yaml[p] or ""))
|
|
3333
3408
|
if per_peer_status_spec_yaml.get(p):
|
|
3334
3409
|
generated.append((os.path.join(param_dir, p, "pipeline_spec.yaml"), per_peer_status_spec_yaml[p] or ""))
|
|
3410
|
+
if per_peer_topic_types_yaml.get(p):
|
|
3411
|
+
generated.append((os.path.join(param_dir, p, "topic_types.yaml"), per_peer_topic_types_yaml[p] or ""))
|
|
3335
3412
|
|
|
3336
3413
|
_write_generated_files(generated, force=force, rewrite_formatting=rewrite_formatting)
|
|
3337
3414
|
|
rosotacom/transit.py
CHANGED
|
@@ -44,6 +44,11 @@ def record_epoch(record: dict[str, Any]) -> int:
|
|
|
44
44
|
return 0 if value is None else int(value)
|
|
45
45
|
|
|
46
46
|
|
|
47
|
+
#: Statuses only a receiving peer can produce. Everything else on a joined row
|
|
48
|
+
#: came from the sender, which cannot know whether the message arrived.
|
|
49
|
+
_RECEIVER_STATUSES = frozenset({"delivered", "reordered", "lost"})
|
|
50
|
+
|
|
51
|
+
|
|
47
52
|
def join_transit_records(records: Iterable[dict[str, Any]]) -> list[dict[str, Any]]:
|
|
48
53
|
"""Join duplicate observations by ``(source, topic, epoch, seq)``.
|
|
49
54
|
|
|
@@ -268,7 +273,16 @@ def summarize_transit_records(records: Iterable[dict[str, Any]]) -> dict[str, An
|
|
|
268
273
|
for topic, topic_records in sorted(by_topic.items()):
|
|
269
274
|
lost = sum(record.get("status") == "lost" for record in topic_records)
|
|
270
275
|
reordered = sum(record.get("status") == "reordered" for record in topic_records)
|
|
271
|
-
|
|
276
|
+
# Only the receiving peer can say a message arrived. A row that is still
|
|
277
|
+
# `sent` after the join was written by the sender and never met a
|
|
278
|
+
# receiver row, so it is neither delivered nor confirmed lost — an
|
|
279
|
+
# in-flight message at the window edge looks exactly like one the link
|
|
280
|
+
# never carried. Counting them as delivered is how a link that delivered
|
|
281
|
+
# *nothing* reported `delivered == expected, loss 0%`: sender-side rows
|
|
282
|
+
# (issue #294) arrive whether or not the far side ever sees anything.
|
|
283
|
+
receiver_seen = [record for record in topic_records if record.get("status") in _RECEIVER_STATUSES]
|
|
284
|
+
unconfirmed = len(topic_records) - len(receiver_seen)
|
|
285
|
+
delivered = len(receiver_seen) - lost
|
|
272
286
|
ota = [latency for record in topic_records if (latency := _record_latency_ms(record)) is not None]
|
|
273
287
|
jitter = [float(record["jitter_ms"]) for record in topic_records if record.get("jitter_ms") is not None]
|
|
274
288
|
topics[topic] = {
|
|
@@ -279,8 +293,12 @@ def summarize_transit_records(records: Iterable[dict[str, Any]]) -> dict[str, An
|
|
|
279
293
|
# in the summary because it changes how every rate-like number
|
|
280
294
|
# below should be read, and because it is otherwise invisible.
|
|
281
295
|
"epochs": len({record_epoch(record) for record in topic_records}),
|
|
282
|
-
|
|
296
|
+
# Loss is a receiver fact. With no receiver row at all there is no
|
|
297
|
+
# denominator, and `0.0` would be a claim the data cannot support.
|
|
298
|
+
"loss_pct": round(100.0 * lost / len(receiver_seen), 3) if receiver_seen else None,
|
|
283
299
|
"reordered": reordered,
|
|
300
|
+
# Sent and never accounted for by the receiver.
|
|
301
|
+
"unconfirmed": unconfirmed,
|
|
284
302
|
"ota_hop_ms": _distribution_ms(ota),
|
|
285
303
|
"ota_hop_trend_ms": _latency_trend_ms(topic_records),
|
|
286
304
|
"jitter_ms": _distribution_ms(jitter),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: rosotacom-dev
|
|
3
|
-
Version: 2.5.
|
|
3
|
+
Version: 2.5.dev52
|
|
4
4
|
Summary: Host CLI for ROS OTA communication sessions.
|
|
5
5
|
Author: develNor
|
|
6
6
|
License-Expression: BSD-3-Clause
|
|
@@ -580,6 +580,13 @@ the ssh client's own argv apart, and a transport that promises no more than
|
|
|
580
580
|
`-t` and `-o BatchMode=yes` are dropped rather than forwarded. They are options
|
|
581
581
|
of one client, and a transport that is not ssh never agreed to understand them.
|
|
582
582
|
|
|
583
|
+
The same four options — `--peer-checkout`, `--peer-exec`, `--install-mode`,
|
|
584
|
+
`--install-pin` — are on every `ota-benchmark` genre, not just `ota-smoke`. A
|
|
585
|
+
measurement is the last thing that should require a shell on the peer: the
|
|
586
|
+
whole point of a narrower transport is that the runs which touch a machine
|
|
587
|
+
repeatedly can go through it, and a benchmark touches it far more often than a
|
|
588
|
+
smoke test does.
|
|
589
|
+
|
|
583
590
|
### Live status / debugging overview
|
|
584
591
|
|
|
585
592
|
Enable a continuously-updated, per-topic pipeline overview by setting
|
|
@@ -3,11 +3,11 @@ rosotacom/__main__.py,sha256=djuvQJkU7ZQo1ijAYoKwKCX2nMmvSOGWy5UCyqZwMbU,170
|
|
|
3
3
|
rosotacom/anonymize.py,sha256=hntVp4QzmirW-FqVVnJUcq-yIlzdWdFV3IFFNt_iBUg,13198
|
|
4
4
|
rosotacom/bag_ground_truth.py,sha256=FlL34fA2CWZZxsrz7uxfhPt2VntPuS0ldrOPy58XPMk,15379
|
|
5
5
|
rosotacom/benched_set.py,sha256=lBA1Rj04dbr2e-lIvYTWoL55_LdUpCAC-y7eIvJZ8lc,27217
|
|
6
|
-
rosotacom/benchmark.py,sha256=
|
|
6
|
+
rosotacom/benchmark.py,sha256=3QoXJtWUGQPwvDWyQT_fOjx6K9G2pmvtnVurA21G2QY,76612
|
|
7
7
|
rosotacom/benchmark_delta.py,sha256=qXzriBkbXOeJdlLKM4ziov1F-JfwlseYHE48S9hjFsQ,10005
|
|
8
8
|
rosotacom/bundle_check.py,sha256=l_3BSuYk6juXQmsNU6jkxRbH8ayH2GkiW9ONKMQ1oJY,18270
|
|
9
|
-
rosotacom/cli.py,sha256=
|
|
10
|
-
rosotacom/cli_benchmark.py,sha256=
|
|
9
|
+
rosotacom/cli.py,sha256=P0nZ_VJFCDhaKA5-DsUJg63hnb12lVWwFwaTY2_6APY,409550
|
|
10
|
+
rosotacom/cli_benchmark.py,sha256=0R30if8b9F4uxTX53KmUuEJ0VXcK_5RcudqR9QARV5Q,355021
|
|
11
11
|
rosotacom/deployment.py,sha256=XVhB8JjxhAsglSEEPtiVSeV6fCG0rgGmDRulh14oIYQ,7318
|
|
12
12
|
rosotacom/ffmpeg_packet.py,sha256=zB1BHgY1kexr5sETVMkm4bkVnRytj9k2t0uOYiHUZ6M,4267
|
|
13
13
|
rosotacom/forensics.py,sha256=fxpjuRq3pA1wCf2ERai4SlVnNhJBqZbDh6ETRKODNd0,53576
|
|
@@ -21,7 +21,7 @@ rosotacom/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
|
21
21
|
rosotacom/status_eval.py,sha256=V9KVho5DEBYCD_iG1X2Yg6qd6ZEzopdKSY5QJ6K1sP4,23115
|
|
22
22
|
rosotacom/stream_stats.py,sha256=4MPtU_A_XPlDSNOdfVL62bqbm0acJLqB17Uk5OAS7nQ,23930
|
|
23
23
|
rosotacom/trace_profiles.py,sha256=KNM1RExHDXkppWZdqbSPXTjwJ8f7io8IU48HnKzmHKY,20567
|
|
24
|
-
rosotacom/transit.py,sha256=
|
|
24
|
+
rosotacom/transit.py,sha256=aPMFlMHLX6EOBrUI0lTHwoyD2uNXIgPupCH9nO9BMLA,13699
|
|
25
25
|
rosotacom/video_quality.py,sha256=9NqWA3MgHDvjGmJoHHXQCqb17cyIkHYTrkwNxBoVqMA,33845
|
|
26
26
|
rosotacom/resources/benched-set.yaml,sha256=wbWsoPHRQ5ji_pjM-rPe0dOSXv5kfD31FJoTn9YGsO0,14978
|
|
27
27
|
rosotacom/resources/ros2docker.json.example,sha256=DwJYoqN6M0-Don4nRHtM2h96k1oEmi7UrEfZuEjfrz0,2541
|
|
@@ -92,9 +92,9 @@ rosotacom/resources/examples/sessions/1_heartbeat/session-definition.yaml,sha256
|
|
|
92
92
|
rosotacom/resources/examples/sessions/1_heartbeat_status/session-definition.yaml,sha256=p2iEIOCFbW5ojaNqucSM7ZGPu-dbPl7gXAVhRRB7ojI,1033
|
|
93
93
|
rosotacom/resources/examples/sessions/2_native_chatter/session-definition.yaml,sha256=Zjdbj0U8eAaQXW5aLaKtRldlh7YKhDs1vczZD9AuE6Y,670
|
|
94
94
|
rosotacom/resources/examples/sessions/3_comp_occ_grid/session-definition.yaml,sha256=8KvL13hf0hrL3LJFG3UAiAFR2rio2pADPoaw3eYz2GI,879
|
|
95
|
-
rosotacom/resources/examples/sessions/4_comp_occ_grid_zen/session-definition.yaml,sha256=
|
|
95
|
+
rosotacom/resources/examples/sessions/4_comp_occ_grid_zen/session-definition.yaml,sha256=rS9rsSHRJCh_zUy3RvWcXkKf3t4skO7-vf-D1u6cWNo,977
|
|
96
96
|
rosotacom/resources/examples/sessions/5_sized_payload/session-definition.yaml,sha256=qR-WSvyWb0krF3xuwchmTOVgk086ErP3eqeIu-cAI1w,664
|
|
97
|
-
rosotacom/resources/examples/sessions/6_sized_payload_zen/session-definition.yaml,sha256=
|
|
97
|
+
rosotacom/resources/examples/sessions/6_sized_payload_zen/session-definition.yaml,sha256=8FhaXyFxKPB7H4sNiqf1EXEU6a3KNJHZRCepD590GXg,1156
|
|
98
98
|
rosotacom/resources/examples/sessions/7_latched_static/session-definition.yaml,sha256=Bpr1yyksNr4YKLJ2I2qxQJZRGSEUrzNbeadWcLwHatU,1786
|
|
99
99
|
rosotacom/resources/examples/sessions/8_drop/session-definition.yaml,sha256=iBaQ4p1Vme4Yw6FUzEa3POb2GVLj18plzoGPep_yvdI,1169
|
|
100
100
|
rosotacom/resources/examples/sessions/9_throttle/session-definition.yaml,sha256=CNAl6PcHK9LSRXE3sOHk4iS47tjXjigGHF_ImHXP9DY,1119
|
|
@@ -109,6 +109,8 @@ rosotacom/resources/ws/ota_configs/create_zenoh_json5.py,sha256=um2xU1SfNVo_FvlS
|
|
|
109
109
|
rosotacom/resources/ws/ota_configs/cyclonedds_local_participants.xml.template,sha256=_PAy5sj9_pk2If7xQ_iHF2Oi1tC6HaZe3dDyl8fRSoo,1708
|
|
110
110
|
rosotacom/resources/ws/ota_configs/cyclonedds_minimal.xml.template,sha256=YspSB4xbk2C_CODoowBQUkqsehdGYEd9I0YCjdGN1dc,197
|
|
111
111
|
rosotacom/resources/ws/ota_configs/cyclonedds_tuned.xml.template,sha256=Tb8l9FDEhmfuGp53hTcEqmS6SckdEHjDQ8zQdWPUI6A,1165
|
|
112
|
+
rosotacom/resources/ws/ota_configs/fastdds_easy_mode.xml.template,sha256=NsQfwrf2JoqKaD0j_cEp2LCLNsRcdjKoReuQ_ow9Txk,2037
|
|
113
|
+
rosotacom/resources/ws/ota_configs/fastdds_tuned.xml.template,sha256=isje-dcKII6Lda5KJvFYKZGog6VpHgdeabX9iQIfzrM,5950
|
|
112
114
|
rosotacom/resources/ws/ota_configs/fastdds_unicast.xml.template,sha256=j_BF3E9Dub1l-lVreZxmUa0plGRssCWoNkaIy_6jFVQ,1972
|
|
113
115
|
rosotacom/resources/ws/ota_configs/get_ota_xml.py,sha256=ZHTY0EDPhmxKknCWjFKecfI4R_wbxQWbN7PjEwz4kWQ,7479
|
|
114
116
|
rosotacom/resources/ws/ota_configs/utils.py,sha256=HS-n4AUGFEVd1YmIjFUjD0TMI22M6PUMKaTac30qfd4,3109
|
|
@@ -139,7 +141,7 @@ rosotacom/resources/ws/ros2src/com_py/package.xml,sha256=-OEroELXN-LxiINfnF1AR1X
|
|
|
139
141
|
rosotacom/resources/ws/ros2src/com_py/setup.cfg,sha256=Bm2Msz_ulmJ_Cewmx-ZeBw_hUzO-pz4WQv2FGJsJO5Q,131
|
|
140
142
|
rosotacom/resources/ws/ros2src/com_py/setup.py,sha256=yBcwgVW9VcqKAAcZTQElGgUIWEtKa9-LYnmrO6byxq8,2925
|
|
141
143
|
rosotacom/resources/ws/ros2src/com_py/com_py/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
142
|
-
rosotacom/resources/ws/ros2src/com_py/com_py/base_bridge_relay.py,sha256=
|
|
144
|
+
rosotacom/resources/ws/ros2src/com_py/com_py/base_bridge_relay.py,sha256=Zvb3Q7nNctfMQXll2fjL1vLc64LWaJ2cS0hIUlyr0Xg,6838
|
|
143
145
|
rosotacom/resources/ws/ros2src/com_py/com_py/bridge_in.py,sha256=Qq7bdcmlSQEJCKIQe41F28Y1SnsWoGHmTtM2VqC9548,3018
|
|
144
146
|
rosotacom/resources/ws/ros2src/com_py/com_py/bridge_out.py,sha256=Tlmzpl91yI9F7KludLGgeUdCrRGYh48STZHlzKMU7GQ,2755
|
|
145
147
|
rosotacom/resources/ws/ros2src/com_py/com_py/ffmpeg_flags.py,sha256=q60xeUJIUIqRe4AaWphoq18rdn3nDqKoMbHdLoBKI1Q,2283
|
|
@@ -157,8 +159,8 @@ rosotacom/resources/ws/ros2src/com_py/com_py/msg_transform.py,sha256=gdSYrvMUKuB
|
|
|
157
159
|
rosotacom/resources/ws/ros2src/com_py/com_py/pair_management.py,sha256=DfNNsX09GEKwIFolXFKj0blYQTNhoHQTj09Cat3zKZ8,3765
|
|
158
160
|
rosotacom/resources/ws/ros2src/com_py/com_py/playout_pacer.py,sha256=vHhU6fD07JXrVJhC2fKpfYorW9wHm0hISo7A12pwiTM,3882
|
|
159
161
|
rosotacom/resources/ws/ros2src/com_py/com_py/playout_pacer_core.py,sha256=oo9VX8gulxq8j_uKcSVorAAVs6NE1Bf5_enV539t8O8,3742
|
|
160
|
-
rosotacom/resources/ws/ros2src/com_py/com_py/pub_sub_pair.py,sha256=
|
|
161
|
-
rosotacom/resources/ws/ros2src/com_py/com_py/qos.py,sha256=
|
|
162
|
+
rosotacom/resources/ws/ros2src/com_py/com_py/pub_sub_pair.py,sha256=Oo4kEpwBswmNWQKUO4NMzneYS_S9czj-mbF0YKMhVas,6687
|
|
163
|
+
rosotacom/resources/ws/ros2src/com_py/com_py/qos.py,sha256=8ra4crGkCg6vGZLHWFUve81srONqZCqRq3TFRcheZMc,11738
|
|
162
164
|
rosotacom/resources/ws/ros2src/com_py/com_py/relay_in.py,sha256=yWESVtbZhqyFqkBRHF8SlO115SZEbo3hAWPE8UQ1NS8,3251
|
|
163
165
|
rosotacom/resources/ws/ros2src/com_py/com_py/relay_out.py,sha256=M47gQdWmWQN3DVAR_mrfgdNZ0KuiPhN1ahAmY2adVxo,2991
|
|
164
166
|
rosotacom/resources/ws/ros2src/com_py/com_py/restamp.py,sha256=S8LjtZs_WBdnvL5oN2z1KjxId0eQSJmOWBw54mkZJv8,7347
|
|
@@ -185,19 +187,19 @@ rosotacom/resources/ws/ros2src/com_py/resource/com_py,sha256=47DEQpj8HBSa-_TImW-
|
|
|
185
187
|
rosotacom/resources/ws/ros2src/com_py/test/test_copyright.py,sha256=6nG7vGJHtcFNF27QnznuJ01WPMmy7DVYKOpFHO_zF1c,962
|
|
186
188
|
rosotacom/resources/ws/ros2src/com_py/test/test_flake8.py,sha256=N6gToFB_DOUaLQtXMS0swHigMHo8qFWA6oAbDS-XVdI,884
|
|
187
189
|
rosotacom/resources/ws/ros2src/com_py/test/test_pep257.py,sha256=6LiNSe4paYextABp-BAZtfoJsaob_umh-q5Fu1z1Pto,803
|
|
188
|
-
rosotacom/resources/ws/session/content/base/session_plugin_base.yaml,sha256=
|
|
190
|
+
rosotacom/resources/ws/session/content/base/session_plugin_base.yaml,sha256=kiNijUpyB893IHfuM_hPuW_FzLQo1HmL7WyMVzZ-q88,45597
|
|
189
191
|
rosotacom/resources/ws/session/content/network/up_connectivity.py,sha256=-a6E97Uw159DfRXxYA0MBWRUPA6mQhuAA7pSjASM9qU,13593
|
|
190
192
|
rosotacom/resources/ws/session/content/network/wifi_network_analysis_2.py,sha256=UVRtGdbHYayXM0OFkXs2BV2lW0CsY0m_NTlbPO1J9oE,8682
|
|
191
193
|
rosotacom/resources/ws/session/creation/anonymize_bag.py,sha256=jxOTKFjmde-pyoVWE9-9icpSjf4nh97-q2Eqx-BDUl8,6154
|
|
192
194
|
rosotacom/resources/ws/session/creation/catmux_log_setup.sh,sha256=VyBAFqmhQcIziSnDCRDNUsT5QpbLzKWU-DqRzaj_WQs,5243
|
|
193
195
|
rosotacom/resources/ws/session/creation/create_session_yaml.py,sha256=8cfzkUxK7IebIBC36Vu7lcWtogM8fG0zveBCUGeiVdU,5727
|
|
194
|
-
rosotacom/resources/ws/session/creation/generate_session_files.py,sha256=
|
|
196
|
+
rosotacom/resources/ws/session/creation/generate_session_files.py,sha256=NYdRSZTo_bgTfCVDZ06b0VGB7Np4rRu-ncK2YOYW0TE,153346
|
|
195
197
|
rosotacom/resources/ws/session/creation/run_session.py,sha256=G2hJhrmLp11gm3JZ6_C-zZcqu_reXlE_wmobB7BiCfU,16849
|
|
196
198
|
rosotacom/resources/ws/session/creation/run_session_in_external_terminal.py,sha256=Ub_5f-ttUUc-rAPrZmg_Op34s8Z4C91hTyEn8fgyt-E,2633
|
|
197
199
|
rosotacom/resources/ws/session/creation/strip_ansi.py,sha256=vNjpemcq4xHr0VG4x0bZqvgwEBEfOgN-b4PzbrM5nfM,851
|
|
198
|
-
rosotacom_dev-2.5.
|
|
199
|
-
rosotacom_dev-2.5.
|
|
200
|
-
rosotacom_dev-2.5.
|
|
201
|
-
rosotacom_dev-2.5.
|
|
202
|
-
rosotacom_dev-2.5.
|
|
203
|
-
rosotacom_dev-2.5.
|
|
200
|
+
rosotacom_dev-2.5.dev52.dist-info/licenses/LICENSE.txt,sha256=FDB3-fao3lqZ94wsJHKAH7U88kAnfvZhZC8Hm5rN__g,1459
|
|
201
|
+
rosotacom_dev-2.5.dev52.dist-info/METADATA,sha256=Rk127GLA4yN5kVy3gAYi6dxfO7VENDeGb43WZxadVrQ,54535
|
|
202
|
+
rosotacom_dev-2.5.dev52.dist-info/WHEEL,sha256=YVMoNqKzERt-wjUZwJ33xBGAwnFl-4cqbYkTtWa4itE,91
|
|
203
|
+
rosotacom_dev-2.5.dev52.dist-info/entry_points.txt,sha256=im11ZWqBbgjQUBz2Ik2RNfMu54wlMwgiVpsBKeI7dCI,49
|
|
204
|
+
rosotacom_dev-2.5.dev52.dist-info/top_level.txt,sha256=BZrtQcIVDWn_pQZR3Mlssqy5SaRXHjOa6B-1D9Fy4Ao,10
|
|
205
|
+
rosotacom_dev-2.5.dev52.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
{rosotacom_dev-2.5.dev50.dist-info → rosotacom_dev-2.5.dev52.dist-info}/licenses/LICENSE.txt
RENAMED
|
File without changes
|
|
File without changes
|