Sobhaan ul Husan

Projects / Learning Machines: Robobo Robotics

Learning Machines: Robobo Robotics

Optimising Robobo robot behaviour for obstacle avoidance, item foraging, and item retrieval using CMA-ES evolutionary strategies in simulation and hardware.

Date
Apr 2024
Type
Robotics
Status
Done
Tags
Robotics, Evolutionary Algorithms, CMA-ES, Python
Learning Machines: Robobo Robotics

Overview

Course project for Learning Machines at Vrije Universiteit Amsterdam (M.Sc. AI). Investigated the effectiveness of the CMA-ES (Covariance Matrix Adaptation Evolution Strategy) algorithm for optimising robot behaviour across three tasks of increasing complexity. Training was performed in CoppeliaSim simulation, then transferred to physical Robobo hardware.

The CoppeliaSim simulation on the laptop, with the physical arena behind itThe CoppeliaSim simulation on the laptop, with the physical arena behind it

The Robot

The Robobo robot is equipped with eight infrared sensors (five front, three rear) and a phone-mounted camera. Its action space is limited to controlling individual left/right wheel speeds and movement duration, with no pre-programmed action sequences. This constrained action space makes the optimisation problem challenging.

Three Tasks

Task 1: Obstacle Avoidance (left), Task 2: Item Foraging (middle), Task 3: Item Retrieval (right)Task 1: Obstacle Avoidance (left), Task 2: Item Foraging (middle), Task 3: Item Retrieval (right)

Task 2: Foraging Arena with Food SourcesTask 2: Foraging Arena with Food Sources

Task 3: Single Target RetrievalTask 3: Single Target Retrieval

Task 1, Obstacle Avoidance: Navigate an environment filled with obstacles, maximising exploration while minimising collisions. Used only the eight IR sensors as input to a small neural network optimised by CMA-ES.

Task 2, Item Foraging: Locate and collect multiple food items (green blocks) scattered across the arena. Extended the input to include camera data, segmented into 3 or 9 zones to test how visual resolution affects learning speed and accuracy.

Task 3, Item Retrieval: Find and push a single target item to a specific location. Tested with both static and randomised object positions to evaluate generalisation of learned behaviours.

Approach

  • CMA-ES was chosen over deep reinforcement learning because it doesn't require gradient information and handles noisy sensor-action relationships well
  • Each task had a custom fitness/reward function guiding the evolutionary optimisation
  • Neural network controllers of varying sizes were evolved, with the network weights as the parameters being optimised
  • Sim-to-real transfer was tested by deploying trained controllers on hardware Robobo robots

Key Findings

CMA-ES can solve all three tasks given enough training time. However, under the project's time constraints, reinforcement learning approaches would likely converge faster. Increasing camera segmentation from 3 to 9 zones improved item detection accuracy but significantly increased training time.

Technologies

Python, CMA-ES, CoppeliaSim, ROS, Docker, Neural Networks