Robotics combines mechanics, electronics and AI to build machines that act in the physical world.

What Is a Robot

A robot is a machine that senses its environment, makes decisions and acts on it, usually programmable and autonomous or semi-autonomous. From the agent viewpoint a robot is a physical agent with sensors (cameras, lidar, ultrasonic, touch, gyroscope, GPS, encoders) and effectors/actuators (motors, grippers, wheels, legs). Types: industrial manipulators (welding arms), mobile robots (warehouse robots, vacuum cleaners), humanoids, drones, surgical robots and autonomous vehicles.

Definition: Robot. A programmable machine that senses its environment through sensors, decides what to do and acts on the physical world through actuators.

The Sense–Plan–Act Cycle

Sense: collect data from the sensors. Plan: interpret the data, localise the robot and decide the actions: this uses perception, path planning (A*, rapidly exploring random trees) and decision-making. Act: the control system drives the actuators; a feedback controller such as a PID controller compares the actual state with the desired one and corrects the error. A simple proportional controller** moves by a fraction of the error at each step: xₜ₊₁ = xₜ + K(target − xₜ).

Key Problems

Localisation (where am I?), mapping, and SLAM (simultaneous localisation and mapping); motion planning and obstacle avoidance; manipulation and grasping; human–robot interaction; uncertainty in sensors and movements, handled by probabilistic methods (Kalman and particle filters); and learning from demonstration or by reinforcement learning.

Applications

Manufacturing (car assembly), warehouses (Amazon robots), healthcare (surgery, rehabilitation), agriculture (harvesting, drones), space exploration (Mars rovers, Chandrayaan), defence and disaster response, home robots, delivery and autonomous driving. Concerns include job displacement, safety and military use.

Table 4.5: Robot components

Component Role Example
Sensors Perceive the world Camera, lidar, ultrasonic
Controller Decide and plan Onboard computer, AI software
Actuators Act on the world Motors, grippers, wheels
Power supply Energy Battery

Example 4.5: A proportional controller

Problem: A robot at position 0 must reach position 10 using xₜ₊₁ = xₜ + 0.5 (10 − xₜ). Compute the first four positions.

Solution:

  1. x₁ = 0 + 0.5 × 10 = 5.
  2. x₂ = 5 + 0.5 × 5 = 7.5.
  3. x₃ = 7.5 + 0.5 × 2.5 = 8.75.
  4. x₄ = 8.75 + 0.5 × 1.25 = 9.375.

Result: The error halves each step (10, 5, 2.5, 1.25, 0.625): the robot converges to the target.

x, target, K = 0.0, 10.0, 0.5
for t in range(1, 5):
    x = x + K * (target - x)
    print(f"step {t}: position {x:.3f}, error {target - x:.3f}")

Output

step 1: position 5.000, error 5.000
step 2: position 7.500, error 2.500
step 3: position 8.750, error 1.250
step 4: position 9.375, error 0.625

Common mistakes

  • Assuming sensors are perfect; readings are noisy and uncertain.
  • Planning once and executing blindly instead of using feedback.
  • Confusing a robot with a purely software agent.
  • Ignoring safety around humans.

Key takeaways

  • A robot has sensors, a controller and actuators.
  • Sense-plan-act cycle; feedback control corrects errors.
  • Key problems: localisation, SLAM, motion planning, manipulation.
  • Applications: manufacturing, healthcare, agriculture, space, logistics.

Practice questions

  1. What is SLAM?
  2. Name the three stages of the robot cycle.
  3. What does a feedback controller do?

Answers to the practice questions

  1. Simultaneous localisation and mapping: building a map while locating the robot in it.
  2. Sense, plan and act.
  3. It compares the actual state with the desired state and corrects the error.

Sources

  • Official BCA syllabus Artificial Intelligence, course code 26BCA404DS04, Unit IV