rosfix 0.2.3__tar.gz → 0.2.4__tar.gz
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.
- {rosfix-0.2.3 → rosfix-0.2.4}/Cargo.lock +8 -7
- rosfix-0.2.4/PKG-INFO +449 -0
- rosfix-0.2.4/README.md +427 -0
- {rosfix-0.2.3 → rosfix-0.2.4}/crates/ros2-safety-lint/Cargo.toml +1 -1
- rosfix-0.2.4/crates/ros2-safety-lint/README.md +427 -0
- {rosfix-0.2.3 → rosfix-0.2.4}/crates/ros2-safety-lint/docs/assist.md +27 -0
- {rosfix-0.2.3 → rosfix-0.2.4}/crates/ros2-safety-lint/docs/commands.md +2 -1
- rosfix-0.2.4/crates/ros2-safety-lint/docs/models.md +93 -0
- {rosfix-0.2.3 → rosfix-0.2.4}/crates/ros2-safety-lint/src/agents/nav2.rs +4 -2
- {rosfix-0.2.3 → rosfix-0.2.4}/crates/ros2-safety-lint/src/agents/packaging.rs +4 -0
- {rosfix-0.2.3 → rosfix-0.2.4}/crates/ros2-safety-lint/src/agents/ros1.rs +1 -1
- {rosfix-0.2.3 → rosfix-0.2.4}/crates/ros2-safety-lint/src/assist/online.rs +159 -13
- {rosfix-0.2.3 → rosfix-0.2.4}/crates/ros2-safety-lint/src/assist/registry.rs +55 -4
- {rosfix-0.2.3 → rosfix-0.2.4}/crates/ros2-safety-lint/src/docs.rs +21 -0
- {rosfix-0.2.3 → rosfix-0.2.4}/crates/ros2-safety-lint/src/extract/package.rs +13 -12
- {rosfix-0.2.3 → rosfix-0.2.4}/crates/ros2-safety-lint/src/facts.rs +2 -2
- rosfix-0.2.4/crates/ros2-safety-lint/src/fetch.rs +644 -0
- {rosfix-0.2.3 → rosfix-0.2.4}/crates/ros2-safety-lint/src/lib.rs +1 -0
- {rosfix-0.2.3 → rosfix-0.2.4}/crates/ros2-safety-lint/src/main.rs +37 -4
- {rosfix-0.2.3 → rosfix-0.2.4}/crates/ros2-safety-lint/src/pack.rs +79 -0
- {rosfix-0.2.3 → rosfix-0.2.4}/crates/ros2-safety-lint/src/workspace.rs +3 -3
- {rosfix-0.2.3 → rosfix-0.2.4}/crates/rosfix-model/Cargo.toml +5 -0
- rosfix-0.2.4/crates/rosfix-model/README.md +96 -0
- rosfix-0.2.4/crates/rosfix-model/src/bin/bpe.rs +129 -0
- {rosfix-0.2.3 → rosfix-0.2.4}/crates/rosfix-model/src/net.rs +1 -1
- rosfix-0.2.4/crates/rosfix-model/src/tokenizer.rs +344 -0
- {rosfix-0.2.3 → rosfix-0.2.4}/crates/rosfix-model/src/train.rs +310 -166
- rosfix-0.2.3/PKG-INFO +0 -369
- rosfix-0.2.3/README.md +0 -347
- rosfix-0.2.3/crates/ros2-safety-lint/README.md +0 -347
- rosfix-0.2.3/crates/rosfix-model/src/tokenizer.rs +0 -149
- {rosfix-0.2.3 → rosfix-0.2.4}/Cargo.toml +0 -0
- {rosfix-0.2.3 → rosfix-0.2.4}/LICENSE-APACHE +0 -0
- {rosfix-0.2.3 → rosfix-0.2.4}/LICENSE-MIT +0 -0
- {rosfix-0.2.3 → rosfix-0.2.4}/crates/ros2-safety-lint/.gitignore +0 -0
- {rosfix-0.2.3 → rosfix-0.2.4}/crates/ros2-safety-lint/docs/ci.md +0 -0
- {rosfix-0.2.3 → rosfix-0.2.4}/crates/ros2-safety-lint/docs/config.md +0 -0
- {rosfix-0.2.3 → rosfix-0.2.4}/crates/ros2-safety-lint/docs/doctor.md +0 -0
- {rosfix-0.2.3 → rosfix-0.2.4}/crates/ros2-safety-lint/docs/editors.md +0 -0
- {rosfix-0.2.3 → rosfix-0.2.4}/crates/ros2-safety-lint/docs/environment.md +0 -0
- {rosfix-0.2.3 → rosfix-0.2.4}/crates/ros2-safety-lint/docs/fixes.md +0 -0
- {rosfix-0.2.3 → rosfix-0.2.4}/crates/ros2-safety-lint/docs/install.md +0 -0
- {rosfix-0.2.3 → rosfix-0.2.4}/crates/ros2-safety-lint/docs/limits.md +0 -0
- {rosfix-0.2.3 → rosfix-0.2.4}/crates/ros2-safety-lint/docs/live.md +0 -0
- {rosfix-0.2.3 → rosfix-0.2.4}/crates/ros2-safety-lint/docs/migrate.md +0 -0
- {rosfix-0.2.3 → rosfix-0.2.4}/crates/ros2-safety-lint/docs/nodl.md +0 -0
- {rosfix-0.2.3 → rosfix-0.2.4}/crates/ros2-safety-lint/docs/output.md +0 -0
- {rosfix-0.2.3 → rosfix-0.2.4}/crates/ros2-safety-lint/docs/overview.md +0 -0
- {rosfix-0.2.3 → rosfix-0.2.4}/crates/ros2-safety-lint/docs/policy.md +0 -0
- {rosfix-0.2.3 → rosfix-0.2.4}/crates/ros2-safety-lint/docs/status.md +0 -0
- {rosfix-0.2.3 → rosfix-0.2.4}/crates/ros2-safety-lint/docs/triage.md +0 -0
- {rosfix-0.2.3 → rosfix-0.2.4}/crates/ros2-safety-lint/packs/humble.json.gz +0 -0
- {rosfix-0.2.3 → rosfix-0.2.4}/crates/ros2-safety-lint/packs/jazzy.json.gz +0 -0
- {rosfix-0.2.3 → rosfix-0.2.4}/crates/ros2-safety-lint/packs/keys/humble.txt.gz +0 -0
- {rosfix-0.2.3 → rosfix-0.2.4}/crates/ros2-safety-lint/packs/keys/jazzy.txt.gz +0 -0
- {rosfix-0.2.3 → rosfix-0.2.4}/crates/ros2-safety-lint/packs/keys/kilted.txt.gz +0 -0
- {rosfix-0.2.3 → rosfix-0.2.4}/crates/ros2-safety-lint/packs/kilted.json.gz +0 -0
- {rosfix-0.2.3 → rosfix-0.2.4}/crates/ros2-safety-lint/src/agents/control.rs +0 -0
- {rosfix-0.2.3 → rosfix-0.2.4}/crates/ros2-safety-lint/src/agents/cross.rs +0 -0
- {rosfix-0.2.3 → rosfix-0.2.4}/crates/ros2-safety-lint/src/agents/executor.rs +0 -0
- {rosfix-0.2.3 → rosfix-0.2.4}/crates/ros2-safety-lint/src/agents/gzbridge.rs +0 -0
- {rosfix-0.2.3 → rosfix-0.2.4}/crates/ros2-safety-lint/src/agents/launch.rs +0 -0
- {rosfix-0.2.3 → rosfix-0.2.4}/crates/ros2-safety-lint/src/agents/lifecycle.rs +0 -0
- {rosfix-0.2.3 → rosfix-0.2.4}/crates/ros2-safety-lint/src/agents/mod.rs +0 -0
- {rosfix-0.2.3 → rosfix-0.2.4}/crates/ros2-safety-lint/src/agents/moveit.rs +0 -0
- {rosfix-0.2.3 → rosfix-0.2.4}/crates/ros2-safety-lint/src/agents/network.rs +0 -0
- {rosfix-0.2.3 → rosfix-0.2.4}/crates/ros2-safety-lint/src/agents/params.rs +0 -0
- {rosfix-0.2.3 → rosfix-0.2.4}/crates/ros2-safety-lint/src/agents/qos.rs +0 -0
- {rosfix-0.2.3 → rosfix-0.2.4}/crates/ros2-safety-lint/src/agents/security.rs +0 -0
- {rosfix-0.2.3 → rosfix-0.2.4}/crates/ros2-safety-lint/src/agents/simtime.rs +0 -0
- {rosfix-0.2.3 → rosfix-0.2.4}/crates/ros2-safety-lint/src/agents/tf.rs +0 -0
- {rosfix-0.2.3 → rosfix-0.2.4}/crates/ros2-safety-lint/src/agents/topics.rs +0 -0
- {rosfix-0.2.3 → rosfix-0.2.4}/crates/ros2-safety-lint/src/agents/urdf.rs +0 -0
- {rosfix-0.2.3 → rosfix-0.2.4}/crates/ros2-safety-lint/src/assist/learned.rs +0 -0
- {rosfix-0.2.3 → rosfix-0.2.4}/crates/ros2-safety-lint/src/assist/learned_weights.rs +0 -0
- {rosfix-0.2.3 → rosfix-0.2.4}/crates/ros2-safety-lint/src/assist/lexical.rs +0 -0
- {rosfix-0.2.3 → rosfix-0.2.4}/crates/ros2-safety-lint/src/assist/mod.rs +0 -0
- {rosfix-0.2.3 → rosfix-0.2.4}/crates/ros2-safety-lint/src/catalog.rs +0 -0
- {rosfix-0.2.3 → rosfix-0.2.4}/crates/ros2-safety-lint/src/config.rs +0 -0
- {rosfix-0.2.3 → rosfix-0.2.4}/crates/ros2-safety-lint/src/diag.rs +0 -0
- {rosfix-0.2.3 → rosfix-0.2.4}/crates/ros2-safety-lint/src/doctor.rs +0 -0
- {rosfix-0.2.3 → rosfix-0.2.4}/crates/ros2-safety-lint/src/engine.rs +0 -0
- {rosfix-0.2.3 → rosfix-0.2.4}/crates/ros2-safety-lint/src/extract/bt.rs +0 -0
- {rosfix-0.2.3 → rosfix-0.2.4}/crates/ros2-safety-lint/src/extract/cmake.rs +0 -0
- {rosfix-0.2.3 → rosfix-0.2.4}/crates/ros2-safety-lint/src/extract/cpp.rs +0 -0
- {rosfix-0.2.3 → rosfix-0.2.4}/crates/ros2-safety-lint/src/extract/guards.rs +0 -0
- {rosfix-0.2.3 → rosfix-0.2.4}/crates/ros2-safety-lint/src/extract/launch.rs +0 -0
- {rosfix-0.2.3 → rosfix-0.2.4}/crates/ros2-safety-lint/src/extract/mod.rs +0 -0
- {rosfix-0.2.3 → rosfix-0.2.4}/crates/ros2-safety-lint/src/extract/params.rs +0 -0
- {rosfix-0.2.3 → rosfix-0.2.4}/crates/ros2-safety-lint/src/extract/python.rs +0 -0
- {rosfix-0.2.3 → rosfix-0.2.4}/crates/ros2-safety-lint/src/extract/rviz.rs +0 -0
- {rosfix-0.2.3 → rosfix-0.2.4}/crates/ros2-safety-lint/src/extract/sros2.rs +0 -0
- {rosfix-0.2.3 → rosfix-0.2.4}/crates/ros2-safety-lint/src/extract/urdf.rs +0 -0
- {rosfix-0.2.3 → rosfix-0.2.4}/crates/ros2-safety-lint/src/extract/yaml.rs +0 -0
- {rosfix-0.2.3 → rosfix-0.2.4}/crates/ros2-safety-lint/src/fix.rs +0 -0
- {rosfix-0.2.3 → rosfix-0.2.4}/crates/ros2-safety-lint/src/html.rs +0 -0
- {rosfix-0.2.3 → rosfix-0.2.4}/crates/ros2-safety-lint/src/init.rs +0 -0
- {rosfix-0.2.3 → rosfix-0.2.4}/crates/ros2-safety-lint/src/installed.rs +0 -0
- {rosfix-0.2.3 → rosfix-0.2.4}/crates/ros2-safety-lint/src/live.rs +0 -0
- {rosfix-0.2.3 → rosfix-0.2.4}/crates/ros2-safety-lint/src/migrate.rs +0 -0
- {rosfix-0.2.3 → rosfix-0.2.4}/crates/ros2-safety-lint/src/nodl.rs +0 -0
- {rosfix-0.2.3 → rosfix-0.2.4}/crates/ros2-safety-lint/src/policy.rs +0 -0
- {rosfix-0.2.3 → rosfix-0.2.4}/crates/ros2-safety-lint/src/report.rs +0 -0
- {rosfix-0.2.3 → rosfix-0.2.4}/crates/ros2-safety-lint/src/resolve.rs +0 -0
- {rosfix-0.2.3 → rosfix-0.2.4}/crates/ros2-safety-lint/src/rules.rs +0 -0
- {rosfix-0.2.3 → rosfix-0.2.4}/crates/ros2-safety-lint/src/sandbox.rs +0 -0
- {rosfix-0.2.3 → rosfix-0.2.4}/crates/ros2-safety-lint/src/session.rs +0 -0
- {rosfix-0.2.3 → rosfix-0.2.4}/crates/ros2-safety-lint/src/source.rs +0 -0
- {rosfix-0.2.3 → rosfix-0.2.4}/crates/ros2-safety-lint/src/status.rs +0 -0
- {rosfix-0.2.3 → rosfix-0.2.4}/crates/ros2-safety-lint/src/triage.rs +0 -0
- {rosfix-0.2.3 → rosfix-0.2.4}/crates/ros2-safety-lint/src/util.rs +0 -0
- {rosfix-0.2.3 → rosfix-0.2.4}/crates/ros2-safety-lint/tests/agents.rs +0 -0
- {rosfix-0.2.3 → rosfix-0.2.4}/crates/ros2-safety-lint/tests/cli.rs +0 -0
- {rosfix-0.2.3 → rosfix-0.2.4}/crates/ros2-safety-lint/tests/commands.rs +0 -0
- {rosfix-0.2.3 → rosfix-0.2.4}/crates/ros2-safety-lint/tests/fix.rs +0 -0
- {rosfix-0.2.3 → rosfix-0.2.4}/crates/rosfix-model/src/bin/bench.rs +0 -0
- {rosfix-0.2.3 → rosfix-0.2.4}/crates/rosfix-model/src/format.rs +0 -0
- {rosfix-0.2.3 → rosfix-0.2.4}/crates/rosfix-model/src/lib.rs +0 -0
- {rosfix-0.2.3 → rosfix-0.2.4}/crates/rosfix-model/src/sha256.rs +0 -0
- {rosfix-0.2.3 → rosfix-0.2.4}/pyproject.toml +0 -0
- {rosfix-0.2.3 → rosfix-0.2.4}/python/rosfix/__init__.py +0 -0
- {rosfix-0.2.3 → rosfix-0.2.4}/python/rosfix/__main__.py +0 -0
- {rosfix-0.2.3 → rosfix-0.2.4}/python/rosfix/py.typed +0 -0
- {rosfix-0.2.3 → rosfix-0.2.4}/python/rosfix/ros2cli.py +0 -0
- {rosfix-0.2.3 → rosfix-0.2.4}/python/rosfix/ros2doctor.py +0 -0
|
@@ -10,9 +10,9 @@ checksum = "320119579fcad9c21884f5c4861d16174d0e06250625266f50fe6898340abefa"
|
|
|
10
10
|
|
|
11
11
|
[[package]]
|
|
12
12
|
name = "ahash"
|
|
13
|
-
version = "0.8.
|
|
13
|
+
version = "0.8.15"
|
|
14
14
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
15
|
-
checksum = "
|
|
15
|
+
checksum = "3019c0b8d883a8a17df3129e417ef463c087807d245e8881a31d583dee1c0519"
|
|
16
16
|
dependencies = [
|
|
17
17
|
"cfg-if",
|
|
18
18
|
"getrandom 0.4.3",
|
|
@@ -820,12 +820,13 @@ name = "ros2-safety-mutate"
|
|
|
820
820
|
version = "0.2.0"
|
|
821
821
|
dependencies = [
|
|
822
822
|
"rosfix",
|
|
823
|
+
"rosfix-model",
|
|
823
824
|
"serde_json",
|
|
824
825
|
]
|
|
825
826
|
|
|
826
827
|
[[package]]
|
|
827
828
|
name = "rosfix"
|
|
828
|
-
version = "0.2.
|
|
829
|
+
version = "0.2.4"
|
|
829
830
|
dependencies = [
|
|
830
831
|
"clap",
|
|
831
832
|
"flate2",
|
|
@@ -1563,18 +1564,18 @@ dependencies = [
|
|
|
1563
1564
|
|
|
1564
1565
|
[[package]]
|
|
1565
1566
|
name = "zerocopy"
|
|
1566
|
-
version = "0.8.
|
|
1567
|
+
version = "0.8.66"
|
|
1567
1568
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1568
|
-
checksum = "
|
|
1569
|
+
checksum = "cba8a86aee14fc8cc6c208af60854b3d4ab7185a9a369a12c648faa2716ff42a"
|
|
1569
1570
|
dependencies = [
|
|
1570
1571
|
"zerocopy-derive",
|
|
1571
1572
|
]
|
|
1572
1573
|
|
|
1573
1574
|
[[package]]
|
|
1574
1575
|
name = "zerocopy-derive"
|
|
1575
|
-
version = "0.8.
|
|
1576
|
+
version = "0.8.66"
|
|
1576
1577
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1577
|
-
checksum = "
|
|
1578
|
+
checksum = "f89bca3b96ceb3cfcb4572790402f977442270d252b9a8504ebc258760c55f94"
|
|
1578
1579
|
dependencies = [
|
|
1579
1580
|
"proc-macro2",
|
|
1580
1581
|
"quote",
|
rosfix-0.2.4/PKG-INFO
ADDED
|
@@ -0,0 +1,449 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: rosfix
|
|
3
|
+
Version: 0.2.4
|
|
4
|
+
Classifier: Development Status :: 4 - Beta
|
|
5
|
+
Classifier: Environment :: Console
|
|
6
|
+
Classifier: Intended Audience :: Developers
|
|
7
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
8
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
9
|
+
Classifier: Programming Language :: Rust
|
|
10
|
+
Classifier: Topic :: Software Development :: Quality Assurance
|
|
11
|
+
Classifier: Topic :: Scientific/Engineering
|
|
12
|
+
License-File: LICENSE-APACHE
|
|
13
|
+
License-File: LICENSE-MIT
|
|
14
|
+
Summary: Static checker for silent ROS 2 misconfigurations (parameters, topics, QoS, executors, ros2_control, Nav2, launch/packaging, SROS2)
|
|
15
|
+
Keywords: ros2,robotics,linter,static-analysis,launch
|
|
16
|
+
Home-Page: https://github.com/SohamWalam11/ros2-safety-lint
|
|
17
|
+
License: MIT OR Apache-2.0
|
|
18
|
+
Requires-Python: >=3.8
|
|
19
|
+
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
|
|
20
|
+
Project-URL: Repository, https://github.com/SohamWalam11/ros2-safety-lint
|
|
21
|
+
|
|
22
|
+
# rosfix
|
|
23
|
+
|
|
24
|
+
[](https://github.com/SohamWalam11/ros2-safety-lint/actions/workflows/ci.yml)
|
|
25
|
+
[](https://crates.io/crates/rosfix)
|
|
26
|
+
[](https://pypi.org/project/rosfix/)
|
|
27
|
+
[](https://huggingface.co/SohamW11/rosfix-assist)
|
|
28
|
+
[](#license)
|
|
29
|
+
|
|
30
|
+
**A static checker for the ROS 2 misconfigurations that fail silently.**
|
|
31
|
+
|
|
32
|
+
ROS 2 configuration is spread over launch files, parameter YAML, C++/Python nodes,
|
|
33
|
+
`package.xml`/CMake/`setup.py`, URDF/xacro, controller, Nav2, MoveIt and ros_gz_bridge configs.
|
|
34
|
+
Many mistakes in that spread are never reported at runtime: a parameter under the wrong node key
|
|
35
|
+
is simply dropped, a remap that matches nothing does nothing, a RELIABLE subscriber never hears a
|
|
36
|
+
BEST_EFFORT publisher.
|
|
37
|
+
|
|
38
|
+
rosfix reads the whole workspace, **resolves the launch graph** the way ROS 2 would (namespaces,
|
|
39
|
+
remaps, launch arguments, includes, parameter-file matching), links every launched node to its
|
|
40
|
+
source code, and reports what will not work, before you run anything.
|
|
41
|
+
|
|
42
|
+
- **No ROS installation needed.** Runs on Linux, macOS and Windows; uses your installed ROS 2
|
|
43
|
+
when a shell is sourced.
|
|
44
|
+
- **Small and frugal.** Single-threaded by default, typically 10–50 MB of RAM, no GPU.
|
|
45
|
+
- **Silent when unsure.** Facts it cannot resolve statically turn dependent checks off instead
|
|
46
|
+
of producing guesses.
|
|
47
|
+
- **Verified fixes.** Every automatic fix is re-checked against the whole workspace before a
|
|
48
|
+
file is written.
|
|
49
|
+
|
|
50
|
+
## Install
|
|
51
|
+
|
|
52
|
+
| Channel | Command |
|
|
53
|
+
|---|---|
|
|
54
|
+
| PyPI (adds `ros2 rosfix`) | `pip install rosfix` |
|
|
55
|
+
| crates.io (Rust 1.88+) | `cargo install rosfix` |
|
|
56
|
+
| Docker | `docker run --rm -v "$PWD:/ws" ghcr.io/sohamwalam11/rosfix:jazzy-lite /ws` |
|
|
57
|
+
| Prebuilt binaries | [GitHub releases](https://github.com/SohamWalam11/ros2-safety-lint/releases) (Linux x86_64/aarch64, macOS x86_64/arm64, Windows x86_64; about 15 MB) |
|
|
58
|
+
|
|
59
|
+
Docker images exist for `humble`, `jazzy` and `kilted` (`ghcr.io/sohamwalam11/rosfix:<distro>-lite`,
|
|
60
|
+
or `:v0.2.3-<distro>-lite` for a fixed version). Every channel ships the same binary, with the fix
|
|
61
|
+
ranker and knowledge packs built in. More in the
|
|
62
|
+
[install guide](https://github.com/SohamWalam11/ros2-safety-lint/blob/main/crates/ros2-safety-lint/docs/install.md).
|
|
63
|
+
|
|
64
|
+
## Quick start
|
|
65
|
+
|
|
66
|
+
```bash
|
|
67
|
+
cd ~/ros2_ws
|
|
68
|
+
rosfix # analyse the workspace in the current directory
|
|
69
|
+
rosfix --distro jazzy # also check nodes from installed packages (Nav2, ros2_control, …)
|
|
70
|
+
rosfix fix # preview verified automatic fixes as a diff
|
|
71
|
+
rosfix fix --write # apply them
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
Typical output:
|
|
75
|
+
|
|
76
|
+
```
|
|
77
|
+
warning[P003]: `deadzon` is not declared by node `/joy_node` … help: Did you mean `deadzone`?
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
Exit codes: `0` clean, `1` findings at or above `--fail-on` (default `warning`), `2` usage or tool
|
|
81
|
+
error.
|
|
82
|
+
|
|
83
|
+
## What it checks
|
|
84
|
+
|
|
85
|
+
93 rules in 18 agents (17 domain agents, plus `core`, which reports files it could not parse):
|
|
86
|
+
|
|
87
|
+
| Agent | Rules | Example |
|
|
88
|
+
|---|---|---|
|
|
89
|
+
| **params** | P001–P008 | YAML key `controller_server` while the node runs as `/robot1/controller_server`; `max_velocty` (typo) not declared by the node; `max_vel: 1` for a `double` (crashes at startup); missing `ros__parameters`; value outside a declared range; parameter renamed between distributions; two parameters that contradict each other. |
|
|
90
|
+
| **topics** | T001–T005 | Subscriber on `/scan` while the publisher is on `/robot1/scan`; remap of a name the node never uses; one topic with two message types. |
|
|
91
|
+
| **executor** | E001–E002 | Synchronous service call / future wait / spin inside a callback that shares the callback group (or a single-threaded executor) with the response, which deadlocks; sleep in a callback. |
|
|
92
|
+
| **control** | C001–C010 | Controller joint not in any `<ros2_control>` block; velocity controller on a position-only joint; controller type typo; `<ros2_control>` joint missing from the URDF; spawned controller never defined; `update_rate` the controller manager cannot run. |
|
|
93
|
+
| **packaging** | L001–L012 | Launch file starts an executable the package does not build/install; dependency used but not in `package.xml`; `setup.cfg` without `install_scripts`; `launch/` never installed; dependency `rosdep` cannot resolve; `install()` of a path that does not exist; Python subpackage missing from `setup.py`. |
|
|
94
|
+
| **launch** | A001–A003 | `$(var x)` never declared; declared argument never used; two nodes with the same fully qualified name. |
|
|
95
|
+
| **simtime** | S001–S003 | Some nodes on simulated time, others on wall time; simulator launched but a node not using `/clock`. |
|
|
96
|
+
| **qos** | Q001–Q005 | RELIABLE subscription on a BEST_EFFORT publisher (incl. RViz displays); TRANSIENT_LOCAL subscription on a VOLATILE publisher; `qos_overrides` in YAML for an endpoint that does not accept overrides (silently ignored). |
|
|
97
|
+
| **nav2** | N001–N006, N008–N010 | Plugin listed without a section; plugin type typo; frame not in the URDF; degenerate footprint; inflation radius smaller than the robot; plugin renamed between distributions; unknown behavior-tree node. |
|
|
98
|
+
| **lifecycle** | M001–M002 | Lifecycle node no manager activates; manager lists a node that does not exist. |
|
|
99
|
+
| **tf** | F001–F005 | Frame with two parents; bad `static_transform_publisher` arguments; leading slash in a lookup; cycle in the static tree. |
|
|
100
|
+
| **network** | D001–D005 | Invalid `ROS_DOMAIN_ID`; unknown `RMW_IMPLEMENTATION`; missing DDS profile file; deprecated `ROS_LOCALHOST_ONLY`; invalid Zenoh setting. |
|
|
101
|
+
| **security** | X001–X006 | Unauthenticated participants allowed; `<default>ALLOW`; wildcard grants; expired permissions; unknown enclave; node publishing a topic its SROS2 policy denies. |
|
|
102
|
+
| **moveit** | V001–V005 | `kinematics.yaml` group not in the SRDF; integer joint limit; SRDF names a joint the URDF lacks; MoveIt controller no ros2_control config defines. |
|
|
103
|
+
| **urdf** | U001–U004 | Element urdfdom rejects; impossible inertia; missing `package://` mesh; empty joint-limit range. |
|
|
104
|
+
| **gzbridge** | G001–G005 | ROS/Gazebo type pair `ros_gz_bridge` cannot convert; malformed bridge argument or YAML entry; one-way bridge pointing the wrong way. |
|
|
105
|
+
| **ros1** | O001–O003 | ROS 1 launch file, `ros/ros.h` include or catkin package left in a ROS 2 workspace. |
|
|
106
|
+
|
|
107
|
+
`rosfix rules` lists all rules; `rosfix explain P001` explains one.
|
|
108
|
+
|
|
109
|
+
**When rosfix cannot know, it stays silent.** Facts that cannot be resolved statically (dynamic
|
|
110
|
+
launch code, parameters declared by plugins, external packages) are tracked explicitly and turn
|
|
111
|
+
the dependent checks off instead of guessing. `rosfix graph` shows exactly what was understood.
|
|
112
|
+
|
|
113
|
+
## Works with your installed ROS
|
|
114
|
+
|
|
115
|
+
In a sourced ROS 2 shell, rosfix reads the installed environment (`AMENT_PREFIX_PATH`): installed
|
|
116
|
+
packages, their executables, pluginlib plugins and rclcpp components, and the launch and parameter
|
|
117
|
+
files of packages your launch files include.
|
|
118
|
+
|
|
119
|
+
For nodes from installed packages (Nav2, ros2_controllers, robot_state_publisher, slam_toolbox,
|
|
120
|
+
robot_localization, …) it uses a built-in **knowledge pack** per distribution (Humble, Jazzy,
|
|
121
|
+
Kilted; Rolling uses the newest), extracted from their source. So `controller_frequency: 20` for
|
|
122
|
+
Nav2's controller server is reported as a startup crash without Nav2's source on your machine.
|
|
123
|
+
|
|
124
|
+
- The distribution comes from `ROS_DISTRO`, `--distro`, or `distro = "jazzy"` in `rosfix.toml`.
|
|
125
|
+
Without one, the packs are not used, because parameter names differ between distributions.
|
|
126
|
+
- `--ros-prefix` points at another install; `--no-ros` ignores the installed environment.
|
|
127
|
+
|
|
128
|
+
Each pack records every node's declared parameters (with type and default) and its topic
|
|
129
|
+
endpoints with the QoS its source requests. An endpoint that asks for the system-default profile
|
|
130
|
+
is kept as *unknown*, since the middleware decides it. Each distribution also embeds the keys
|
|
131
|
+
`rosdep` can resolve (4,590 Humble, 4,696 Jazzy, 3,990 Kilted). The packs are published as a
|
|
132
|
+
[dataset on Hugging Face](https://huggingface.co/datasets/SohamW11/rosfix-knowledge-packs).
|
|
133
|
+
|
|
134
|
+
## Usage
|
|
135
|
+
|
|
136
|
+
```bash
|
|
137
|
+
rosfix check ~/ros2_ws/src # analyse a directory
|
|
138
|
+
rosfix check --format sarif -o rosfix.sarif # for GitHub code scanning
|
|
139
|
+
rosfix check --format json # stable, versioned JSON
|
|
140
|
+
rosfix check --format rdjson | reviewdog -f=rdjson -reporter=github-pr-review # fixes as PR suggestions
|
|
141
|
+
rosfix graph --format mermaid # resolved launch graph (text, json, dot, mermaid)
|
|
142
|
+
rosfix graph --format callbacks # static callback graph: executors, timers, subscriptions
|
|
143
|
+
rosfix migrate --to kilted # what breaks on another ROS distribution
|
|
144
|
+
rosfix doctor # check this shell's ROS 2 / middleware setup (DDS, Zenoh)
|
|
145
|
+
rosfix triage launch.log # explain errors in a failed launch log
|
|
146
|
+
rosfix init # write rosfix.toml and a GitHub workflow
|
|
147
|
+
rosfix status # what each agent checked, found, and what limits it
|
|
148
|
+
rosfix report -o report.html # one HTML page: findings, agents, launch graph
|
|
149
|
+
rosfix shell src # interactive, with history and Tab completion
|
|
150
|
+
rosfix docs # the full manual, built into the binary
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
The original flags (`rosfix --fix --write`, `--print-graph`, `--list-rules`, …) keep working.
|
|
154
|
+
The full command reference is in the
|
|
155
|
+
[manual](https://github.com/SohamWalam11/ros2-safety-lint/tree/main/crates/ros2-safety-lint/docs)
|
|
156
|
+
and in `rosfix docs`.
|
|
157
|
+
|
|
158
|
+
### Editors
|
|
159
|
+
|
|
160
|
+
`rosfix lsp` is a language server: findings as you type, fixes as quick fixes. A
|
|
161
|
+
[VS Code extension](https://github.com/SohamWalam11/ros2-safety-lint/tree/main/editors/vscode)
|
|
162
|
+
wraps it.
|
|
163
|
+
|
|
164
|
+
### GitHub Actions
|
|
165
|
+
|
|
166
|
+
```yaml
|
|
167
|
+
- uses: actions/checkout@v4
|
|
168
|
+
- uses: SohamWalam11/ros2-safety-lint@v0.2.3
|
|
169
|
+
with:
|
|
170
|
+
path: src
|
|
171
|
+
distro: jazzy
|
|
172
|
+
fail-on: error
|
|
173
|
+
pr-suggestions: "true" # verified fixes as one-click suggestions on pull requests
|
|
174
|
+
```
|
|
175
|
+
|
|
176
|
+
The action downloads the checksum-verified release binary and uploads SARIF to code scanning. To
|
|
177
|
+
install from crates.io instead, copy the
|
|
178
|
+
[workflow template](https://github.com/SohamWalam11/ros2-safety-lint/blob/main/.github/workflows/ros2-safety-lint-template.yml).
|
|
179
|
+
|
|
180
|
+
### Configuration (`rosfix.toml`)
|
|
181
|
+
|
|
182
|
+
```toml
|
|
183
|
+
ignore = ["third_party/**"]
|
|
184
|
+
test_paths = ["**/test/**"] # executor rules skip these
|
|
185
|
+
external_topics = ["/scan"] # provided outside this workspace
|
|
186
|
+
fail_on = "error"
|
|
187
|
+
distro = "jazzy" # enables the knowledge pack without a sourced shell
|
|
188
|
+
online = false # allow --online lookups by default
|
|
189
|
+
# searxng_url = "https://searx.example.org"
|
|
190
|
+
|
|
191
|
+
[rules]
|
|
192
|
+
P003 = "off"
|
|
193
|
+
Q004 = "warning"
|
|
194
|
+
```
|
|
195
|
+
|
|
196
|
+
Unknown keys and rule IDs are errors, not silently ignored. Suppress one finding with a comment on
|
|
197
|
+
the same or previous line: `# rosfix: ignore[P003]` (also `//` and `<!-- -->`). To adopt rosfix on
|
|
198
|
+
an existing codebase, run `--write-baseline rosfix-baseline.json` once and
|
|
199
|
+
`--baseline rosfix-baseline.json` afterwards: only new findings are reported.
|
|
200
|
+
|
|
201
|
+
## Fixes
|
|
202
|
+
|
|
203
|
+
### Automatic fixes
|
|
204
|
+
|
|
205
|
+
Only local, mechanical fixes are automatic (e.g. `1` → `1.0`, renaming a misspelled key, adding a
|
|
206
|
+
`<depend>`, installing `launch/`). Every candidate fix is applied **in memory**, the whole
|
|
207
|
+
workspace is re-analysed, and the fix is kept only if its finding disappears and no new error
|
|
208
|
+
appears. Files are then written atomically. Everything else is shown as a suggestion.
|
|
209
|
+
|
|
210
|
+
### Build check (`--verify-build`)
|
|
211
|
+
|
|
212
|
+
`--fix --verify-build` copies the workspace to a temporary directory and builds it before and
|
|
213
|
+
after the fixes, in a network-less `ros:<distro>` container when Docker is available, otherwise
|
|
214
|
+
with your local `colcon`. Fixes that break a build that worked are not written.
|
|
215
|
+
|
|
216
|
+
### Fix assistant (`--assist`)
|
|
217
|
+
|
|
218
|
+
Some findings have no mechanical fix, e.g. a parameter written as `max_lin_vel` when the node
|
|
219
|
+
declares `max_linear_velocity`. Each such finding carries the closed set of valid values rosfix
|
|
220
|
+
knows (declared parameters, `<ros2_control>` joints, URDF frames, executables, enclaves).
|
|
221
|
+
`--assist` picks one of them with a **built-in learned ranker**: 16 string features per option
|
|
222
|
+
(edit distances, n-gram overlap, abbreviation and word-prefix coverage, …) scored by a tiny neural
|
|
223
|
+
network. It has 289 weights and 32 normalisation constants (about 1.3 KB), compiled into the
|
|
224
|
+
binary, and needs no model files, ML runtime, GPU or network. It scores a finding in microseconds.
|
|
225
|
+
|
|
226
|
+
It is evaluated on held-out packages **and** names: a test case is dropped if its name also occurs
|
|
227
|
+
in training, because packages share many names. On the shipped model's held-out cases it picks the
|
|
228
|
+
right value in 69.5% of cases against 54.1% for plain lexical ranking, and makes 7 wrong picks in
|
|
229
|
+
1,791 cases against 30. It also abstains when none of the options is the intended one (for
|
|
230
|
+
example a remap of a name the node never uses).
|
|
231
|
+
|
|
232
|
+
| held-out (shipped model) | cases | lexical: correct / abstain / wrong | learned: correct / abstain / wrong |
|
|
233
|
+
|---|---:|---|---|
|
|
234
|
+
| right answer offered | 1,062 | 575 / 482 / 5 | **738** / 322 / **2** |
|
|
235
|
+
| right answer absent (any pick is wrong) | 729 | 0 / 704 / 25 | 0 / **724** / **5** |
|
|
236
|
+
|
|
237
|
+
Over 5 package folds (3,005 held-out cases) it is correct 43.2% of the time against 26.7% and
|
|
238
|
+
makes 48 wrong picks against 59. It is correct more often in every fold, but in 3 of the 5 folds
|
|
239
|
+
it makes slightly more wrong picks than lexical ranking. On the mutation benchmark below it fixed
|
|
240
|
+
all 28 misspelled executable names (lexical: 12).
|
|
241
|
+
|
|
242
|
+
The assistant only chooses among real options, never invents text, and abstains unless there is a
|
|
243
|
+
clear winner. Every choice is verified by re-analysis. Because verification cannot prove intent,
|
|
244
|
+
assisted fixes are written only with `--fix --write --accept-assist`.
|
|
245
|
+
|
|
246
|
+
Weights and model card: [SohamW11/rosfix-assist](https://huggingface.co/SohamW11/rosfix-assist).
|
|
247
|
+
Training and evaluation:
|
|
248
|
+
[training/README.md](https://github.com/SohamWalam11/ros2-safety-lint/blob/main/training/README.md).
|
|
249
|
+
|
|
250
|
+
#### Larger assist models (in development)
|
|
251
|
+
|
|
252
|
+
`--model` selects the ranker: `builtin` (default), a downloadable tier, or a `.rfm` file path.
|
|
253
|
+
Tiers also see the rule and the source lines around the problem, not just the two names. They are
|
|
254
|
+
the same int8 transformer in different sizes, run on any CPU, need no GPU, network or Python, and
|
|
255
|
+
give bit-identical results on every machine.
|
|
256
|
+
|
|
257
|
+
| tier | stored numbers | file | per candidate, 64-token input* |
|
|
258
|
+
|---|---:|---:|---:|
|
|
259
|
+
| builtin | 321 | in the binary | < 0.01 ms |
|
|
260
|
+
| nano | 1.46 M | 1.6 MB | 5 ms |
|
|
261
|
+
| mini | 5.32 M | 5.5 MB | 25 ms |
|
|
262
|
+
| base | 23.3 M | 23.6 MB | 85 ms |
|
|
263
|
+
|
|
264
|
+
\* Median of 5 trials, one thread, on a 15 W laptop CPU (Intel Core 5 120U)
|
|
265
|
+
([raw data](https://github.com/SohamWalam11/ros2-safety-lint/blob/main/paper/data/tier_runtime_trials_2026-11-24.txt)).
|
|
266
|
+
|
|
267
|
+
**No tier has been released yet.** A tier name only loads a checksum-verified released file. Until
|
|
268
|
+
a tier beats the built-in ranker with no more wrong picks in every evaluation fold, rosfix uses
|
|
269
|
+
the built-in ranker.
|
|
270
|
+
|
|
271
|
+
Training data so far, all built in plain Rust and reproducible byte for byte: an 8,192-token
|
|
272
|
+
byte-level BPE tokenizer learned from the config files of 830 public ROS 2 repositories (2.71
|
|
273
|
+
bytes per token on 74 held-out repositories), and the built-in ranker's 16,456 cases with rule and
|
|
274
|
+
source context (65 tokens on average). Details:
|
|
275
|
+
[crates/rosfix-model](https://github.com/SohamWalam11/ros2-safety-lint/tree/main/crates/rosfix-model).
|
|
276
|
+
|
|
277
|
+
## Online references (`--online`)
|
|
278
|
+
|
|
279
|
+
Off by default. With `--online` (or `online = true`), rosfix attaches links to related Robotics
|
|
280
|
+
Stack Exchange questions and GitHub issues (and your own SearXNG instance, if `searxng_url` is
|
|
281
|
+
set).
|
|
282
|
+
|
|
283
|
+
Queries are built **only from the rule that fired**: no file content, path, node or package name
|
|
284
|
+
leaves your machine (`--show-queries` prints them). The lookup runs in a separate helper process
|
|
285
|
+
restricted to an allowlist of HTTPS hosts, with no redirects, short timeouts and size limits.
|
|
286
|
+
Results are cached locally.
|
|
287
|
+
|
|
288
|
+
**Beyond the embedded packs.** With `--online` and a known distribution, rosfix also covers
|
|
289
|
+
launched packages outside the embedded packs. It looks each one up in the public rosdistro index
|
|
290
|
+
of the distribution, downloads the source of its repository at the distribution's branch, runs
|
|
291
|
+
its own extractors over that source once, and stores the result as a *local pack*
|
|
292
|
+
(`<cache>/rosfix/packs/<distro>/`, or `$ROSFIX_CACHE_DIR`). Later runs use the local packs without
|
|
293
|
+
network access.
|
|
294
|
+
|
|
295
|
+
For example, a typo in a `joy_node` parameter file is found only after `joy` has been fetched:
|
|
296
|
+
|
|
297
|
+
```
|
|
298
|
+
$ rosfix . --distro jazzy --online --show-queries
|
|
299
|
+
rosfix: online request: https://raw.githubusercontent.com/ros/rosdistro/master/jazzy/distribution.yaml
|
|
300
|
+
rosfix: online request: https://codeload.github.com/ros-drivers/joystick_drivers/tar.gz/ros2
|
|
301
|
+
rosfix: online: built a local pack from ros-drivers/joystick_drivers@ros2 (3 package(s) with nodes)
|
|
302
|
+
rosfix: online: now covered: joy
|
|
303
|
+
warning[P003]: `deadzon` is not declared by node `/joy_node` … help: Did you mean `deadzone`?
|
|
304
|
+
```
|
|
305
|
+
|
|
306
|
+
Package names are matched against the downloaded index locally, so names of private packages
|
|
307
|
+
never leave the machine. The requests do show GitHub which public repositories you use. Archives
|
|
308
|
+
are unpacked with path checks and size limits. Only source, build and manifest files are kept,
|
|
309
|
+
nothing is executed, and the unpacked sources are deleted after the pack is built. A local pack
|
|
310
|
+
only adds packages; it never replaces what an embedded pack says. Delete the directory to drop
|
|
311
|
+
the local packs.
|
|
312
|
+
|
|
313
|
+
## Evaluation
|
|
314
|
+
|
|
315
|
+
Measured on 24 November 2026 on shallow clones of each repository's default branch (release
|
|
316
|
+
build, one thread, median of three runs after one warm-up, peak working set). Raw outputs and the
|
|
317
|
+
exact revisions are in
|
|
318
|
+
[paper/data](https://github.com/SohamWalam11/ros2-safety-lint/tree/main/paper/data).
|
|
319
|
+
|
|
320
|
+
| Repository | Files parsed | Wall time | Peak RAM | Findings |
|
|
321
|
+
|---|---:|---:|---:|---|
|
|
322
|
+
| ros2/demos | 145 | 0.15 s | 18 MB | E002 ×2, L002 ×8 |
|
|
323
|
+
| ros2/sros2 | 20 | 0.03 s | 11 MB | none |
|
|
324
|
+
| ROBOTIS-GIT/turtlebot3 | 63 | 0.07 s | 16 MB | E002 ×2, L002 ×8 |
|
|
325
|
+
| ros-controls/ros2_control | 124 | 0.60 s | 25 MB | none |
|
|
326
|
+
| ros-navigation/navigation2 | 778 | 2.08 s | 51 MB | L002 ×49, S002 ×9, A002 ×2, N009, P005, T003 |
|
|
327
|
+
|
|
328
|
+
The L002 findings are missing `package.xml` dependencies (e.g. `turtlebot3_bringup` starts
|
|
329
|
+
`rclcpp_components`, `camera_ros` and `image_view` without declaring them); E002 are sleeps inside
|
|
330
|
+
executor callbacks; S002 flags nodes in Nav2 example launch files that run beside a simulator
|
|
331
|
+
without `use_sim_time` (low impact, but accurate).
|
|
332
|
+
|
|
333
|
+
**Mutation benchmark.** Realistic misconfigurations are injected one at a time, in memory, at real
|
|
334
|
+
sites in 12 repositories (PX4-Autopilot, autoware, moveit2, navigation2, rmf_ros2, ros2_control,
|
|
335
|
+
rmw_fastrtps, demos, system_tests, turtlebot3, sros2, rmw_cyclonedds; at most 20 sites per
|
|
336
|
+
operator and repository). A mutation counts as detected only if the expected rule fires at the
|
|
337
|
+
mutated line.
|
|
338
|
+
|
|
339
|
+
| Mutation | Injected | Detected |
|
|
340
|
+
|---|---:|---:|
|
|
341
|
+
| `ros__parameters` misspelled (P002) | 50 | 50 |
|
|
342
|
+
| Nav2 plugin type typo (N002) | 40 | 40 |
|
|
343
|
+
| executable name typo in a launch file (L001) | 28 | 28 |
|
|
344
|
+
| parameter key typo (P003) | 20 | 20 |
|
|
345
|
+
| runtime dependency removed from package.xml (L002) | 16 | 16 |
|
|
346
|
+
| double written as integer (P004) | 4 | 4 |
|
|
347
|
+
| parameter key abbreviated (P003) | 3 | 3 |
|
|
348
|
+
| **total** | **161** | **161** |
|
|
349
|
+
|
|
350
|
+
These are synthetic, single-fault mutations designed alongside the tool, not a recall estimate for
|
|
351
|
+
bugs in the wild. The executor, QoS, ros2_control and topic agents are covered by unit tests but
|
|
352
|
+
had no mutation sites in this corpus.
|
|
353
|
+
|
|
354
|
+
**Hand review of the other findings on the 12 repositories.** P003: the 3 in rmf_ros2 are real
|
|
355
|
+
(undeclared `subns`, `verbose`, `run_composition_command`). O001/O002: all 31 ROS 1 leftovers are
|
|
356
|
+
accurate; the 20 moveit2 sources with `ros/ros.h`/`rospy` are in no CMake target (dead code).
|
|
357
|
+
U002: MoveIt's PRBT test robot really gives `prbt_flange` (revolute joint) zero inertia.
|
|
358
|
+
|
|
359
|
+
**Field study.** rosfix was run on 826 rosdistro Jazzy repositories, twice at the same commits
|
|
360
|
+
(20 and 25 November 2026). Findings went from 3,307 to 4,295, mostly from rules added in between;
|
|
361
|
+
a hand check of about 40 new findings found them correct, and no triaged true positive was lost
|
|
362
|
+
([comparison](https://github.com/SohamWalam11/ros2-safety-lint/blob/main/research/data/s2_rerun_2026-11-25_fix.md)).
|
|
363
|
+
|
|
364
|
+
The full evaluation (precision on a hand-labelled sample, cross-file drift, incremental
|
|
365
|
+
re-analysis, fix verification on real repositories) is in the
|
|
366
|
+
[paper](https://github.com/SohamWalam11/ros2-safety-lint/tree/main/paper).
|
|
367
|
+
|
|
368
|
+
## Milestones
|
|
369
|
+
|
|
370
|
+
Each milestone is also described, with its measurements, in the paper.
|
|
371
|
+
|
|
372
|
+
**25 November 2026**
|
|
373
|
+
- **Released v0.2.3** on [crates.io](https://crates.io/crates/rosfix),
|
|
374
|
+
[PyPI](https://pypi.org/project/rosfix/) (wheels for Linux x86_64/aarch64, macOS x86_64/arm64
|
|
375
|
+
and Windows), GitHub Container Registry (Humble, Jazzy, Kilted images) and as prebuilt
|
|
376
|
+
binaries, all from one tagged workflow with build provenance attestations.
|
|
377
|
+
- **Assist tiers: runtime and trainer.** An int8 transformer that scores the same closed
|
|
378
|
+
candidate set as the built-in ranker, with the rule and the surrounding source as extra input,
|
|
379
|
+
and gives bit-identical scores on every machine. `--model` selects it; only checksum-verified
|
|
380
|
+
released files load. No tier is released yet.
|
|
381
|
+
- **Training is bit-identical across operating systems.** Weight initialisation used the
|
|
382
|
+
platform's `ln`/`cos`, so one seed trained different models on Linux, Windows and macOS (CI
|
|
383
|
+
caught int8 export changing 34 of 300 decisions on Linux). It now uses exact operations only;
|
|
384
|
+
300/300 decisions survive int8 export on all three.
|
|
385
|
+
- **CI green on Linux, Windows and macOS**, with `cargo fmt` and `clippy -D warnings` enforced and
|
|
386
|
+
the minimum Rust version raised to 1.88 (what the dependencies require).
|
|
387
|
+
- **Field study re-run on 826 rosdistro Jazzy repositories** at the same commits as on 20
|
|
388
|
+
November. Findings went from 3,307 to 4,295, mostly from rules added since (L009 292, O002 96,
|
|
389
|
+
N008 82, O001 55, U002 53) and 373 more L002 for launch files that import `launch_ros` without
|
|
390
|
+
declaring it. A hand check of about 40 new findings found them correct, except U004 firing on
|
|
391
|
+
URDF test fixtures that are broken on purpose. The re-run exposed one regression, now fixed:
|
|
392
|
+
`if=`/`unless=` were not evaluated, so a confirmed S001 in rmf_demos was lost. rosfix now
|
|
393
|
+
evaluates conditions with the arguments the launch graph passes, and no confirmed true positive
|
|
394
|
+
is lost.
|
|
395
|
+
|
|
396
|
+
**24 November 2026**
|
|
397
|
+
- **93 rules in 18 agents**, including the new A003 (duplicate node name), F005 (tf cycle), L011
|
|
398
|
+
(`install()` of a missing path) and L012 (Python subpackage not installed).
|
|
399
|
+
- **Knowledge packs rebuilt** from the Humble, Jazzy and Kilted branches. Two defects fixed:
|
|
400
|
+
system-default QoS endpoints are now *unknown* (4, 6 and 8 endpoints were treated as the ROS
|
|
401
|
+
default), and Nav2 AMCL's `add_parameter` declarations are now extracted (0/7/8 parameters
|
|
402
|
+
became 45/53/54). Before, every AMCL parameter was reported as undeclared when Nav2 was
|
|
403
|
+
installed from binaries.
|
|
404
|
+
- **Fewer false positives for undeclared parameters (P003): 46 → 3** on the 12 benchmark
|
|
405
|
+
repositories. Parameter libraries generated in CMake subdirectories and in workspace
|
|
406
|
+
dependencies (MoveIt's smoothing filters) now count as declarations. The 3 that remain are real.
|
|
407
|
+
- **Fix ranker retrained and evaluated honestly**: held-out cases must come from unseen packages
|
|
408
|
+
*and* unseen names, over 5 folds. Shipped model: 69.5% correct vs. 54.1% lexical, 7 wrong picks
|
|
409
|
+
vs. 30.
|
|
410
|
+
- **Mutation benchmark 161/161** on 12 repositories at current revisions, and a hand review of
|
|
411
|
+
every finding of the new rules on them (all accurate).
|
|
412
|
+
- **Published on Hugging Face**: the fix ranker and the knowledge packs.
|
|
413
|
+
|
|
414
|
+
## Resources
|
|
415
|
+
|
|
416
|
+
| | |
|
|
417
|
+
|---|---|
|
|
418
|
+
| Fix ranker (model card, weights) | [huggingface.co/SohamW11/rosfix-assist](https://huggingface.co/SohamW11/rosfix-assist) |
|
|
419
|
+
| Knowledge packs (dataset) | [huggingface.co/datasets/SohamW11/rosfix-knowledge-packs](https://huggingface.co/datasets/SohamW11/rosfix-knowledge-packs) |
|
|
420
|
+
| Manual | [docs](https://github.com/SohamWalam11/ros2-safety-lint/tree/main/crates/ros2-safety-lint/docs), or `rosfix docs` |
|
|
421
|
+
| Rust API | [docs.rs/rosfix](https://docs.rs/rosfix) |
|
|
422
|
+
| Paper and raw data | [paper/](https://github.com/SohamWalam11/ros2-safety-lint/tree/main/paper) |
|
|
423
|
+
| Contributing (architecture, adding a rule) | [CONTRIBUTING.md](https://github.com/SohamWalam11/ros2-safety-lint/blob/main/CONTRIBUTING.md) |
|
|
424
|
+
| Issues | [github.com/SohamWalam11/ros2-safety-lint/issues](https://github.com/SohamWalam11/ros2-safety-lint/issues) |
|
|
425
|
+
|
|
426
|
+
The repository holds the `rosfix` library and CLI (`crates/ros2-safety-lint`), the benchmark,
|
|
427
|
+
training and pack-building tools (`crates/ros2-safety-mutate`), and the runtime and trainer for
|
|
428
|
+
the assist tiers (`crates/rosfix-model`).
|
|
429
|
+
|
|
430
|
+
## Citation
|
|
431
|
+
|
|
432
|
+
If you use rosfix in research, please cite:
|
|
433
|
+
|
|
434
|
+
```bibtex
|
|
435
|
+
@misc{walam2026rosfix,
|
|
436
|
+
title = {Cross-Language Static Analysis for {ROS} 2: Detecting Shadow Configuration Drift},
|
|
437
|
+
author = {Walam, Soham Kishor},
|
|
438
|
+
year = {2026},
|
|
439
|
+
note = {rosfix, \url{https://github.com/SohamWalam11/ros2-safety-lint}}
|
|
440
|
+
}
|
|
441
|
+
```
|
|
442
|
+
|
|
443
|
+
## License
|
|
444
|
+
|
|
445
|
+
Licensed under either of
|
|
446
|
+
[Apache License, Version 2.0](https://github.com/SohamWalam11/ros2-safety-lint/blob/main/LICENSE-APACHE)
|
|
447
|
+
or [MIT License](https://github.com/SohamWalam11/ros2-safety-lint/blob/main/LICENSE-MIT) at your
|
|
448
|
+
option.
|
|
449
|
+
|