Titre

Robot Programming: Languages, Tools and Courses

Robot programming works at three levels: blocks on children's coding kits, text languages such as Python and C++, which ROS 2 supports[1], and the languages and software of industrial robot makers. You can start without a robot, in a simulator that runs on your own computer.

By Titre · Updated Nov 28, 2026

Key facts

Step 1: Choose the robot you want to program

Start with the robot, because it decides the language. A children's coding kit comes with its maker's software: Makeblock says its mBot2 is programmed with blocks or Python[11]. A robot you build on a microcontroller board, such as an Arduino or a micro:bit, can be programmed in tools such as mBlock[13]. A robot arm in a university lab can run on ROS, with the MoveIt motion planning framework[14], and an industrial robot uses its maker's language and software.

If you want to build the robot yourself first, our guide on how to build a robot goes through the parts.

Step 2: Pick the language for that robot

Match the language to the robot. On a kit, start with blocks: Makeblock's mBlock begins with drag-and-drop coding blocks and moves on to text-based coding in its Python IDE[13]. With ROS 2, the two core client libraries are rclcpp for C++ and rclpy for Python[1]. On an industrial arm, learn its maker's language, such as RAPID for ABB robots or URScript for Universal Robots arms[7][10].

The table below lists the main languages and tools, what each one is and which robots it is used with.

Step 3: Start in a simulator if you have no robot

A simulator lets you write and test a program before you have hardware. ROS 2's documentation says simulation lets you test your robot's software in physically accurate simulated environments[15]. Webots runs on Windows, Linux and macOS, and its robots can be programmed in C, C++, Python, Java, MATLAB or ROS[6].

To use Gazebo with ROS 2, you need to install both, and the two support different combinations of versions[16]. For ROS 2 Lyrical, the platform table lists Gazebo Jetty for Ubuntu 26.04 and no Gazebo release for Windows 11[5], so check the pairing before you install.

Step 4: Write a first program: move, turn, read a sensor

Begin with a short program that makes the robot move, turn and read one sensor. Makeblock's guide for mBot2 has you drag and drop coding blocks in mBlock, then follow step-by-step instructions to make the robot move, sense, sing and dance[11]. On a Universal Robots arm, a first program in PolyScope X teaches the arm to move through a series of waypoints that define its path[17].

Run the program, watch what the robot does, and change one thing at a time, so you can see which block or line caused each change.

Step 5: Add feedback from a sensor

Next, make the robot react to what it senses: stop at an obstacle, follow a line or turn toward a light. A program with feedback decides each move from the sensor reading instead of repeating a fixed routine. Makeblock's mBot2 guide covers sensing as well as moving[11], and in manufacturing, ROS supports tasks such as automated pick-and-place operations that use vision systems for accurate handling[2].

Test each reaction on its own before you combine them, and print what the sensor reads, so you can see why the robot acted as it did.

Step 6: Move to ROS 2 when the parts multiply

When a robot has several sensors, motors and programs that must work together, a framework helps. ROS 2's documentation calls the ROS Framework the "plumbing" for communication between parts of a robot and within them, and it offers ready-to-use packages for common functions such as manipulation, motion planning and perception[2].

Pick one release and stay with it while you learn: the documentation recommends its latest long-term support release, Lyrical Luth, for all ROS users[4]. Since 2024, the ROS 2 project has been governed by the Open Source Robotics Alliance[18].

Step 7: For industrial arms, use the maker's software and training

Industrial robots are programmed in their makers' own software, and much of the work can be done offline on a computer. FANUC says ROBOGUIDE enables offline programming and 3D simulation of robotic workcells, and that programs and settings from the virtual workcell can be transferred to the real robot[8][19]. ABB says RobotStudio enables detailed offline programming before deployment[20], and KUKA says its iiQWorks.Sim software lets you program KUKA robots offline without interrupting production[21].

Makers also teach their languages: FANUC's KAREL course takes 5 days, or 40 hours[8]. For the robots themselves, see industrial robots; for courses of every kind, see robotics classes.

