How axedelubac/yoctoraspi works
yoctoRaspi builds and runs an embedded Raspberry Pi perception system. In the standalone workflow, lidar scans are clustered into obstacles, translated into MCU commands, and combined with camera detections; the UART sends commands while the camera loop reports fused results. A ROS 2 alternative publishes lidar scans and camera images/detections for remote monitoring through rosbridge and Foxglove. The Yocto layer customizes the image and boot configuration; documented U-Boot network updates replace the kernel and optionally the root filesystem. The graph uses sampled source for application calls and README statements for deployment and monitoring; unsampled recipe internals are represented only at their enclosing directory.
Main entry points: main.cpp Standalone runtime · camera.cpp Camera detection · recipes-perception Perception app recipes · lidar_node.cpp ROS lidar node
Components 20
Perception runtime
- Standalone runtime
dev/yoctowatch/src/main.cpp - Lidar acquisition
dev/yoctowatch/src/LidarComm.cpp - Obstacle detection
dev/yoctowatch/src/obstacleDetection.cpp - MCU command logic
dev/yoctowatch/src/McuCommand.cpp - UART communication
dev/yoctowatch/src/UartComm.cpp - Camera detection
dev/yoctowatch/src/camera.cpp - Sensor fusion
dev/yoctowatch/src/sensorFusion.cpp - Detector models
dev/yoctowatch/models
ROS 2 interfaces
- ROS lidar node
dev/yoctowatch_ros2/src/lidar_node.cpp - ROS camera node
dev/yoctowatch_ros2/src/camera_node.cpp - ROS 2 topics
Embedded image
- Yocto image configuration
meta-custom/recipes-core/images - Perception app recipes
meta-custom/recipes-perception
Network updates
- U-Boot update script
meta-custom/recipes-bsp/rpi-u-boot-scr/files/boot.cmd.in - Update host services
tools/netboot/dnsmasq.conf - U-Boot on device
Remote monitoring
- rosbridge WebSocket
- Foxglove client
Other components
- Device operator
- Lidar, camera, MCU
Connections 24
- Device operator → Standalone runtime: runs
README.md - Standalone runtime → Lidar acquisition: starts and scans
dev/yoctowatch/src/main.cpp - Standalone runtime → Obstacle detection: clusters scans
dev/yoctowatch/src/main.cpp - Standalone runtime → MCU command logic: computes command
dev/yoctowatch/src/main.cpp - Standalone runtime → UART communication: sends command
dev/yoctowatch/src/main.cpp - Standalone runtime → Camera detection: processes frames
dev/yoctowatch/src/main.cpp - Standalone runtime → Sensor fusion: fuses results
dev/yoctowatch/src/main.cpp - Camera detection → Detector models: loads model
dev/yoctowatch/src/camera.cpp - Lidar acquisition → Lidar, camera, MCU: acquires scans
- Camera detection → Lidar, camera, MCU: captures frames
- UART communication → Lidar, camera, MCU: sends frames
- Device operator → ROS lidar node: runs ROS nodes
README.md - Device operator → ROS camera node: runs ROS nodes
README.md - ROS lidar node → ROS 2 topics: publishes scans
dev/yoctowatch_ros2/src/lidar_node.cpp - ROS camera node → ROS 2 topics: publishes images and detections
dev/yoctowatch_ros2/src/camera_node.cpp - ROS 2 topics → rosbridge WebSocket: exposes topics
README.md - rosbridge WebSocket → Foxglove client: streams monitoring
README.md - Foxglove client → rosbridge WebSocket: publishes messages
README.md - Yocto image configuration → Perception app recipes: includes applications
- Perception app recipes → ROS lidar node: deploys ROS application
- Perception app recipes → ROS camera node: deploys ROS application
- Device operator → U-Boot on device: initiates update
README.md - U-Boot on device → U-Boot update script: uses update flow
README.md - U-Boot on device → Update host services: downloads kernel or rootfs
README.md