Deep dive: from embedded systems to AI robots and ROS

From embedded systems to AI robots: why embedded systems need AI, Edge AI hardware (Jetson, Kria, Raspberry Pi), cameras and sensor fusion, ROS Node/Topic concepts, and an end-to-end architecture that connects back to MQTT

Last updated:

A research robot fitted with a camera and a small computer in a laboratory
Conceptual illustration generated with AI

This document builds on Topic 2 (programming and AI/CV) and links directly to the earlier document “Deep dive: MQTT and Eclipse Mosquitto for drone and IoT systems”, which only briefly mentioned the role of ROS 2 as a robotics framework connected to an MQTT broker. This document therefore goes back to explain the foundations that come before that: how an embedded system evolves into the “intelligent brain” of robots and drones, which level of embedded AI hardware suits which kind of task, and how ROS, as the “nervous system”, connects every part of the robot together before all the data is passed on to MQTT as described in the previous document.

1. Why embedded systems must evolve toward AI

In the traditional sense, embedded devices control motors and read sensor values very well, but their key limitation is that they cannot “understand situations” more complex than the fixed conditions programmed in advance. The new approach of combining embedded systems with AI and a variety of sensors gives devices three additional capabilities that link together in a loop.

The evolution from embedded systems to AI robots

The first is Perception : the device can take in information from its environment through sensors and cameras to build an understanding of space and the surrounding context. The second is Understanding (analysis) , in which AI processes the incoming data, analyses patterns, classifies objects and grasps the meaning of the situation in real time. The last is Decision & Action , in which the system can choose an appropriate action and command actuators or motors automatically, without having to rely on processing in a distant cloud. Together these three capabilities form a clear evolutionary path: from an ordinary embedded system to embedded AI, then extended with Vision AI so that it can “see”, before being combined with a robotics framework such as ROS and finally becoming an autonomous intelligent system.

2. What embedded AI is and the hardware that supports it

Embedded AI is running AI models directly on embedded devices, such as microcontrollers, systems-on-chip (SoC), Edge AI devices and NPU accelerators, without relying on the cloud. Its key advantages are real-time decision-making, lower latency, bandwidth savings, offline operation, greater privacy because data does not have to be sent to external servers, and less load from constantly sending large volumes of data to a server.

Embedded AI hardware: choosing to match the task

Choosing embedded AI hardware requires considering the level of task required. The first level is microcontrollers such as the ESP32-S3 , which has a dual-core LX7 CPU at 240 MHz with limited RAM/Flash but can run small models (TinyML) on the sensor itself. AI camera devices using this chip often come with a 160° wide-angle infrared camera combined with visible light, suitable for basic object detection such as detecting people. They are inexpensive and low-power, so they can be deployed in large numbers over wide areas (DFRobot Wiki, ESP32-S3 AI Camera Module)

The next level is Edge AI computers such as the NVIDIA Jetson family, which combine a multi-core ARM CPU with a GPU dedicated to AI processing. The latest model, the Jetson Orin Nano, delivers AI performance of up to 78 trillion operations per second (TOPS) with 8GB of memory and an 8-core Arm CPU, enabling full medium-to-large Vision AI models such as YOLO or complex CNNs. NVIDIA positions this product line for household robots and inspection and delivery drones, backed by a robotics developer ecosystem of more than 3 million users worldwide (NVIDIA Newsroom, Jetson Orin Nano 2 Robotics Computer)

The highest level is Edge AI platforms that combine an FPGA with a CPU on a single chip, such as the AMD/Xilinx Kria KR260 Robotics Starter Kit , which uses the Zynq UltraScale+ MPSoC (XCK26) and supports ROS 2 and Ubuntu natively through the Kria Robotics Stack, so robotics applications can be developed without prior FPGA expertise. Its connectivity highlights are four Gigabit Ethernet ports with 10G SFP+, Time-Sensitive Networking (TSN) support, four USB 3.0/2.0 ports and a 26-pin Raspberry Pi HAT connector. It suits real-time vision processing and industrial robots that need image processing with very low latency (AMD, Kria KR260 Robotics Starter Kit Product Brief)

3. The camera as the “eyes” of the AI system, and sensor fusion

Cameras are special compared with ordinary sensors because they provide spatial and contextual information far richer than single numeric values. Combined with AI, a camera can perform many kinds of tasks: object detection to detect and locate objects, classification to identify object types, segmentation for pixel-level analysis, which suits detecting smoke, fire or water, and pose estimation to analyse posture and movement.