Robot programming languages and tools, from children's kits to industrial robots
Language or toolWhat it isUsed withSource
mBlockCoding platform with drag-and-drop blocks or PythonMicrocontrollers and robots; Arduino and micro:bit devices[13]
PythonInterpreted, object-oriented language, free to downloadROS 2 through rclpy; kits such as mBot2[22]
C++General-purpose language with a bias towards systems programmingROS 2 through rclcpp[23]
ROS 2Open-source framework, tools and libraries for robot applicationsMany areas of robotics, including manufacturing[2]
MoveItOpen-source motion planning framework for ROS; BSD licenseRobot arms, even over-actuated arms[14]
WebotsOpen-source robot simulator for Windows, Linux and macOSTwo-wheeled and legged robots, industrial arms, drones[6]
MATLAB with Robotics System ToolboxMathWorks toolbox to design, simulate, test and deploy robot applicationsManipulators, mobile robots and offroad vehicles[24]
RoboDKSoftware for robot simulation and offline programming of armsRobots from over 80 manufacturers[25]
RAPIDABB's programming language for its robotsABB robots with RobotWare 7[7]
KAREL and TPFANUC's compiled language; TP programs for the teach pendantFANUC robots[8]
KRLKUKA Robot Language, for expert programmingKUKA robots[9]
URScriptScript-level programming language of Universal RobotsUniversal Robots arms[10]

Each row links to its source. Rows run from children's kits to industrial robots; the order is not a ranking. What it is and Used with are shortened from each creator's page, and open source or free appears only where the creator says so. The pages of Python and C++ name no robots, so their Used with comes from the ROS 2 client library page and Makeblock's mBot2 page[1][11].

Which programming language should you learn for robots?

Pick the language by the robot you will use. For a children's kit, start with blocks and then Python; for your own robot with ROS 2, learn Python or C++[1]; and for an industrial arm, learn its maker's language, such as RAPID for ABB or KAREL for FANUC.

The step from blocks to text can happen in one program: Makeblock says mBot2 users can progress to Python in the same software they used for blocks[11]. For ROS 2, the documentation says client libraries are maintained in a variety of programming languages, so that you can write ROS code in the language that suits your application[1]. Its designer calls C++ a general-purpose language with a bias towards systems programming[23]. For kits made for children, see robot kits.

How are industrial robots programmed?

Makers describe three ways to program an industrial robot: on a teach pendant, the handheld control unit; offline, in the maker's software on a computer; and, on collaborative robots, by guiding the arm by hand. The maker's training covers its own pendant and software.

FANUC's CRX cobots use drag-and-drop programming on a touchscreen teach pendant[26], and FANUC says operators can guide and teach its cobots[27]. ABB says its GoFa is programmed through lead-through motion, Wizard easy programming and the FlexPendant interface[28]. A Universal Robots arm is controlled through the PolyScope graphical interface or with URScript at the script level[10]. Offline software can also write programs for other makers' controllers: RoboDK says its post processors support ABB RAPID, Fanuc LS/TP, KUKA KRC and Universal Robots script files, among others[25]. For the makers' robot lines, see ABB robots and FANUC robots.

Can you learn robot programming without a robot?

Yes. Simulators let you model a robot, program it and test the program on a computer, and some robot makers offer free versions of their programming software. ROS 2's documentation says simulation makes it possible to use the same ROS software in virtual environments that accurately represent the physical world[15].

Webots provides a complete development environment to model, program and simulate robots[6], and Gazebo lets developers test robots in a virtual environment before using real hardware[2]. Among makers, ABB's RobotStudio has a Freemium option with basic functionality without a license[20], and KUKA offers iiQWorks.Sim Basic for free, while its full iiQWorks.Sim Advanced is license-based[21]. FANUC's ROBOGUIDE can display virtual teach pendants for each controller[19]. Check what a free version leaves out before you rely on it.

Frequently asked questions

What programming language do robots use?

It depends on the robot. Children's kits use blocks and, on some kits, Python[11]; robots built on ROS 2 use C++ and Python through its two core client libraries[1]; and industrial robots use their makers' languages, such as RAPID at ABB, KAREL and TP programs at FANUC, KRL at KUKA and URScript at Universal Robots[7][8][9][10].

Is Python good for robotics?

Python is one of the two languages of ROS 2's core client libraries: rclpy provides the canonical Python API for ROS[1]. The documentation's example of a mixed system puts visualization tools in Python for faster prototyping and the parts concerned with efficiency in C++[1]. Kit makers support it too: Sphero's BOLT+ goes from drag-and-drop blocks to JavaScript and Python[12]. Python is open source and freely usable, even for commercial use[29].

