Skip to content
  1. Home
  2. Interview Questions
  3. Robotics
AI, ML & Blockchain

Robotics Interview Questions and Answers (2026)

Industry-standard robotics interview questions for robotics software, perception and controls engineers — forward and inverse kinematics, the Jacobian, sensors and sensor fusion, Kalman and particle filters, SLAM, A*, RRT and Nav2 navigation, PID and model predictive control, ROS 2 and QoS, real-time systems, safety standards, reinforcement learning, imitation learning and vision-language-action models, with Python code.

Updated November 2026 Reviewed by Abhishek Kumar 60 min read
50Questions
15Freshers
15Intermediate
14Experienced

Key takeaways

  • 50 Robotics interview questions, grouped by level: freshers, intermediate, experienced and coding.
  • Every answer starts with a one-line “Quick answer” you can say out loud, followed by the explanation and runnable code.
  • Use the filter bar to practise only the level you are interviewing for, then test yourself with the free Robotics quiz.

What is Robotics, and why do interviewers ask about it?

Robotics combines mechanical engineering, electronics, control theory, computer vision and artificial intelligence to build machines that sense, decide and act in the physical world — industrial arms, warehouse robots, autonomous vehicles, drones, surgical robots and, increasingly, humanoids driven by AI foundation models.

These robotics interview questions cover what robotics software engineers, perception engineers and controls engineers are asked in 2026 — kinematics and dynamics, sensors and sensor fusion, Kalman filters, SLAM and localisation, path planning, PID and model predictive control, ROS 2, computer vision for robots, reinforcement learning and embodied AI, real-time systems and safety — with Python and C++ code.

Why companies hire for Robotics

  • Robotics and physical AI are among the fastest-growing engineering fields
  • Interviews mix maths, algorithms and practical system debugging
  • ROS 2, perception and planning skills are in high demand in automation, drones and autonomous vehicles
  • Embodied AI and robot foundation models are a hot area in 2026

Basic Robotics Interview Questions for Freshers

15 questions

Start here if you are a fresher or switching to Robotics. These fundamentals are asked in almost every first-round and campus interview.

BeginnerRobotics
Quick answerA robot is a machine that senses its environment, decides what to do and acts on the physical world, with some degree of autonomy. Main components:
  • Mechanical structure: links, joints, chassis, end-effector (gripper or tool)
  • Actuators: electric motors (DC, brushless, servo, stepper), hydraulic or pneumatic actuators
  • Sensors: encoders, IMUs, cameras, LiDAR, force/torque sensors
  • Controller and compute: microcontrollers for real-time loops, CPUs/GPUs for perception and planning
  • Software: perception, localisation, planning, control and safety
  • Power: batteries and power electronics

How interviewers ask it“Let's start with the basics — how would you explain the sense–plan–act cycle?”

What is the sense–plan–act cycle?

BeginnerRobotics
Quick answerIt is the basic robot control loop: sense (read sensors and estimate the state of the robot and the world), plan (decide what to do — a path, a grasp or a task sequence) and act (send commands to actuators), repeated continuously. Modern systems run these as layers at different rates: fast low-level control (1 kHz), mid-rate planning (10–100 Hz) and slower task-level decision-making, often with reactive behaviours for safety.

How interviewers ask it“Let's start with the basics — how would you explain degrees of freedom (DOF)?”

What is degrees of freedom (DOF)?

BeginnerRobotics
Quick answerDegrees of freedom are the number of independent parameters that define a robot's configuration. A rigid body in 3D space has 6 DOF (3 positions + 3 orientations), so a robot arm needs at least 6 joints to reach an arbitrary pose within its workspace; a 7-DOF arm is redundant, giving extra flexibility to avoid obstacles or joint limits. A differential-drive mobile robot moves in 3 DOF (x, y, heading) but has only 2 controllable inputs — it is non-holonomic (it can't move sideways).

How interviewers ask it“In simple words, what is forward kinematics? Explain it like you would to a new teammate.”

What is forward kinematics?