However, a single camera is not enough for a robot or drone to operate fully in a real environment, so it must rely on the principle of Sensor Fusion , combining data from several sources.

Sensor fusion: the camera does not work alone

Camera + Vision AI detects and analyses the image area, providing detailed spatial and contextual information, while the IMU + GPS sensors control balance and heading and provide precise position coordinates. The two data sets work together for stable navigation before AI Fusion & Decision combines data from all sensors, analyses the overall environment, reduces error, and commands the motors more accurately in real environments. This is the same principle applied by early wildfire smoke detection research such as FireSpot-Seg, which uses pixel-level image analysis to separate accurate warning signals from a complex environment.

4. From embedded systems to robot middleware: ROS (Robot Operating System)

As robots and drones grow more complex, with many sensors, many software components and several kinds of hardware working together, developing and maintaining the whole system as a single monolithic codebase becomes increasingly difficult. Middleware therefore serves as the middle layer between hardware and applications. ROS is not an operating system in the traditional sense, but a framework for developing robot software that supports the connection from hardware through middleware (ROS) up to applications.

The heart of the ROS architecture consists of three main elements that work together in a publish/subscribe pattern, the same pattern MQTT uses, as explained in the earlier MQTT/Mosquitto document.

ROS architecture: Node, Topic and Message

Node is an independent processing unit in a ROS system, such as a Camera Node that receives images from the camera, an AI Detection Node that runs Vision AI, or a Motor Control Node that drives the actuators. Each node runs completely separately and communicates through Topic , which are publish/subscribe communication channels between nodes, for example /camera/image for sending images, /detection/result for AI detection results, and /cmd_vel for sending velocity commands to the motors. A Message is the data format carried on each topic, for example sensor_msgs/Image for camera images, std_msgs/String for general text, and geometry_msgs/Twist , structured as three-axis (x, y, z) linear and angular velocity vectors specifically for commanding robot motion. This design lets developers add, modify or remove any node without affecting other nodes, as long as the existing topic and message formats are kept (ROS 2 Course, Topics Documentation)

A real research example: ROS on the Kria KR260 platform

The Kria KR260 platform mentioned in the previous section is designed as an Edge AI device that integrates an FPGA and ROS, specifically suited to real-time vision processing. One study tested the connection between a Raspberry Pi Sense HAT (which has built-in temperature, air pressure and humidity sensors) and the Kria KR260 Robotics Starter Kit through real hardware interfaces, to assess whether the microcontroller, the sensor interface and ROS work together stably. This shows that the concepts explained throughout this document are not merely theory but have already been tested in real robotics research.

5. The end-to-end architecture: connecting back to MQTT

Putting together all the parts described, we get a complete end-to-end architecture that links fully with the earlier MQTT/Mosquitto document.

AI + ROS + Camera + MQTT: an end-to-end architecture

If a robot or drone is likened to a living creature, the camera is the “eyes” , capturing images through a ROS Camera Node and feeding the image data into a Vision AI model such as YOLO or a CNN to detect objects in real time; the AI model is the “brain” , processing the images from the camera, analysing and deciding through a Decision Node, then sending commands to the robot controller and motors; ROS is the “nervous system” , connecting every node through topics and messages and distributing data in an orderly way within the same robot or drone. Finally, all the data is sent out through MQTT, which acts like the “voice” , communicating with the outside world via an MQTT broker such as Mosquitto to a dashboard or remote control centre, as explained in full in the document “Deep dive: MQTT and Eclipse Mosquitto for drone and IoT systems”.

Notably, a practical topic example such as robot/camera/status , whose payload is JSON identifying the detected object, the detection confidence and the location found (e.g. {“object”: “person”, “confidence”: 0.95, “location”: “front”}), shows that the data flowing through the whole system, from the lowest-level sensor through internal ROS nodes to the MQTT topic sent to the outside, all uses the same publish/subscribe principle along the entire chain. This makes the whole architecture consistent and naturally connected, with no need to convert data formats between systems designed on different principles.

Conclusion

