Module 2 of 10

Programming for Robotics

Lessons

About This Module

A robot is only as capable as the software running on it. This module gives you the programming toolkit that almost every robotics project relies on: a language for quick experiments, a language for fast, reliable robot code, and the tools for working on real machines.

You'll start with Python, the go-to language for prototyping, scripting, and working with NumPy for the vectors and matrices from the previous module. Then you'll move to C++, the language behind most performance-critical robot software, and see how arrays and pointers show up in real robot programs.

Robots usually run Linux, so you'll learn to move around the terminal with confidence. The module closes with Git and GitHub, which let you track changes, undo mistakes, and collaborate. You'll use all of these from the very first ROS 2 package in the modules ahead.

Lessons

4 videos
01

Introduction to Python Programming with Emphasis on Robotics Applications (Modern Robotics)

A Python refresher built for robotics: variables, lists, dictionaries, functions, loops, classes, inheritance, error handling, and an introduction to NumPy for working with vectors and matrices.

02

Basic C++ for Robotics: Arrays and Pointers (The Construct)

A hands-on introduction to two core C++ tools, arrays and pointers, and how they apply to programming a robot. Good practice for the language used in much of real-world robot software.

03

The 50 Most Popular Linux and Terminal Commands (freeCodeCamp)

A full beginner course on the command line: navigating files and folders, working with text, searching, processes, and permissions. These are the skills you'll use every day on a robot's Linux computer.

04

Git and GitHub for Beginners: Crash Course (freeCodeCamp)

Version control from scratch: commits, branches, undoing changes, and the GitHub workflow. The habit that keeps your robot code safe and makes it easy to share and collaborate.