BeginnerRobotics
Quick answerForward kinematics computes the pose of the end-effector (position and orientation) from known joint angles or positions. It chains each joint's homogeneous transformation matrix from the base to the tool, often using Denavit–Hartenberg (DH) parameters or the product-of-exponentials formula. It always has exactly one solution.
Python
import numpy as np
def fk_2link(theta1, theta2, l1=1.0, l2=0.8):
    x = l1*np.cos(theta1) + l2*np.cos(theta1 + theta2)
    y = l1*np.sin(theta1) + l2*np.sin(theta1 + theta2)
    return x, y
BeginnerRobotics
Quick answerInverse kinematics (IK) finds the joint values that place the end-effector at a desired pose. It is harder because the equations are non-linear and may have multiple solutions (elbow-up vs elbow-down), infinitely many (redundant robots) or none (target outside the workspace or violating joint limits). Methods: analytical (closed-form) solutions for specific geometries, and numerical methods such as the Jacobian pseudo-inverse, damped least squares or optimisation-based IK.

How interviewers ask it“Let's start with the basics — how would you explain the Jacobian?”

What is the Jacobian in robotics?

BeginnerRobotics
Quick answerThe Jacobian J(q) maps joint velocities to end-effector velocities: ẋ = J(q)·q̇. It is used for velocity control, numerical IK, mapping end-effector forces to joint torques (τ = Jᵀ·F), and detecting singularities — configurations where J loses rank, the robot loses a direction of motion and joint speeds can blow up (for example, a fully stretched arm).
BeginnerRobotics
  • Proprioceptive (the robot's own state): wheel and joint encoders, IMUs (accelerometer + gyroscope), motor current, force/torque sensors
  • Exteroceptive (the environment): cameras (RGB, stereo, depth/RGB-D), LiDAR, radar, ultrasonic and infrared range sensors, tactile sensors, GPS/GNSS outdoors

Each has trade-offs in range, accuracy, update rate, cost and robustness to lighting, weather and reflective surfaces, so robots combine several through sensor fusion.

BeginnerRobotics
  • DC and brushless DC (BLDC) motors with gearboxes — the most common, precise and efficient
  • Servo motors — motors with built-in position feedback control
  • Stepper motors — open-loop precise steps (3D printers, simple positioning)
  • Hydraulic actuators — very high force (heavy machinery, some legged robots)
  • Pneumatic actuators — fast, simple, compliant (pick-and-place, soft grippers)
  • Series elastic and quasi-direct-drive actuators — for safe, force-controlled interaction and legged robots

How interviewers ask it“In simple words, what is ROS / ROS 2? Explain it like you would to a new teammate.”

What is ROS / ROS 2?

BeginnerRobotics
Quick answerROS (Robot Operating System) is an open-source middleware and toolset for robot software, not an operating system. ROS 2 provides nodes (processes) that communicate through topics (publish–subscribe), services (request–response) and actions (long-running goals with feedback), built on DDS with configurable Quality of Service. It includes tools (rviz, rosbag2, launch files), libraries (Nav2 for navigation, MoveIt 2 for manipulation, tf2 for coordinate transforms) and simulator integration.

How interviewers ask it“Let's start with the basics — how would you explain PID control?”

What is PID control?

BeginnerRobotics
Quick answerA PID controller computes a command from the error e = setpoint − measurement:

u = Kp·e + Ki·∫e dt + Kd·de/dt

  • P (proportional): reacts to the current error; too high causes oscillation
  • I (integral): removes steady-state error; can cause overshoot and windup
  • D (derivative): damps the response by reacting to the rate of change; sensitive to noise, so it is usually filtered

PID is used for motor speed, joint position, drone attitude and temperature control.

How interviewers ask it“Can you compare open-loop and closed-loop control? Where do people usually confuse them?”

What is the difference between open-loop and closed-loop control?

BeginnerRobotics
Quick answerOpen-loop control sends commands without measuring the result (running a motor for 2 seconds and assuming it moved 1 metre) — simple, but errors and disturbances accumulate. Closed-loop (feedback) control measures the output and corrects the command continuously (a PID using encoder feedback), making the system robust to disturbances and model errors. Robots mainly use closed-loop control, often with a feed-forward term for better tracking.
BeginnerRobotics
Quick answerOdometry estimates a robot's motion by integrating sensor data over time — wheel odometry from encoders, visual odometry from camera frames, inertial odometry from an IMU, or LiDAR odometry. Because it integrates small errors (wheel slip, uneven floors, sensor noise, bias), the error accumulates without bound — drift. Robots correct it by fusing sensors and using absolute references: maps (localisation), landmarks, GPS or loop closures in SLAM.

How interviewers ask it“In simple words, what are the main types of robots? Explain it like you would to a new teammate.”

What are the main types of robots?

BeginnerRobotics
  • Industrial manipulators (articulated arms, SCARA, delta) for welding, assembly and pick-and-place
  • Collaborative robots (cobots) designed to work safely next to people
  • Mobile robots: AGVs and AMRs in warehouses, delivery robots, autonomous vehicles
  • Aerial robots: drones/UAVs
  • Legged robots: quadrupeds and humanoids
  • Medical robots: surgical systems, rehabilitation and exoskeletons
  • Underwater and space robots, and service robots (cleaning, hospitality)

How interviewers ask it“How is an AGV different from an AMR, and when does the difference matter in practice?”

What is the difference between an AGV and an AMR?

BeginnerRobotics
Quick answerAn AGV (automated guided vehicle) follows fixed paths — magnetic tape, wires or markers — and stops when blocked; it is reliable but inflexible. An AMR (autonomous mobile robot) uses onboard sensors and maps to localise and plan its own paths, navigating around obstacles and people, and can be re-routed in software. AMRs dominate modern warehouse and factory logistics.

How interviewers ask it“In simple words, what are coordinate frames and transformations? Explain it like you would to a new teammate.”

What are coordinate frames and transformations in robotics?

BeginnerRobotics
Quick answerEvery sensor, link and object has its own coordinate frame. A homogeneous transformation matrix (4×4, with a rotation and a translation) converts points between frames, and transformations are chained by matrix multiplication (camera → gripper → base → map). Orientations are represented with rotation matrices, Euler angles (intuitive but prone to gimbal lock) or quaternions (compact and numerically stable). In ROS 2, the tf2 library tracks all frames over time.

Intermediate Robotics Interview Questions

15 questions

Questions for candidates with 1–3 years of experience — the concepts interviewers use to check that you have actually built things with Robotics.

IntermediateRobotics
Quick answerSensor fusion combines data from several sensors to obtain an estimate that is more accurate, robust and complete than any single sensor — for example IMU + wheel odometry + GPS for vehicle position, or camera + LiDAR for object detection (camera gives colour and class; LiDAR gives precise depth). It compensates for each sensor's weaknesses (IMU drift, GPS dropouts, camera failures in darkness). Common techniques: Kalman filters (KF/EKF/UKF), particle filters and factor-graph optimisation.

How interviewers ask it“Can you explain the Kalman filter with a quick example?”

Explain the Kalman filter.

IntermediateRobotics
Quick answerThe Kalman filter is an optimal recursive estimator for linear systems with Gaussian noise. It tracks a state estimate x and its covariance P in two steps:
  1. Predict: propagate the state with the motion model — x = F·x + B·u, P = F·P·Fᵀ + Q
  2. Update: correct with a measurement z — K = P·Hᵀ(H·P·Hᵀ + R)⁻¹, x = x + K(z − H·x), P = (I − K·H)·P

The Kalman gain K weighs the prediction against the measurement according to their uncertainties: trust sensors more when R (measurement noise) is small, the model more when Q (process noise) is small.

How interviewers ask it“Explain the Extended and Unscented Kalman Filters in detail — what should a new team member understand about them?”

What are the Extended and Unscented Kalman Filters?

IntermediateRobotics
Quick answerReal robots have non-linear motion and measurement models (turning vehicles, range-bearing sensors). The EKF linearises them around the current estimate using Jacobians — widely used, but it can diverge with strong non-linearity. The UKF propagates a set of carefully chosen sigma points through the true non-linear functions, capturing the mean and covariance more accurately without computing Jacobians, at slightly higher cost.
IntermediateRobotics
Quick answerA particle filter represents the belief about the state with many weighted samples (particles). Each step, particles are moved with the motion model plus noise, weighted by how well they explain the latest measurement, and resampled so likely hypotheses survive. It handles non-linear models and multi-modal distributions, which makes it ideal for global localisation and the "kidnapped robot" problem — Monte Carlo Localization (AMCL) in ROS is a particle filter. The cost grows with the number of particles.

How interviewers ask it“How would you explain SLAM to a junior engineer, and what do people most often get wrong?”

What is SLAM?

IntermediateRobotics
Quick answerSimultaneous Localization and Mapping builds a map of an unknown environment while estimating the robot's pose in it — a chicken-and-egg problem, because mapping needs the pose and localisation needs the map. Approaches: filter-based (EKF-SLAM, FastSLAM) and the modern graph-based approach (pose-graph optimisation with loop closure). Examples: Cartographer and slam_toolbox (2D LiDAR), ORB-SLAM3 and VINS (visual-inertial), LIO-SAM and FAST-LIO (3D LiDAR-inertial).

How interviewers ask it“Explain loop closure in SLAM in detail — what should a new team member understand about it?”

What is loop closure in SLAM?

IntermediateRobotics
Quick answerLoop closure means recognising that the robot has returned to a previously visited place (by matching scans or visual features, with place-recognition methods such as bag-of-words or learned descriptors) and adding a constraint between the current and old poses. Graph optimisation then distributes the accumulated drift across the whole trajectory, correcting the map. False loop closures are dangerous — they can badly distort the map — so they are verified geometrically and handled with robust optimisation.
IntermediateRobotics
  • Occupancy grid maps: 2D or 3D cells storing the probability of being occupied — standard for mobile-robot navigation
  • Voxel maps / OctoMap: efficient 3D occupancy
  • Point clouds and meshes: dense geometry from LiDAR or depth cameras
  • Feature/landmark maps: sparse visual features for visual SLAM
  • Topological maps: graphs of places and connections for large-scale planning
  • Semantic maps: objects and labels ("kitchen", "door", "pallet") for task-level reasoning

How interviewers ask it“Explain the A* path-planning algorithm, ideally with an example from a project you've worked on.”

Explain the A* path-planning algorithm.

IntermediateRobotics
Quick answerA* finds the shortest path on a graph or grid by expanding nodes in order of f(n) = g(n) + h(n), where g is the cost so far and h is a heuristic estimate of the cost to the goal. If h never overestimates (it is admissible, such as Euclidean distance), A* is optimal; a good heuristic makes it far faster than Dijkstra, which is A* with h = 0. Variants: D* Lite for re-planning when the map changes, Theta* for any-angle paths, and Hybrid A* for car-like robots with turning constraints.

How interviewers ask it“Walk me through sampling-based planners like RRT and PRM. Where do they come up in real systems?”

What are sampling-based planners like RRT and PRM?

IntermediateRobotics
Quick answerFor high-dimensional spaces (robot arms with 6–7 joints) grids are impractical, so planners sample configurations randomly:
  • PRM (Probabilistic Roadmap): sample many collision-free configurations, connect neighbours into a roadmap, then search it — good for many queries in a static environment
  • RRT (Rapidly-exploring Random Tree): grow a tree from the start towards random samples until it reaches the goal — fast for single queries
  • RRT*: asymptotically optimal — rewires the tree so paths improve over time

They are probabilistically complete. MoveIt 2 uses them through OMPL, followed by path smoothing and time parameterisation.

How interviewers ask it“Can you compare global and local path planning? Where do people usually confuse them?”

What is the difference between global and local path planning?

IntermediateRobotics
Quick answerGlobal planning computes a route across the whole known map from start to goal (A*, Dijkstra, Hybrid A*) — at a low rate, ignoring fast-changing details. Local planning (or control) follows that route while reacting to dynamic obstacles and the robot's kinematic limits, in real time — using DWA (Dynamic Window Approach), TEB, MPPI or Regulated Pure Pursuit. ROS 2's Nav2 stack combines both with costmaps and behaviour trees.

How interviewers ask it“Explain a costmap in robot navigation in detail — what should a new team member understand about it?”

What is a costmap in robot navigation?

IntermediateRobotics
Quick answerA costmap is a grid in which each cell stores the cost of traversing it: lethal for obstacles, high near obstacles (inflated by the robot's radius plus a safety margin), and low in free space. Nav2 uses layered costmaps — static (the map), obstacle (live sensor data), inflation, and keep-out or speed zones — with a large global costmap for route planning and a small rolling local costmap for obstacle avoidance.
IntermediateRobotics
Quick answerVision gives robots rich information about the world:
  • Object detection and segmentation (YOLO, Mask R-CNN, Segment Anything) to find items, people and obstacles
  • Pose estimation of objects for grasping
  • Visual odometry and SLAM for localisation
  • Depth estimation from stereo, RGB-D or learned monocular models
  • Fiducial markers (AprilTags, ArUco) for precise localisation and calibration
  • Visual servoing — controlling motion directly from image features
  • Inspection, quality control and reading labels or barcodes

Camera calibration (intrinsic and extrinsic, including hand–eye calibration) is essential for accurate 3D measurements.

IntermediateRobotics
Quick answerLiDAR measures distances with laser pulses (time of flight), producing accurate 3D point clouds that are independent of lighting — ideal for mapping, localisation and obstacle detection. Cameras are cheap, high-resolution and capture colour and texture (needed to classify objects and read signs) but don't measure depth directly and struggle in low light or glare. LiDAR is more expensive and sparser and can struggle with rain, fog and reflective or transparent surfaces. Many autonomous systems fuse both, often with radar for poor weather.

How interviewers ask it“How would you explain trajectory generation to a junior engineer, and what do people most often get wrong?”

What is trajectory generation?

IntermediateRobotics
Quick answerA path is a geometric route; a trajectory adds timing — position, velocity and acceleration as functions of time — respecting the robot's velocity, acceleration and jerk limits. Common methods: trapezoidal and S-curve velocity profiles, cubic and quintic polynomials, splines, and time-optimal parameterisation (such as TOPP-RA). Smooth trajectories reduce vibration, wear and tracking error.

How interviewers ask it“Suppose you need to calibrate sensors on a robot — how do you approach it, and what can go wrong?”

How do you calibrate sensors on a robot?

IntermediateRobotics
  • Intrinsic calibration: each sensor's internal parameters — camera focal length, principal point and lens distortion (checkerboard or ChArUco boards); IMU biases and scale factors
  • Extrinsic calibration: the rigid transforms between sensors and the robot body — camera-to-LiDAR, camera-to-IMU (for example Kalibr), and hand–eye calibration for a camera mounted on an arm
  • Time synchronisation: hardware triggers or PTP so fused data refers to the same moment

Poor calibration is one of the most common causes of bad perception and localisation in real deployments.

Advanced Robotics Interview Questions for Experienced Developers

14 questions

Senior-level Robotics questions on internals, performance, design and trade-offs — typical for 3, 5 and 7+ years of experience.

How interviewers ask it“Explain Model Predictive Control (MPC) in detail — what should a new team member understand about it?”

What is Model Predictive Control (MPC)?

AdvancedRobotics
Quick answerMPC solves an optimisation problem at every control step: using a model of the system, it predicts the behaviour over a finite horizon, chooses the control sequence that minimises a cost (tracking error, effort, comfort) subject to constraints (actuator limits, obstacles, speed limits), applies only the first control, and repeats with new measurements (receding horizon). It handles multi-input systems and constraints explicitly, which PID can't; the cost is heavier computation, so fast solvers (OSQP, acados) and good models are needed. It is used in autonomous driving, drones, legged robots and process control.

How interviewers ask it“How are kinematics different from dynamics, and when does the difference matter in practice?”

What is the difference between kinematics and dynamics in robotics?

AdvancedRobotics
Quick answerKinematics describes motion — positions, velocities and accelerations — without considering forces. Dynamics relates motion to the forces and torques that cause it, through the equation of motion M(q)q̈ + C(q, q̇)q̇ + g(q) = τ (inertia, Coriolis/centrifugal and gravity terms). Dynamics is needed for torque control, gravity compensation, high-speed motion, force interaction and accurate simulation; it is computed efficiently with algorithms such as Recursive Newton–Euler (for example in the Pinocchio library).
AdvancedRobotics
Quick answerPure position control is dangerous when a robot touches the world — any position error becomes a large force. Force control regulates contact forces directly; impedance control makes the robot behave like a programmable spring-damper (choosing its stiffness and damping), so it complies safely with contact. It is essential for assembly (peg-in-hole), polishing, opening doors, human–robot collaboration and legged locomotion, and relies on force/torque sensing or accurate torque control.
AdvancedRobotics
Quick answerRL trains policies by trial and error to maximise reward. Because real-world trials are slow and risky, policies are usually trained in simulation (Isaac Sim/Isaac Lab, MuJoCo) with massively parallel environments and domain randomisation, then transferred to hardware (sim-to-real). RL has transformed legged locomotion and dexterous manipulation. Challenges: reward design, sample efficiency, the sim-to-real gap and safety — often addressed by combining RL with classical control, imitation learning or safety filters.

How interviewers ask it“How would you explain vision-language-action (VLA) models and robot foundation models to a junior engineer, and what do people most often get wrong?”

What are vision-language-action (VLA) models and robot foundation models?

AdvancedRobotics
Quick answerVLA models extend vision-language models to output robot actions: given camera images and a natural-language instruction ("put the red cup in the sink"), they produce motor commands. Examples include Google DeepMind's RT-2 and Gemini Robotics, Physical Intelligence's π0 family, NVIDIA GR00T for humanoids, and the open OpenVLA. Trained on large multi-robot datasets (such as Open X-Embodiment) plus web data, they aim for generalisation across tasks, objects and robots. Open challenges: reliability, real-time inference, safety and data collection at scale.
AdvancedRobotics
Quick answerPolicies that work in simulation often fail on real robots because of differences in physics (friction, contact), sensor noise, latency, actuator behaviour and visuals. Reduce the gap with domain randomisation (varying physics, lighting and textures), system identification to match simulator parameters to the real robot, realistic sensor and actuator models (including latency), photorealistic rendering or domain adaptation for vision, fine-tuning on real data, and robust low-level controllers underneath learned policies.

How interviewers ask it“Suppose you need to ensure safety in collaborative and autonomous robots — how do you approach it, and what can go wrong?”

How do you ensure safety in collaborative and autonomous robots?

AdvancedRobotics
  • Standards: ISO 10218 (industrial robots), ISO/TS 15066 (collaborative robots), ISO 13482 (personal care robots), ISO 3691-4 (driverless industrial trucks) and functional-safety standards such as IEC 61508 and ISO 13849
  • Hardware safety: emergency stops, safety-rated monitored stops, light curtains, safety-rated LiDAR scanners, force and power limiting
  • Software: speed and separation monitoring, geofencing, watchdogs, safe fallback states, redundancy
  • Process: risk assessment (hazard analysis), validation and testing, and certification

Learned components need extra guardrails because their behaviour is harder to verify.

AdvancedRobotics
Quick answerControl loops must run at a fixed rate with bounded latency and jitter — a 1 kHz joint controller that misses deadlines can become unstable. Approaches: microcontrollers or real-time OSes (FreeRTOS, Zephyr) for low-level loops; PREEMPT_RT Linux for higher-level control; avoiding dynamic memory allocation, blocking I/O and unbounded locks in real-time threads; CPU isolation and thread priorities; and in ROS 2, real-time-safe executors, ros2_control and appropriate DDS QoS settings.

How interviewers ask it“Explain ROS 2 Quality of Service (QoS) settings in detail — what should a new team member understand about them?”

What are ROS 2 Quality of Service (QoS) settings?

AdvancedRobotics
Quick answerQoS policies configure how DDS delivers messages between publishers and subscribers:
  • Reliability: reliable (retransmit lost messages — commands, maps) or best effort (drop late data — high-rate sensor streams)
  • Durability: transient local lets late-joining subscribers receive the last message (static maps, robot description)
  • History and depth: how many messages to keep
  • Deadline, lifespan and liveliness: detect stale data and dead publishers

Mismatched QoS between publisher and subscriber is a classic reason why nodes "don't receive any messages".

How interviewers ask it“Suppose you need to debug a robot that behaves differently in the real world than in simulation — how do you approach it, and what can go wrong?”

How do you debug a robot that behaves differently in the real world than in simulation?

AdvancedRobotics
Quick answerWork systematically: record data (rosbag2) and replay it; check coordinate frames and transforms (tf2 tree, sign conventions, units), time synchronisation and sensor timestamps; verify calibration; measure latency in the perception-to-actuation chain; compare commanded vs actual actuator behaviour (saturation, backlash, friction); visualise everything in rviz or Foxglove; and isolate subsystems with unit tests and hardware-in-the-loop setups. Many "algorithm bugs" are really frame, timing or calibration bugs.

How interviewers ask it“Suppose you need to design the software for an autonomous warehouse robot (AMR) — how do you approach it, and what can go wrong?”

How would you design the software for an autonomous warehouse robot (AMR)?

AdvancedRobotics
  1. Hardware: differential drive, 2D safety LiDAR, depth cameras, IMU, wheel encoders, an onboard computer with a GPU
  2. Localisation: a pre-built map (slam_toolbox), AMCL or scan matching fused with odometry and IMU in an EKF (robot_localization)
  3. Navigation: Nav2 — global planner, local controller (MPPI or Regulated Pure Pursuit), layered costmaps, keep-out and speed zones, behaviour trees for recovery
  4. Perception: detect people, pallets and forklifts; slow down near people
  5. Safety: safety-rated scanner fields and e-stops independent of the main software
  6. Fleet management: task allocation, traffic management at intersections, charging schedules and integration with the WMS
  7. Operations: monitoring, logging, OTA updates and simulation testing before deploying changes
AdvancedRobotics
Quick answerA behaviour tree organises robot decision logic as a tree of sequence, fallback (selector), decorator and action/condition nodes, ticked from the root at a regular rate. Compared with finite-state machines, behaviour trees are more modular, reusable and readable as complexity grows, make recovery behaviours natural (fallbacks), and are reactive. Nav2 and many manipulation and game-AI systems use them (BehaviorTree.CPP).
AdvancedRobotics
Quick answerLLMs and vision-language models act as high-level planners and interfaces: translating natural-language instructions into task plans or code that calls robot skills ("pick", "place", "navigate to"), answering questions about a scene, generating reward functions or simulation scenarios, and helping operators debug. Production systems keep LLMs at the task level — grounded in what the robot can actually do (affordances), checked by validators and safety layers — while real-time control remains with classical or learned low-level controllers.

Robotics Coding Interview Questions (Programs with Code)

6 questions

Hands-on Robotics programs that are asked in coding rounds and machine tests. Read the code, then try writing it yourself without looking.

CodingRobotics
Quick answerClamp the output and stop integrating when saturated; filter the derivative to reduce noise.
Python
class PID:
    def __init__(self, kp, ki, kd, out_min=-1.0, out_max=1.0, d_alpha=0.2):
        self.kp, self.ki, self.kd = kp, ki, kd
        self.out_min, self.out_max, self.d_alpha = out_min, out_max, d_alpha
        self.integral = 0.0
        self.prev_error = None
        self.d_filtered = 0.0

    def update(self, setpoint, measurement, dt):
        error = setpoint - measurement
        d = 0.0 if self.prev_error is None else (error - self.prev_error) / dt
        self.d_filtered = self.d_alpha * d + (1 - self.d_alpha) * self.d_filtered   # low-pass filter
        self.prev_error = error

        candidate_integral = self.integral + error * dt
        u = self.kp * error + self.ki * candidate_integral + self.kd * self.d_filtered
        if self.out_min < u < self.out_max:          # anti-windup: integrate only when not saturated
            self.integral = candidate_integral
        return max(self.out_min, min(self.out_max, u))
CodingRobotics
Quick answerUse a priority queue ordered by f = g + h with a Manhattan-distance heuristic on a 4-connected grid.
Python
import heapq

def astar(grid, start, goal):
    rows, cols = len(grid), len(grid[0])
    h = lambda p: abs(p[0] - goal[0]) + abs(p[1] - goal[1])
    open_heap = [(h(start), 0, start)]
    came_from, g = {}, {start: 0}
    while open_heap:
        _, cost, node = heapq.heappop(open_heap)
        if node == goal:
            path = [node]
            while node in came_from:
                node = came_from[node]; path.append(node)
            return path[::-1]
        if cost > g[node]:
            continue                                   # stale queue entry
        r, c = node
        for nr, nc in ((r+1, c), (r-1, c), (r, c+1), (r, c-1)):
            if 0 <= nr < rows and 0 <= nc < cols and grid[nr][nc] == 0:
                new_cost = cost + 1
                if new_cost < g.get((nr, nc), float("inf")):
                    g[(nr, nc)] = new_cost
                    came_from[(nr, nc)] = node
                    heapq.heappush(open_heap, (new_cost + h((nr, nc)), new_cost, (nr, nc)))
    return None                                        # no path

grid = [[0, 0, 0, 0],
        [1, 1, 0, 1],
        [0, 0, 0, 0]]
print(astar(grid, (0, 0), (2, 0)))
CodingRobotics
Quick answerPredict with the process noise, then update with the measurement using the Kalman gain.
Python
class Kalman1D:
    def __init__(self, x0=0.0, p0=1.0, q=1e-3, r=0.25):
        self.x, self.p, self.q, self.r = x0, p0, q, r   # estimate, variance, process & measurement noise

    def step(self, z, u=0.0):
        # predict (constant model with optional control input u)
        self.x += u
        self.p += self.q
        # update
        k = self.p / (self.p + self.r)
        self.x += k * (z - self.x)
        self.p *= (1 - k)
        return self.x

kf = Kalman1D()
for z in [1.2, 0.9, 1.1, 1.4, 0.8, 1.05]:
    print(round(kf.step(z), 3))
CodingRobotics
Quick answerA simple obstacle-stop behaviour: drive forward unless the closest point in front is within a safety distance.
Python
import rclpy
from rclpy.node import Node
from rclpy.qos import qos_profile_sensor_data
from sensor_msgs.msg import LaserScan
from geometry_msgs.msg import Twist

class SafeDrive(Node):
    def __init__(self):
        super().__init__("safe_drive")
        self.declare_parameter("stop_distance", 0.5)
        self.pub = self.create_publisher(Twist, "cmd_vel", 10)
        self.create_subscription(LaserScan, "scan", self.on_scan, qos_profile_sensor_data)

    def on_scan(self, msg: LaserScan):
        n = len(msg.ranges)
        front = [r for r in msg.ranges[n//2 - 20 : n//2 + 20] if msg.range_min < r < msg.range_max]
        closest = min(front, default=float("inf"))
        cmd = Twist()
        if closest > self.get_parameter("stop_distance").value:
            cmd.linear.x = 0.3
        else:
            cmd.angular.z = 0.5                       # turn away from the obstacle
        self.pub.publish(cmd)

def main():
    rclpy.init()
    rclpy.spin(SafeDrive())
    rclpy.shutdown()
CodingRobotics
Quick answerIntegrate wheel speeds into the robot pose (x, y, θ).
Python
import math

def diff_drive_step(x, y, theta, v_left, v_right, wheel_base, dt):
    v = (v_right + v_left) / 2.0              # linear velocity
    w = (v_right - v_left) / wheel_base       # angular velocity
    if abs(w) < 1e-9:                          # straight line
        x += v * math.cos(theta) * dt
        y += v * math.sin(theta) * dt
    else:                                      # exact arc integration
        r = v / w
        x += r * (math.sin(theta + w*dt) - math.sin(theta))
        y -= r * (math.cos(theta + w*dt) - math.cos(theta))
    theta = (theta + w * dt + math.pi) % (2 * math.pi) - math.pi
    return x, y, theta

Practise with the free Robotics quiz

Multiple-choice questions with instant feedback. Takes about 10 minutes and shows exactly which concepts to revise.

Start the Robotics quiz →

Robotics interview FAQ

What skills are needed for a robotics software engineer?
C++ and Python, linear algebra and probability, kinematics, control (PID, MPC), state estimation (Kalman filters), SLAM, motion planning, ROS 2, computer vision and 3D perception, Linux and real-time systems, simulation (Gazebo, Isaac Sim) and, increasingly, machine learning and reinforcement learning.
What is the difference between robotics and AI?
AI is about software that perceives, reasons and learns. Robotics is about physical machines that act in the world. Modern robots use AI for perception, planning and learned control, but also need mechanics, electronics, control theory and safety engineering.
Is ROS still used in 2026?
Yes. ROS 2 (Humble and Jazzy LTS releases) is the standard open-source framework for research and much of industry, with DDS-based communication, real-time and security support. ROS 1 reached end of life in 2025, so interviews focus on ROS 2.
AK
Written and reviewed by Abhishek Kumar
Founder, InterviewPitch · 10+ years in IT. Questions are collected from real interview rounds and refreshed regularly. Spotted an error? Tell us.