The path from an ordinary embedded system to a complete AI robot consists of successive steps: starting with an embedded system that controls basic hardware, developing into embedded AI that runs AI models on the device itself, extending with Vision AI that lets it “see” and understand images, before ROS steps in as the nervous system connecting every part as a ROS robot, and finally becoming a complete autonomous intelligent system. Choosing hardware to match the task, from the microcontroller level such as the ESP32-S3 up to the Edge AI + FPGA level such as the Kria KR260, is the important first step, followed by the principle of sensor fusion, which keeps the system from depending on a single data source, and ROS, which lets the software architecture scale without becoming tangled, before everything connects to the outside world via MQTT as the previous document explained. As one statement concisely sums up these ideas: “Embedded devices with ‘eyes, a brain and communication’ are the future of intelligent technology.”

Bibliography

  1. “Topics, ROS 2 Course Documentation.” Read the source document
  2. AMD. Kria™ KR260 Robotics Starter Kit, Product Brief. Read the source document
  3. DFRobot. ESP32-S3 AI Camera Module, Edge AI & Night Vision. DFRobot Wiki. Read the source document
  4. NVIDIA. “NVIDIA Announces Jetson Orin Nano 2 Robotics Computer to Redefine Entry-Level Edge AI.” NVIDIA Newsroom. Read the source document

Note: This document was compiled from the reference document “From Embedded System to AI Robot”, combined with additional research from external sources to confirm that the technical details of the hardware and the ROS 2 standard are accurate and current, and its content links directly to the earlier document “Deep dive: MQTT and Eclipse Mosquitto for drone and IoT systems”.

F29: Transforming the coordinates of the same point between frames

Transforming the coordinates of the same point between frames; illustrative diagram of a learning model

Variable Meaning and units, input → output Range/source of values
p_A, p_B 3×1 column-vector coordinates of the same point in A/B (input/output) m finite; frame and time must be specified
R_BA, t_BA 3×3 rotation, dimensionless, and origin of A in B (input) m RᵀR=I, det(R)=+1
T_BA 4×4 homogeneous transform (computed) bottom row [0,0,0,1]; homogeneous coordinates [x,y,z,1]ᵀ
θ angle by the right-hand rule (input) rad 90° = π/2 rad; never pass 90 as rad

Advanced level · learning model · Question: how are the coordinates of the same point in a sensor transformed into another frame without swapping the order of the matrices?

p_B = R_BA p_A + t_BA; T_BA = [R_BA, t_BA; 0, 1]; T_CA = T_CB T_BA

T_AB = [R_BAᵀ, −R_BAᵀt_BA; 0, 1]

In this chapter the subscript BA means transforming the coordinates of the same physical point from A to B (passive coordinate mapping), using column vectors and multiplying the right-hand factor first; it does not command the object to actually rotate. The columns of R_BA are the axes of A expressed in B. The inverse formula must also rotate the translation back, not merely change its sign.

ROS REP-103 uses a right-handed system with body x forward/y left/z up; ENU is East/North/Up; the camera optical frame is x right/y down/z forward; and NED is North/East/Down. With the same origin, p_NED=[N,E,−U]ᵀ; the matrix [[0,1,0],[1,0,0],[0,0,−1]] has det +1, whereas swapping only E/N has det −1 and therefore has the wrong handedness. The extrinsics and the actual time must be known before building the frame tree.

Worked example

Let R_BA=[[0,−1,0],[1,0,0],[0,0,1]], t_BA=(1,0,0) m and p_A=(2,3,4) m. Then R_BA p_A=(−3,2,4), so p_B=(−2,2,4) m. If T_CB is a pure translation (0,2,0) m, p_C=(−2,4,4) m; check by applying T_CB T_BA in that order. ENU(2,3,4) m becomes NED(3,2,−4) m.

Practice with changed values

Reverse the direction of the transform: use p_B=(−2,2,4) m to find p_A with the same inverse.

Show F29 answer

p_A=R_BAᵀ(p_B−t_BA)=R_BAᵀ(−3,2,4)=(2,3,4) m; each axis accepted within ±0.000001 m

Reference: ROS REP-103, post-history2014 (P4A02), Modern Robotics §3.3.1 (P4A06); checked 26 September 2569 (2026); all numbers are synthetic exercises

Download the advanced navigation and mission practice set (CSV/JSON with answers) · synthetic model with assumptions and limitations

Used in courses

How to cite this page

Drone Institute, Rangsit University. (2026). Deep dive: from embedded systems to AI robots and ROS. In UAS Technology Knowledge Hub (B.Tech.). https://rsu-uat.pk-research.work/en/kb/deep-dive/embedded-ai-ros/

Original from Drone-Hub: https://drone.pk-research.work/deep-dive/embedded-ai-ros/ · © PK-Research