The digital sister
An image of the layout that can be laid over it, on any phone, live or projected. Technically independent of the layout: she simulates the lab next to it.
Bring it to your lab
Digital twins are boring. We built a sister: an image of the layout that is laid over it, and technically independent of it. Any scale: H0, TT, N.
arail-survey measures every marker and writes the layout and an orthophoto.arail-bridge brings the positions of the real trains from your control system, or from the built-in simulator.No build step, no framework. A plugin is an ES module that registers object types, simulations or disruption types; layouts load it by URL. Guide to plugins · Layout file format · Control-system interface
// plugins/windmill.js: a new object type
export default function (arail) {
class Windmill extends arail.LayoutObject {
static type = "windmill";
static label = "Windmill";
static params = [{ key: "height_m", label: "Height", type: "number", unit: "m", default: 18 }];
computeGeometry() {
const c = arail.resolvePoint(this.world.map, this.spec.position);
return c && { center: c };
}
draw(view) {
const [x, y] = this.geometry.center;
const h = view.m(this.spec.height_m); // metres → model mm
view.prism(arail.rectFootprint([x, y], view.m(5), view.m(5)), 0, h,
{ side: "#e8e1d0", top: "#8a5a3c" });
}
}
arail.registry.registerObject(Windmill);
}
Beside ARail
A separate project of the lab, not part of ARail: the EBL generated from its own files, with its tracks, switches, signals and interlockings, wound round the hall as on the tables. ARail shares its topology and its track and hall plans, and its timetable simulation can run the operations of a shift in ARail's games.
Next
The first step is done. Next, the sister learns where the real trains are; later, she runs the layout herself.
An image of the layout that can be laid over it, on any phone, live or projected. Technically independent of the layout: she simulates the lab next to it.
Live positions from the lab's control system: physical trains in a virtual world. When a real train stops at a platform, the virtual passengers board it. The bridge runs with a simulator; the adapter for the EBL is next.
The sister takes over operations control and writes into the layout: disruptions hit the real trains too, flexibly and repeatably, for any exercise.