Executive Summary
The programming of industrial robots has followed a pattern of progressive standardization driven by competitive pressure: from the hand-coded numerical coordinates of the 1950s, to the proprietary vendor languages that locked manufacturers into closed ecosystems for three decades, to the open-source middleware revolution that broke those walls and made robot software a shared commons. Each transition fundamentally altered the economics of robot integration — not just the technical capability. The proprietary language era created switching costs that made robot programming a revenue stream for vendors; the ROS revolution made it a commodity, shifting competition toward hardware, performance, and application expertise.
This chapter traces the complete programming arc from G-code and numerical control origins through the six-dialect proprietary language era (FANUC KAREL, ABB RAPID, KUKA KRL, Yaskawa INFORM, Kawasaki AS, Universal Robots URScript), through the founding of ROS at Willow Garage, the architecture of the ROS node-topic model, the ROS-Industrial consortium's bridge to manufacturing, and ROS2's ground-up redesign for production requirements. It concludes with the modern middleware convergence of OPC-UA, Time-Sensitive Networking, and real-time Linux — the infrastructure layer that will carry industrial robot software into the physical AI era covered in Chapter 8.
1. Origins: G-Code, Numerical Control, and the First Robot Languages (1952–1985)
The software heritage of industrial robots begins not with robots at all, but with machine tools. G-code (also called RS-274) was developed at MIT's Servomechanisms Laboratory in the early 1950s as a programming language for numerically controlled (NC) milling machines. The language instructed a machine tool's movements through a sequence of alphanumeric commands: G01 for linear interpolation, G02/G03 for circular arcs, M03/M04 for spindle start/stop. These commands encoded the geometry of a machining path in a format readable by punch tape readers — the storage medium of the era.
When FANUC Ltd. was established as an independent company in 1972 — spinning out of Fujitsu's factory automation division — it brought G-code's numerical control heritage directly into robot motion programming. FANUC captured approximately half of the world CNC market by 1982, and its robot programming built on the same philosophy: explicit numerical specification of joint positions, velocities, and tool orientations. The teach pendant — a handheld device used to physically move the robot arm while recording joint angles — became the standard interface for creating robot programs in this era, producing sequences of positional waypoints that the controller would replay with high repeatability.
The fundamental limitation of early robot programming was its complete absence of environmental awareness. A robot programmed to pick a part from position X, Y, Z would fail silently if the part was displaced by even a few millimeters. There were no sensors to detect the deviation, no software to compensate for it, and no framework for expressing conditional logic beyond the most rudimentary branch instructions. This brittleness was acceptable in highly structured automotive assembly environments with precisely fixtured parts — and it defined the deployment paradigm for industrial robots for the next 30 years.
| Era | Programming Model | Primary Interface | Typical Application | Key Limitation |
| 1952–1972 NC/G-Code Origins | Numerical coordinates on punch tape; G-code motion commands | Punch tape reader; paper programming | CNC milling, turning, drilling | No sensing; no branching; geometry only |
| 1972–1985 Early Robot Languages | Teach-pendant waypoint recording; simple sequential programs | Physical teach pendant; joint-by-joint jogging | Spot welding; paint spray; simple pick-place | No error recovery; brittle to part variation; vendor-proprietary |
| 1985–2000 High-Level Proprietary Languages | Structured programming with variables, I/O, subroutines; offline simulation emerging | Personal computer offline programming tools | Arc welding; assembly; palletizing | Deep vendor lock-in; no interoperability; no sensor fusion |
| 2000–2010 PC-Based Control | Windows/UNIX-based controllers; open fieldbus (PROFIBUS, EtherCAT); vision integration | Graphical offline programming; CAD import | Flexible manufacturing; bin picking with vision | Expensive integration; fragmented ecosystem; real-time challenges on general OS |
| 2007–present ROS Era | Distributed node-based middleware; open-source; hardware abstraction layer | Linux terminal; Python/C++ development | Research, cobots, mobile robots, AMRs | Real-time gaps (ROS1); learning curve; not hardened for production (early versions) |
| 2022–present Physical AI Era | Neural policy from demonstration data; VLA models; natural language task specification | LLM chat interface; demonstration teleoperation | Unstructured manipulation; humanoid tasks | Reliability; safety certification; compute cost; sim-to-real gap |
2. The Proprietary Language Era: Six Dialects for One Industry
Between 1980 and 2010, the dominant paradigm in industrial robot software was the vendor-proprietary language — each major robot manufacturer developing and maintaining its own programming environment, incompatible with every competitor's. This fragmentation was not accidental: proprietary languages created switching costs that locked customers into vendor ecosystems for service, upgrades, and software maintenance. It was also technically rational — each vendor's language was optimized for its own controller hardware and motion planning implementation.
2.1 FANUC: KAREL and TP Language
FANUC robots use two programming tiers. The Teach Pendant (TP) language is the primary operator-facing programming system: a simplified procedural language executed on the teach pendant that controls robot motion, digital I/O, register operations, and palletizing logic. The TP language is designed for manufacturing technicians rather than software engineers — it trades expressibility for simplicity and reliability. For advanced applications, FANUC provides KAREL — a compiled language derived from Pascal that runs in the controller's background process, capable of socket communication, file I/O, vision processing integration, and custom human-machine interface development. FANUC's approach prioritizes backward compatibility over modernization: TP programs written in the 1990s run unchanged on current R-30iB Plus controllers, a reliability philosophy that explains both FANUC's installed-base loyalty and its slow adoption of open interfaces.
2.2 ABB: RAPID
ABB's RAPID (Robot Application Programming Interface Description) language, introduced in the early 1990s, positioned ABB as the most software-forward of the traditional Big Four. RAPID is a modular, structured language with strong support for data types, error handling, and interrupt routines — features that allowed ABB to build its RobotStudio offline programming environment into a comprehensive simulation and programming platform. RobotStudio's virtual controller is a genuine software replica of the robot controller, allowing programs developed in simulation to transfer to physical robots without calibration — a capability that proved decisive in automotive body shops where robot programs for new car models were debugged digitally months before physical robot installation. ABB's OmniCore C30 controller, introduced in 2024, extends RAPID with Python support and cloud OTA update capability, signaling ABB's strategic move toward open ecosystem integration.
2.3 KUKA: KRL and the Open Architecture Bet
KUKA Robot Language (KRL), introduced in the 1980s, shares syntactic similarity with Pascal and C, making it more approachable for software engineers than TP or early RAPID. KUKA made a strategically distinctive architectural decision in the 2000s: building its KR C controller series on standard industrial PCs running Windows, with the KUKA System Software (KSS) executing as a real-time application layer. This architecture enabled third-party software integration through standard Windows interfaces — a level of openness that FANUC and Yaskawa did not match. The KR C5 controller extends this philosophy with OPC UA full-state exposure via the MXAUTOMATION server, a plugin SDK for custom application development, and native integration with MATLAB/Simulink for control algorithm prototyping. KUKA's acquisition by Midea in 2016 has accelerated its integration with Chinese manufacturing ecosystems, adding WeChat-based remote monitoring and Alibaba Cloud connectivity.
2.4 Yaskawa: INFORM and the Safety-First Philosophy
Yaskawa's INFORM language, used across the Motoman series, is distinguished by its comprehensive motion instruction set — offering more motion modifier types (speed, acceleration, smoothing, tool coordinates) than any competitor language — and its integrated functional safety architecture. The YRC1000 controller's Dual Check Safety (DCS) system, certified to SIL 3 / PL e under IEC 62061 and ISO 10218-2, executes safety monitoring as a hardware-independent software layer separate from the motion execution engine. This architecture allows safety-critical functions (joint speed monitoring, zone limiting, collaborative speed reduction) to be configured and certified independently of the application program — a design that has made Yaskawa controllers the preferred platform for human-robot collaborative cells in electronics and pharmaceutical manufacturing.
2.5 Additional Proprietary Languages in the Ecosystem
Beyond the Big Four, the industrial robot landscape includes Kawasaki's AS language (one of the oldest, dating to 1974, influenced directly by BASIC), Staubli's VAL3 (designed for high-speed SCARA and 6-axis precision applications), Universal Robots' URScript (the language that, along with the UR e-Series API, made cobots accessible to non-robotics engineers), and Denso's PacScript. The proliferation of incompatible languages created a structural inefficiency in the industry: a systems integrator deploying a mixed-brand cell with FANUC welding robots, ABB assembly robots, and Yaskawa handling robots required engineers proficient in three separate languages — a skill fragmentation that increased integration costs and reduced talent mobility.
| Vendor | Language | Introduced | Programming Paradigm | Key Strength | Openness Level |
| FANUC | KAREL + TP | 1982/1992 | TP: technician-grade procedural; KAREL: Pascal-derived compiled | Backward compatibility; reliability; 500K+ installed base | Low — proprietary; limited API |
| ABB | RAPID | ~1994 | Structured; modular; full offline simulation in RobotStudio | RobotStudio virtual controller; Python in OmniCore 2024 | Medium-High — OmniCore API open |
| KUKA | KRL | ~1988 | Pascal/C-like; Windows IPC; plugin SDK | Windows openness; OPC UA; MATLAB/Simulink integration | High — full SDK; OPC UA native |
| Yaskawa | INFORM | ~1988 | Motion-rich instruction set; DCS safety layer separate | SIL3 DCS safety; dual-arm sync; dense motion modifiers | Medium — ROS2 bridge available |
| Kawasaki | AS Language | 1974 | BASIC-derived; simple; teach-pendant centric | Longevity; simple operator use | Low — captive |
| Universal Robots | URScript | 2008 | Python-like; accessible; REST API; PolyScope UI | Accessibility; e-Series open API; cobot pioneer | High — open API; ROS support |
| Staubli | VAL3 | ~2000 | Real-time; deterministic; SCARA-optimized | Precision; clean-room; pharmaceutical validation | Medium — CS9 controller API |
3. The ROS Revolution: Open-Source as a Platform Strategy (2007–Present)
3.1 Willow Garage and the Birth of ROS
The Robot Operating System originated at Willow Garage, a robotics research company founded in Menlo Park in January 2007 with a mandate to develop open-source robot software and hardware that would accelerate the entire field. The first ROS code commit was made to SourceForge on November 7, 2007. ROS 1.0 was released in January 2010, accompanied by the PR2 robot — a research platform intended to demonstrate that complex mobile manipulation tasks were achievable with the right software infrastructure.
ROS's fundamental architectural innovation was the publish-subscribe communication model built on a decentralized node graph. In ROS, a robot's software is decomposed into independent processes (nodes) that communicate by publishing and subscribing to typed message streams (topics) or by calling services (request-response pairs). A camera driver node publishes image data; a perception node subscribes to images and publishes detected object poses; a motion planning node subscribes to object poses and publishes trajectory commands; a controller node subscribes to trajectories and sends motor commands. Each node is independent, replaceable, and testable in isolation. This architecture made it possible for researchers at different institutions to develop and share components without knowledge of each other's implementations — the software equivalent of the USB standard for hardware.
Willow Garage distributed 11 PR2 robots to research groups in 2010 as part of a competitive grant program, seeding an ecosystem that rapidly grew beyond any single company's control. When Willow Garage dissolved in 2014, ROS had achieved sufficient critical mass that the Open Source Robotics Foundation (OSRF) assumed stewardship. By that point, ROS had become the dominant software platform for robotics research globally, with a package ecosystem (on ros.org) covering everything from SLAM and navigation to manipulation planning and computer vision.
3.2 ROS Architecture: Topics, Services, and the Parameter Server
The ROS 1 architecture rests on four primitives: the ROS Master (a centralized name server that registers all active nodes and topics), Topics (unidirectional typed message streams for continuous data), Services (synchronous request-response calls for discrete operations), and the Parameter Server (a shared dictionary of configuration values). The computation graph — the live map of all active nodes and their topic connections — can be visualized with the rqt_graph tool, providing unprecedented transparency into the runtime architecture of a robot system.
The ROS package ecosystem grew to encompass the complete robot software stack. Key packages include: rviz (3D visualization of sensor data, robot models, and planning results), MoveIt (manipulation planning library supporting 6-DOF and above arms with collision-aware trajectory generation), Navigation Stack / Nav2 (autonomous mobile robot navigation with path planning and obstacle avoidance), Gazebo (physics simulation environment for robot testing), ros-control (hardware abstraction layer providing a common interface between controllers and hardware drivers), and sensor packages for every major camera, lidar, and IMU manufacturer.
3.3 ROS-Industrial: Bridging Research and Manufacturing
ROS-Industrial was launched in January 2013 as a collaborative project between the Southwest Research Institute (SwRI) in the United States and Fraunhofer IPA in Stuttgart, Germany, with the explicit goal of extending ROS's advanced capabilities to manufacturing applications. The ROS-Industrial Consortium operates through three regional centers: Americas (SwRI), Europe (Fraunhofer IPA), and Asia-Pacific (ARTC and NTU Singapore).
The consortium develops and maintains hardware support packages for major industrial robot brands (ABB, FANUC, Kuka, Yaskawa, Universal Robots, Staubli) that provide ROS-compatible drivers and URDF (Unified Robot Description Format) models — enabling these robots to be programmed and controlled through the ROS ecosystem. The industrial application libraries developed by ROS-Industrial — including advanced path planning for welding, grinding, and surface finishing; bin picking with 3D point cloud processing; and quality inspection with industrial cameras — represent software investments that individual manufacturing companies could not justify independently but benefit from collectively through the consortium model.
By 2024, ROS-Industrial had established a foundation of over 60 member organizations including automotive OEMs, aerospace manufacturers, and system integrators. The Fraunhofer IPA-hosted ROS-Industrial Conference 2024 demonstrated the technology's maturity in automotive assembly, semiconductor handling, and logistics automation. PickNik Robotics' MoveIt Pro — a commercial product built on MoveIt's open-source foundation — represents the industrial productization of ROS manipulation planning, with behavior-tree composition, real-time control integration, and an AI-oriented development roadmap.
3.4 ROS 2: Rebuilding for Production Requirements
ROS 1's architectural limitations became apparent as it moved from research into production deployments. The ROS Master was a single point of failure: if it crashed, all inter-node communication stopped. The underlying TCPROS communication layer had no security, no encryption, and no authentication — unacceptable for industrial deployments on factory networks. Real-time performance was unguaranteed on the standard Linux scheduler. And ROS 1's single-machine design assumption broke down on multi-robot systems and distributed computing architectures.
ROS 2 was announced at ROSCon 2014 and underwent a ground-up redesign to address each limitation. The most consequential change was the replacement of the custom TCPROS stack with the Data Distribution Service (DDS) — an industrial middleware standard used in aerospace, defense, and medical systems that provides peer-to-peer discovery, quality-of-service policies, security with authentication and encryption, and real-time-capable communication without a central broker. The elimination of the ROS Master resolved the single-point-of-failure problem: in ROS 2, nodes discover each other directly through DDS multicasting.
ROS 2 Humble Hawksbill (May 2022) and subsequent releases have driven rapid adoption. By late 2024, approximately 80% of the active ROS community had migrated to ROS 2. The ROS 2 Kilted Kaiju release (2025) incorporates enhanced real-time capabilities for deterministic control, improved security framework, and distributed computing primitives that enable heterogeneous robot swarms. ROSCon 2025 in Singapore focused heavily on AI integration — the emerging frontier of connecting ROS 2's deterministic runtime with the non-deterministic neural policy models of the Physical AI era covered in Chapter 8.
| Feature | ROS 1 | ROS 2 | Industrial Significance |
| Network Architecture | Centralized ROS Master (SPOF) | Peer-to-peer via DDS; no single point of failure | Production reliability; multi-robot deployment |
| Real-Time Support | Not guaranteed; standard Linux scheduler | Real-time executor option; compatible with PREEMPT-RT | Servo loop integration; safety-critical timing |
| Security | None — plain TCP, no auth, no encryption | DDS Security: PKCS#11 auth, AES-256 encryption | Factory network deployment; IIoT connection |
| Multi-Robot / Distributed | Single machine assumed; complex workarounds | Native distributed computing; heterogeneous nodes | Robot fleets; edge-cloud architectures |
| Language Support | Python 2 (legacy); C++11 | Python 3; C++17; Rust (community); Go (community) | Modern development; CI/CD integration |
| Component Model | Loose processes; limited lifecycle | Managed node lifecycle; composition API | Deterministic startup/shutdown; safety FSM |
| Ecosystem Maturity | Huge legacy library; some ROS1-only | 80% adoption 2024; growing parity; some ROS1 gaps | Near-complete migration for new projects |
4. Modern Robot Software Middleware: OPC-UA, TSN, and Real-Time Linux
Alongside the ROS ecosystem, industrial robot software depends on a layer of communication and timing standards that define how robots interact with factory infrastructure. Three standards are converging to define the next-generation industrial network: OPC Unified Architecture (OPC-UA), Time-Sensitive Networking (TSN), and the real-time Linux PREEMPT-RT kernel patch.
OPC-UA, standardized as IEC 62541, provides a vendor-neutral, platform-independent semantic data model for industrial systems — replacing the alphabet soup of legacy fieldbuses (PROFIBUS, DeviceNet, Modbus) with a unified information model that can represent robot state, process data, and diagnostic information in a self-describing, queryable format. When combined with TSN — the IEEE 802.1Q extensions that add deterministic timing and guaranteed latency to standard Ethernet — OPC-UA becomes capable of synchronizing robot controller clocks to within nanoseconds, enabling multi-axis coordination across vendor boundaries with sub-millisecond cycle times. ABB's MXAUTOMATION, Siemens PROFINET-over-TSN, and Beckhoff's EtherCAT all represent different implementations of this convergence toward a deterministic, open network standard.
The real-time Linux PREEMPT-RT patch transforms the standard Linux kernel into a real-time operating system by converting all kernel code paths to preemptible sections and replacing non-preemptible spinlocks with sleeping mutexes. The result is a general-purpose OS with worst-case interrupt latency below 100 microseconds — sufficient for servo loop closure at 1 kHz update rates. PREEMPT-RT is now included in the mainline Linux kernel (since version 6.12, December 2024), eliminating the need for external patch maintenance and making real-time Linux the de facto standard OS substrate for next-generation open robot controllers. Beckhoff's TwinCAT 3, KUKA's KR C5, and the emerging generation of Chinese domestic robot controllers all build on RT Linux as their foundation.
| Standard | Body | Key Capability | Robot Application | 2025 Adoption Status |
| OPC-UA (IEC 62541) | OPC Foundation | Vendor-neutral semantic data model; self-describing information; REST + binary transport | Robot state/health reporting; integration with MES/ERP; remote diagnostics | Mandatory in new European automotive plant specs; Companion Spec for robotics published 2024 |
| TSN (IEEE 802.1Q) | IEEE | Deterministic Ethernet; guaranteed latency; time synchronization to <1 µs | Multi-vendor synchronized motion; cooperative robot-machine coordination | Rolling adoption in Tier 1 automotive; combined OPC-UA over TSN standard (IEC 63280) in progress |
| PREEMPT-RT Linux | Linux Foundation | Hard real-time OS; <100 µs worst-case interrupt latency; mainline since Linux 6.12 | Servo loop control; safety function execution; open controller platform | Mainlined Dec 2024; KUKA KR C5, Beckhoff TwinCAT 3, most Chinese OEM controllers |
| DDS (OMG standard) | Object Management Group | Peer-to-peer data distribution; QoS policies; security; no central broker — ROS 2 transport | ROS 2 node communication; multi-robot coordination; edge-cloud data pipeline | Foundation of ROS 2; used in aerospace/defense; robotics adoption accelerating |
| URDF/USD | Willow Garage / Pixar+NVIDIA | Robot kinematic description (URDF); universal 3D scene with physics (USD) | Simulation, planning, digital twin, AI training data generation | URDF: universal across ROS ecosystem; USD: NVIDIA Omniverse, Apple RealityKit, growing standard |
Sources: IEEE Spectrum (ROS history); OSRF / Open Robotics; Fraunhofer IPA ROS-Industrial; ABB Developer Center (RAPID, OmniCore); FANUC Technical Documentation; KUKA KR C5 Spec Sheet; Yaskawa YRC1000 Manual; OPC Foundation; IEEE 802.1Q TSN Working Group; Linux Foundation PREEMPT-RT; PickNik Robotics MoveIt Pro. All figures and projections subject to revision.