Glossary
A quick reference for every term in the course — each concept has a short, plain-language definition and a link to the lesson that explains it in depth. Return here whenever you encounter an unfamiliar term in a lesson. By the end of the course, you should be able to explain every entry on this page without looking.
Use Ctrl + F to search quickly.
ROS 2 basics
- ROS 2
- A set of libraries + tools for building robot software as small programs (nodes) that exchange data. It is not an operating system. → M1
- DDS
- The communication layer beneath ROS 2 that lets nodes discover each other on the network without a central server.
ROS_DOMAIN_IDseparates groups of nodes so they cannot see each other. → M1 - Node
- A program that does one job (reading LiDAR, planning a path…). A robot = many nodes working together. → M1
- Topic
- A one-way, many-to-many data channel: publishers send, subscribers receive, and neither waits for the other. Used for continuous data streams (
/scan,/odom). → M1 - Message (msg)
- The data type carried by a topic, e.g.
geometry_msgs/msg/Twist. Each topic has one fixed type. → M1 - Header (stamp, frame_id)
- The header of a sensor/position message: when the data was measured and in which frame. → M1
- QoS
- Rules for sending messages: whether delivery must be reliable or loss is acceptable, and how many pending messages to keep. Endpoints with incompatible QoS cannot communicate. → M1
- Service
- A single request/response exchange; the caller waits for the result. Used for short tasks: "save the map", "reset localization". → M1
- Action
- A long-running task that reports progress (feedback) and can be canceled partway through. "Go to point X" is an action. → M12
- Parameter
- A node configuration value that can be changed at startup (YAML file, launch) or at runtime (
ros2 param set). → M1 - Launch file
- A Python file that starts multiple nodes at once with their parameters. → M1
- Package / workspace / colcon
- Package: a unit for packaging code. Workspace: a directory containing multiple packages.
colcon buildbuilds the whole workspace;source install/setup.bashlets the terminal "see" them. → M1 - Callback / executor / spin
- Callback: a function called when an event occurs (an incoming message, a timer). Executor: the loop that calls callbacks;
spin()runs the executor. → M1 - rosbag (
ros2 bag) - Records messages on topics for later playback, without needing the robot. → M6
- use_sim_time /
/clock - Tells nodes to use simulation (or bag) time instead of the computer's clock, so time matches the data. → M4
- Lifecycle node
- A node with states (unconfigured → configured → running) that allow an orderly startup. Nav2 and controllers use this type. → M5
Coordinates and TF
- Frame
- A coordinate system attached to an object (robot, LiDAR, map). → M2
- Transform
- A translation + rotation that converts coordinates from one frame to another. → M2
- TF2 / TF tree
- A system that stores all transforms over time as a tree (one parent per frame), allowing you to look up "this point in that frame at time t". → M2
- Pose / Twist
- Pose: position + orientation. Twist: linear velocity + angular velocity. → M2
- Quaternion / yaw
- Quaternion: 4 numbers (x, y, z, w) representing orientation, avoiding the issues of Euler angles. Yaw: rotation about the vertical axis — for a 2D robot, yaw alone describes its heading. → M2
- REP-103 / REP-105
- Shared conventions: meters–seconds–radians, X forward Y left Z up; the frame chain
map → odom → base_link. → M2 map/odom/base_linkmap: a fixed origin on the map.odom: an origin at the robot's starting location, smooth but subject to drift.base_link: attached to the robot. → M9- URDF / XACRO
- An XML file describing the robot's structure (links, joints); XACRO adds variables and macros to keep it concise.
robot_state_publisherturns it into a TF tree. → M3
Robots and motion
/cmd_vel- The velocity command topic (
Twist):linear.xfor forward/backward motion in m/s,angular.zfor rotation in rad/s. Everything from the keyboard to Nav2 drives the robot through this topic. → M5 - Differential-drive kinematics
- Formulas that convert (forward velocity, angular velocity) into the speeds of the 2 wheels and vice versa. → M5
- Holonomic / non-holonomic
- Holonomic: can move in any direction immediately (Mecanum). Non-holonomic: cannot move directly in certain directions (a differential-drive robot cannot move sideways; a car cannot rotate in place). → M5
- Encoder
- A sensor that counts how far a wheel has rotated — an input to odometry. → M5
- Odometry
- Estimates motion relative to the starting point by accumulating incremental measurements from internal sensors (wheels, IMU). Smooth, but always drifts. → M5
- Dead reckoning
- Calculating position by accumulating distance traveled + heading, without observing the outside world. Wheel odometry is dead reckoning. → M5
- Drift
- Odometry error grows with distance traveled because each measurement has a small error and nothing corrects it. → M5
- ros2_control / controller
- A standard framework connecting control algorithms to hardware through command/state interfaces.
diff_drive_controller: receives/cmd_vel, controls 2 wheels, and publishes/odom. → M5 - Closed-loop control / PID
- Measures the result, compares it with the desired value, and continuously adjusts the command. PID: proportional (current error) + integral (accumulated error) + derivative (rate of change of error). → M5
- Footprint
- The robot's outline viewed from above, used for collision checking. → M10
Sensors
- LiDAR /
LaserScan - A sensor that scans laser beams to measure distance at each angle.
/scanis an array of those distances. → M6 - IMU
- An inertial sensor: a gyroscope measures angular velocity, and an accelerometer measures acceleration (including gravity). → M6
- Covariance
- A value describing the uncertainty of a measurement/estimate — a larger value means less confidence. Filters use it to decide which source to trust more. → M6
- Sensor fusion / EKF
- Combines multiple sources (wheels + IMU), weighted by confidence, to produce a better estimate than either source alone. EKF: extended Kalman filter for nonlinear systems; the
robot_localizationpackage. → M6 - gz_bridge
- A bridge that transfers data between Gazebo and ROS 2. → M6
Mapping and localization
- Occupancy grid
- A map made of square cells, each marked as free / occupied / unknown. Stored as
.pgm+.yamlfiles. → M8 - SLAM
- Builds a map while localizing the robot within that same map. → M8
- Scan matching
- Matches a new LiDAR scan against the previous scan / map to calculate how far the robot has moved. → M8
- Pose graph / loop closure
- Pose graph: past robot poses connected by constraints. Loop closure: recognizes a previously visited location and adjusts the whole graph to align it, removing accumulated error. → M8
- Localization
- Determines where the robot is on an existing map by comparing sensor data (LiDAR) with the map. Error does not keep growing. Unlike odometry, it observes the outside world and uses a map. → M9
- Particle filter / AMCL
- Maintains hundreds of position "hypotheses" (particles), scores each by how well the LiDAR data matches the map, and keeps the good ones. AMCL is the version used in Nav2. → M9
- Global localization / kidnapped robot
- Localization when the initial position is unknown; and when the robot is moved without its knowledge. → M9
Navigation (Nav2)
- Nav2
- The standard ROS 2 navigation stack: receives a goal, plans a path, drives autonomously, avoids obstacles, and handles situations where the robot gets stuck. → M10
- Costmap (global / local)
- A "cost" map — cells closer to obstacles have higher costs. Global: covers the whole map for path planning. Local: covers the area around the robot, continuously updated using sensor data. → M10
- Inflation
- "Expands" obstacles by a certain distance so the robot keeps a safe clearance. → M10
- Global planner
- Finds a path from the current position to the goal on the global costmap (Dijkstra, A*). → M10
- Local controller
- Converts the path into
/cmd_velcommands each cycle, avoiding newly detected obstacles (DWB, RPP, MPPI). → M10 - Behavior Tree
- A decision tree that coordinates navigation steps (plan → move → attempt recovery if stuck…). → M11
- Recovery behavior
- An action to get unstuck: clear the costmap, rotate in place, back up, or wait. → M11
- Waypoint
- A sequence of points for the robot to visit in order. → M12