What is ROS?

ROS, the Robot Operating System, is an open-source ecosystem of a framework, tools and libraries for building and running robot applications; despite its name, it is not an operating system in the traditional sense[2]. Open Robotics maintains packages of its own, and the ROS community contributes many more[2]. ROS 2 packages typically carry the Apache 2.0 license[3].

Can you program a robot without writing code?

Yes, in several ways. Blockly's documentation says its block-based editor lets users program without having to worry about syntax[30], and Scratch uses a block-based interface with no tricky syntax required[31]. On industrial robots, you can program by drag and drop on a touchscreen teach pendant, as on FANUC's CRX[26], or guide a collaborative arm by hand[28]. RoboDK says its interface requires no programming skills to simulate robot arms[25].

Sources

  1. Open Robotics. Client libraries — ROS 2 Documentation: Lyrical documentation. Checked Nov 28, 2026.
  2. Open Robotics. About ROS — ROS 2 Documentation: Lyrical documentation. Checked Nov 28, 2026.
  3. Open Robotics. Contributing to code — ROS 2 Documentation: Lyrical documentation. Checked Nov 28, 2026.
  4. Open Robotics. ROS. Checked Nov 28, 2026.
  5. Open Robotics. Lyrical Luth Supported Platforms — ROS 2 Documentation: Lyrical documentation. Checked Nov 28, 2026.
  6. Cyberbotics. Cyberbotics: Robotics simulation with Webots. Checked Nov 28, 2026.
  7. ABB. Technical reference manual - RAPID Overview. Checked Nov 28, 2026.
  8. FANUC America. KAREL Operations & Programming | FANUC America. Checked Nov 28, 2026.
  9. KUKA. KUKA System Software (KSS/VSS) | KUKA Global. Checked Nov 28, 2026.
  10. Universal Robots. Introduction. Checked Nov 28, 2026.
  11. Makeblock. Buy mBot2: Coding Robot Kit for STEM Learning|Makeblock. Checked Nov 26, 2026.
  12. Sphero. BOLT+ Coding Robot – Sphero. Checked Nov 26, 2026.
  13. Makeblock. mBlock - One-Stop Coding Platform for Teaching and Learning. Checked Nov 28, 2026.
  14. MoveIt. MoveIt Motion Planning Framework. Checked Nov 28, 2026.
  15. Open Robotics. Simulation — ROS 2 Documentation: Lyrical documentation. Checked Nov 28, 2026.
  16. Open Robotics. Setting up a robot simulation (Gazebo) - tutorial — ROS 2 Documentation: Lyrical documentation. Checked Nov 28, 2026.
  17. Universal Robots. First Program. Checked Nov 28, 2026.
  18. Open Robotics. Project governance — ROS 2 Documentation: Lyrical documentation. Checked Nov 28, 2026.
  19. FANUC America. ROBOGUIDE Robot Simulation Software | FANUC America. Checked Nov 28, 2026.
  20. ABB. ABB RobotStudio - Advanced Robot Simulation & Programming Tool. Checked Nov 26, 2026.
  21. KUKA. iiQWorks: engineering suite for digital manufacturing | KUKA Global. Checked Nov 28, 2026.
  22. Python Software Foundation. General Python FAQ — Python 3.15.2 documentation. Checked Nov 28, 2026.
  23. Bjarne Stroustrup. Stroustrup: C++. Checked Nov 28, 2026.
  24. MathWorks. Robotics System Toolbox - MATLAB. Checked Nov 28, 2026.
  25. RoboDK. Simulator for robot arms and offline programming - RoboDK. Checked Nov 28, 2026.
  26. FANUC America. CRX-10iA Cobot | FANUC America. Checked Nov 26, 2026.
  27. FANUC America. Industrial Robots for Manufacturing | FANUC America. Checked Nov 26, 2026.
  28. ABB. GoFa™ CRB 15000 Family. Checked Nov 26, 2026.
  29. Python Software Foundation. About Python™ | Python.org. Checked Nov 28, 2026.
  30. Raspberry Pi Foundation. What is Blockly? | Blockly Docs. Checked Nov 28, 2026.
  31. Scratch Foundation. Scratch | Scratch Foundation. Checked Nov 28, 2026.

Related pages

More in Robotics Training: for People and for Robots