1. Why this document exists#
The Falcon documents describe sensors, procurement, metrology and governance in detail, and name "SLAM" and "sensor fusion" as things the system will do. There has been no plan for how that software is built, which existing components are candidates, how they are evaluated, or — critically — whether their licences are compatible with a product whose stated business model is that Sunrack owns the IP.
This is the largest unaddressed workstream in the programme, and it is also where most of the defensible value sits. Sensors can be bought by any competitor. The processing pipeline and the solar-specific layer above it are what cannot.
One finding is urgent enough to state before anything else: several of the best-known open-source SLAM implementations are published under copyleft licences. Building a shipped product on them can create an obligation to release source. Section 7 treats this as a gating risk.
2. Workstream scope#
| In scope | Out of scope for now |
|---|---|
| Acquisition, recording and replay | Production firmware and embedded port |
| Time-base handling and deskewing | Mobile or tablet application |
| Calibration tooling and verification | Cloud platform and multi-tenant backend |
| Pose estimation and mapping evaluation | Automated panel-layout optimisation as a V1 gate |
| Point-cloud processing and roof feature extraction | Customer-facing reporting |
| Measurement engine with uncertainty | Production test software |
| Evaluation harness and metrics | — |
3. Architectural stance: own the contracts, rent the components#
Falcon should own the interfaces, the data schema, the calibration model, the evaluation harness and the solar layer, and treat pose estimation and mapping as replaceable components behind a stable interface.
This matters for three reasons:
- The right pose-estimation algorithm is not yet known and the field moves quickly. Coupling the product to one implementation is a strategic error.
- Licence risk is confined to a replaceable component rather than spread through the product.
- It enables honest comparison: swapping the pose estimator without touching anything else is the only way to attribute a change in accuracy to the algorithm.
Sensor adapters ← Falcon owns (thin, per-device)
│
Time base + deskew ← Falcon owns (critical, see F-8, F-9)
│
Calibration model ← Falcon owns (the asset)
│
┌──────┴───────┐
│ Pose / map │ ← replaceable component behind a fixed interface
└──────┬───────┘
│
Point-cloud processing ← mostly permissive libraries
│
Roof intelligence ← Falcon owns (the differentiator)
│
Measurement + uncertainty ← Falcon owns (see FR-09)
│
Export / API ← Falcon owns
The pose/map box is the only one that should ever contain third-party copyleft code, and ideally it contains none. Everything above and below it is either Falcon's own work or built on permissively licensed libraries.
4. Candidate components to evaluate#
These are candidates for evaluation, not selections. Licence terms, current versions, maintenance status and hardware support must each be verified at the time of adoption; the notes below indicate what to check, and must not be relied on as legal advice or as current fact.
4.1 LiDAR-inertial pose estimation and mapping#
| Candidate | Character | Why evaluate | Licence — must verify |
|---|---|---|---|
| FAST-LIO2 | Tightly coupled LiDAR-inertial odometry, efficient | Widely used reference point, strong on compute | Commonly GPL-family — gating check |
| Point-LIO | Point-wise processing, handles aggressive motion | Handheld motion is aggressive | Verify |
| LIO-SAM | Factor-graph with loop closure | Loop closure matters for drift (E3) | Verify |
| GLIM | Global optimisation, GPU-capable | Strong mapping quality | Verify |
| KISS-ICP | LiDAR-only, deliberately simple | Excellent baseline — exposes IMU contribution | Commonly permissive — verify |
| DLIO / direct variants | Direct, low-latency | Compute budget | Verify |
KISS-ICP or an equivalent LiDAR-only method should be run as a deliberate baseline. Without it, there is no way to show what the IMU and the tight coupling actually contribute — which is exactly the kind of attribution V1-00 is designed to produce.
4.2 Visual and visual-inertial#
| Candidate | Why evaluate | Licence — must verify |
|---|---|---|
| ORB-SLAM3 | Mature visual-inertial reference | Commonly GPL-family — gating check |
| OpenVINS | Filter-based, well documented | Verify |
| VINS-Fusion | Established visual-inertial | Verify |
| Basalt | Visual-inertial odometry and calibration | Verify |
Per error-budget Finding F-1, the camera's role is not ranging. It is odometry support, texture, colour, edges and semantics. These components are evaluated for pose contribution, not depth accuracy.
4.3 Photogrammetry and multi-view stereo — the F-2 track#
Error-budget Finding F-2 shows that a walking operator supplies the large effective baseline that a handheld rig cannot. This track is currently absent from the project and should be added.
| Candidate | Why evaluate | Licence — must verify |
|---|---|---|
| COLMAP | Reference structure-from-motion and MVS | Commonly permissive — verify |
| OpenMVG + OpenMVS | Modular SfM and MVS pipeline | Verify |
| Commercial photogrammetry | Benchmark quality ceiling | Commercial terms |
Known weaknesses to test rather than assume: it needs texture, and clean sheet metal has little; it is compute-heavy; and it depends on good pose estimates or recovers them slowly.
4.4 Point-cloud processing and geometry#
| Candidate | Role | Licence — must verify |
|---|---|---|
| Open3D | Registration, normals, segmentation, I/O | Commonly permissive |
| PCL | Filters, features, segmentation | Commonly permissive |
| PDAL | Pipelines, LAS/LAZ, large datasets | Commonly permissive |
| CloudCompare | Inspection, and M3C2 cloud-to-cloud comparison | Verify |
| CGAL | Robust geometry, shape detection | Dual-licensed — check carefully |
M3C2 should be adopted as the standard cloud-to-cloud comparison method for diagnostic shape comparison. It is used in the published handheld-versus-terrestrial-scanner comparisons cited in the error budget, so using it makes Falcon's results comparable with the literature. It must be reported separately from checkpoint-based absolute results, per V1-00 §7.7.
4.5 Roof feature extraction — Falcon's own work#
This layer should be built, not adopted. It is the differentiator and it encodes Sunrack's domain knowledge.
| Function | Approach | Requirement |
|---|---|---|
| Normal estimation | PCA over an adaptive neighbourhood | — |
| Plane segmentation | RANSAC or region growing, with efficient shape detection as comparison | MR-03, MR-05 |
| Plane refinement | Robust least squares with outlier rejection | F-6 |
| Boundary extraction | Alpha shapes or concave hull on the segmented plane | MR-01 |
| Edge, ridge and parapet lines | Plane intersection — never extreme-point picking | FR-07 |
| Pitch and azimuth | From the refined plane normal, with uncertainty | MR-03, MR-04 |
| Obstacle detection | Residual clustering above the fitted plane | FR-03, MR-06 |
| Coverage and gap reporting | Occupancy on a defined grid, 100 mm default | FR-04 |
| Measurement with uncertainty | Propagate plane-fit and pose covariance | FR-09 |
FR-04 and FR-09 are the two that turn a point cloud into an engineering instrument, and both are pure software. They should be prioritised accordingly.
4.6 Middleware, formats and conventions#
| Concern | Proposal | Rationale |
|---|---|---|
| Middleware | ROS 2, LTS release, for R&D only | Drivers exist; not a product commitment |
| Raw recording | rosbag2 with MCAP |
Replayable, self-describing |
| Deliverable clouds | LAS/LAZ 1.4 | Survey-industry standard, carries per-point attributes |
| Interchange | E57 | Widely accepted by survey software |
| Meshes | PLY or glTF | — |
| Calibration | JSON with explicit source and destination frame names, units and convention | V1-00 §4.3; DR-07 |
| World frame | Right-handed, Z up, documented origin | V1-00 §4.3 |
| Camera frame | OpenCV convention, stated explicitly | Avoids a classic sign-error class |
| Time | Monotonic sensor clock preserved alongside UTC; never only host arrival time | DR-01, DR-02 |
A filename is not metadata. V1-00 already warns against relying on transform filenames. Every calibration artefact must be self-describing, because a transform with an ambiguous direction is the single most common source of silent, large, systematic error in multi-sensor systems — and it will be mistaken for a sensor accuracy problem.
5. The evaluation harness#
The harness is as much a deliverable as the pipeline. Without it, results are anecdotes.
5.1 Requirements#
| ID | Requirement |
|---|---|
| SW-01 | Every result traceable to a raw dataset checksum, a code commit and a configuration file. |
| SW-02 | Processing runs inside a pinned container image; the image digest is recorded with the result. |
| SW-03 | Configuration is version-controlled data, never edited by hand at run time. |
| SW-04 | Re-running a recorded configuration on the same input reproduces the same metrics. Non-determinism is identified and either eliminated or quantified by repeat runs. |
| SW-05 | The harness computes every V1-00 metric from one command, so L, S and F outputs cannot be evaluated by differing methods. |
| SW-06 | Checkpoint coordinates are held in a store the pipeline cannot read, enforcing V1-00 §7.7 in code rather than by discipline. |
| SW-07 | The harness emits sample size, reference uncertainty and exclusions alongside every metric. |
| SW-08 | Results are append-only. A superseded result is marked, never deleted. |
SW-06 is the most valuable requirement here. V1-00's ground-truth leakage rules are excellent but rely on human discipline over a long campaign under time pressure. Making leakage mechanically impossible — control points in the pipeline's input, checkpoints only in the evaluator — converts a procedural rule into a structural guarantee. Build this before the first formal run.
5.2 Structure#
raw dataset (immutable, checksummed)
│
pipeline run ── config (versioned) + container digest + commit
│
outputs: cloud, trajectory, planes, measurements
│
evaluator ── control points ──→ rigid transform (6-DoF, no scale)
│ checkpoints ──→ residuals ← pipeline never sees these
│
metrics record: values + n + reference uncertainty + exclusions
5.3 Statistical rules the harness must enforce#
The relative standard error of an RMSE estimate is approximately 1/√(2n):
| Checkpoints | Standard error of RMSE | Observed RMSE needed to claim ≤20 mm with 2 SE margin |
|---|---|---|
| 6 | 28.9 % | 12.7 mm |
| 12 | 20.4 % | 14.2 mm |
| 20 | 15.8 % | 15.2 mm |
| 25 | 14.1 % | 15.6 mm |
| 50 | 10.0 % | 16.7 mm |
This changes how V1-00 results must be read. With the specified minimum of 12 checkpoints, an observed RMSE of 20 mm carries about ±4 mm of uncertainty at one sigma — so 20 mm and 25 mm are statistically indistinguishable.
Two consequences, both of which the harness should enforce:
- To claim conformance with a 20 mm tolerance at 12 checkpoints, the observed RMSE must be ≤ 14.2 mm.
- Raising the checkpoint count to 25 is cheap compared with a survey mobilisation and materially tightens the claim. Prefer 25 checkpoints over 12.
The harness shall refuse to emit a conformance statement without reporting
nand the standard error.
- SW-09 — No conformance claim without sample size and standard error.
- SW-10 — Percentile estimates flagged as unstable where
n < 20.
6. Phased plan#
Each phase has an exit test, so progress is demonstrated rather than asserted.
Phase S0 — Harness and schema, before any hardware arrives#
Buildable now with public datasets and simulation. This is the phase most likely to be skipped and most costly to skip.
- Define the data schema, frame conventions and calibration format.
- Build the acquisition, replay and metrics harness.
- Implement SW-06 checkpoint isolation.
- Validate the whole chain on a public LiDAR-inertial dataset with known ground truth.
- Implement the metric definitions from V1-00 §9.
Exit test: the harness reproduces a published accuracy figure on a public dataset to within a stated tolerance. If it cannot reproduce a known answer, it cannot be trusted on Falcon data.
Phase S1 — Acquisition and time base#
- Sensor adapters; raw recording with no avoidable loss.
- Timestamp semantics characterised per DR-01.
- Clock offset and drift measurement.
- Per-point deskewing implemented and tested against a controlled rotation.
Exit test: measured synchronisation better than 1 ms (DR-02), and deskewing demonstrably removes the smear predicted by F-9.
Phase S2 — Calibration#
- Intrinsics; LiDAR-to-camera extrinsics; verification set held separate.
- Residual reporting with lever arm and boresight separated.
- Verification observations at 8–15 m per FR-08.
- Remount repeatability.
Exit test: boresight residual ≤0.05° (FR-08), verified at operating range, repeatable across a remount.
Phase S3 — Pose and mapping bake-off#
- At least three pose estimators behind the common interface, including a LiDAR-only baseline.
- Identical input, identical metrics, identical control/check split.
- Drift characterised against path length; loop-closure benefit quantified.
- Licence assessment completed per Section 7 before any component is carried forward.
Exit test: a ranked comparison with stated uncertainty, plus a licence verdict per component.
Phase S4 — Roof intelligence#
- Plane segmentation, boundary extraction, plane-intersection edges (FR-07).
- Pitch and azimuth with uncertainty (MR-03).
- Obstacle detection (FR-03) and gap reporting (FR-04).
- Measurement engine with uncertainty propagation (FR-09).
Exit test: pitch, azimuth, area and boundary measured against surveyed reference within MR-01 to MR-05.
Phase S5 — The photogrammetry track#
- Structure-from-motion and MVS on the same recordings (F-2).
- Characterise behaviour on textured versus low-texture roof surfaces.
- Compare against the LiDAR path on the same checkpoints.
Exit test: a quantified statement of where photogrammetry beats, matches or fails LiDAR on roof surfaces — including the compute cost.
Phase S6 — Purlin locatability#
Resolves FR-05 and error-budget Finding F-12.
- Determine whether purlin and rafter positions can be inferred from fastener lines, sheet profile or deflection to within MR-09.
- Compare with the method Sunrack uses today.
Exit test: a documented yes or no, with evidence. This phase gates the product scope decision and must not be deferred past architecture freeze.
7. Licence risk — a gating commercial issue#
The stated business model is that Sunrack owns the product IP and a third party manufactures to Falcon's design, on the Foxconn–Apple pattern. Open-source licence selection can undermine that directly.
Several of the best-known academic SLAM implementations are published under copyleft licences in the GPL family. Distributing a product containing GPL-derived code can oblige the distributor to make corresponding source available under the same terms. For firmware embedded in a shipped handheld device, that is a material commercial exposure — it can mean publishing the pose-estimation and calibration work that constitutes a large part of the product's value.
Rules#
| ID | Rule |
|---|---|
| LIC-01 | No third-party component enters the product path until its licence has been reviewed and recorded. Verified licence text, not a blog post or a README summary. |
| LIC-02 | R&D-only use is tracked separately from product-path use, with a register of which components are which. |
| LIC-03 | A component used for comparison or benchmarking but never shipped is acceptable, and must be recorded as such — including the fact that the benchmark cannot be shipped. |
| LIC-04 | Prefer permissive licences (MIT, BSD, Apache-2.0) for anything on the product path. |
| LIC-05 | Where the best-performing component is copyleft, the options are: use it only as an R&D benchmark; obtain alternative commercial terms from the authors; or reimplement from published method descriptions with clean-room discipline. Decide consciously and record the decision. |
| LIC-06 | Apache-2.0 and similar licences carry patent grants and notice obligations. Record obligations, not just permissions. |
| LIC-07 | Maintain a bill of materials for software, with component, version, licence, obligation and product-path flag, reviewed at every release. |
Act on this in Phase S0, not at product release. Discovering a licence conflict after a pipeline is built around a component is expensive; discovering it after shipping is far worse. The architectural stance in Section 3 exists partly to contain this risk — but only if LIC-01 is applied from the first commit.
This section is a statement of engineering risk and is not legal advice. Have the software bill of materials reviewed by counsel competent in open-source licensing before product release, alongside the review described in the Manufacturing and IP Strategy.
8. Compute and platform#
| Question | Approach |
|---|---|
| R&D host | Documented x86_64 Linux workstation or laptop. Record CPU, GPU, RAM, storage write speed. |
| Sustained throughput | Profile against actual sensor data rates; verify no avoidable loss (V1-00 Gate B). |
| Product compute | Deliberately undecided. Record the measured compute and memory demand of each candidate pipeline as a product requirement input, not a prototype constraint. |
| GPU dependency | Record which components require a GPU. A GPU requirement has a direct effect on the handheld power and thermal budget (PR-03). |
| Real-time versus offline | Distinguish clearly. V1 may process offline; the product needs enough on-device feedback for the operator to know the scan succeeded. |
- FR-11 — The device shall give the operator in-scan feedback sufficient to judge coverage and tracking health before leaving the site. Derived.
FR-11 is a usability requirement with a measurement consequence: the costliest failure in survey work is discovering back at the office that the scan is unusable, because the roof is no longer accessible.
9. Skills and resourcing#
Realistic about what this needs:
| Capability | Need | Note |
|---|---|---|
| Sensor integration and Linux systems | Core | Earliest hire or contract |
| SLAM and state estimation | Core | Scarcest and most expensive skill |
| Point-cloud geometry | Core | Can overlap with SLAM |
| Software engineering and test | Core | The harness is real engineering, not a script |
| Photogrammetry | Phase S5 | Can be contracted |
| Surveying and metrology | V1-00 | Contract a competent surveyor |
| Solar/MMS domain | In-house strength | Sunrack's advantage; the differentiator |
The last row is the point. Falcon does not need to out-engineer Leica on SLAM. It needs competent pose estimation plus a solar layer that no scanning company has an incentive to build.
10. Immediate next actions#
Ordered, and the first three need no hardware:
- Define the data schema, frame conventions and calibration format (Section 4.6).
- Build the evaluation harness with SW-06 checkpoint isolation, and validate it on a public dataset.
- Start the software bill of materials and run LIC-01 against every candidate in Section 4.
- Add the photogrammetry track (F-2) to the V1-00 comparison plan.
- Scope the Phase S6 purlin investigation and fold it into the V1 field programme.
- Confirm host-platform specification against the data rates of the shortlisted sensors.
Source: docs/04-rd/SOFTWARE_AND_ALGORITHM_RD_PLAN.md