RobotIA #2 — Building an Architecture for Autonomous Robot Learning

Following my first post introducing RobotIA, I would like to share the experimental architecture I have been developing.

The objective is to create an environment in which a robot can progressively acquire knowledge, develop skills, and learn to make its own decisions.

Before working on the cognitive architecture, I wanted to build a simulation that reproduces the functional constraints of a real robot as closely as reasonably possible.

Experimental architecture

The project is based on a TurtleBot 4 Lite, ROS 2 Jazzy, Gazebo Harmonic and five independent Docker containers:

  • Simulation: the physical environment, robot, sensors, actuators and energy model.

  • Embedded system: a resource-constrained environment representing the Raspberry Pi 4, running SLAM and Nav2.

  • Communication gateway: a controlled Zenoh communication layer separating the simulated world from the embedded system.

  • Supervision: RViz for observation and experimentation.

  • AI server: a separate computing environment using PyTorch, CUDA and an NVIDIA RTX 3060 with 12 GB of VRAM.

The embedded system is deliberately isolated from privileged simulation data. The robot must perceive its environment through its sensors rather than directly accessing information provided by Gazebo.

Reproducing physical constraints

The embedded system has limited CPU and memory resources.

I have also implemented an energy model that accounts for the estimated consumption of the Raspberry Pi, camera, LiDAR, motors and other electronic components.

The battery is no longer simply a percentage that decreases over time. Its charge evolves according to the robot’s activity, computational workload and access to electrical power.

The simulation includes:

  • Battery charging and discharging.

  • Charging station power availability.

  • Automatic shutdown when the battery is depleted.

  • Motor inhibition when the embedded system is unavailable.

  • Automatic restart when sufficient energy becomes available.

  • Recovery following an embedded system failure.

The energy model is currently an approximation and will eventually require calibration against real hardware.

Communication and external computing

The AI server communicates with the embedded system through a virtual Wi-Fi network.

Different network conditions can be simulated, including latency, limited bandwidth, packet loss and complete disconnection.

The intention is to allow computationally expensive learning processes to be performed externally while preserving the robot’s ability to operate locally.

The robot should not become entirely dependent on a permanent connection to an external server.

Persistence of knowledge

Another important architectural decision is to separate acquired knowledge from the hardware and processes that produce it.

Maps, future learning experiences, trained models and experimental results are stored independently of the containers.

The system already supports persistent battery state, automatic cartographic backups, integrity verification and fallback to a previous map generation.

The underlying principle is simple:

Acquired knowledge should outlive the hardware that produced it.

Why this architecture?

My objective is not to develop another general-purpose robot simulator.

I want to provide the robot with a sufficiently realistic body and environment before developing its cognitive capabilities.

Energy limitations, computational constraints, communication failures and the consequences of physical actions should be part of the robot’s experience.

For example, the robot should eventually learn that being physically connected to a charging station does not necessarily mean that its battery is charging.

This distinction between an expected outcome and an observed outcome will be important for future learning experiments.

The next stage of RobotIA will focus on the robot’s functional self-model, intrinsic motivations, memory and autonomous learning.

I would be interested in discussing this architectural approach with the ROS community, particularly with researchers and developers working on autonomous learning, developmental robotics and simulation-to-reality transfer.