Skip to content

Phase 1: The "Digital Twin" Foundation

Draft · updated 2026-10-30 · embodied-ai-architect/docs/plan/roadmap-phase-1.md

Timeline: Months 1–4 Goal: Establish a trusted simulation environment where software, hardware, and physics meet. The Agent is currently “passive,” learning the correlation between embodied AI application code and energy consumption and latency.


Phase 1 creates the foundational infrastructure that all subsequent phases depend on. Without an accurate, integrated simulation pipeline, the Agent cannot learn the relationships between software choices, hardware configurations, and physical outcomes.

The key deliverable is a Co-Simulation Pipeline that traces energy consumption from high-level drone maneuvers down to specific compute kernels.


Milestone 1.1: The Coupled Simulation Pipeline

Section titled “Milestone 1.1: The Coupled Simulation Pipeline”

As a Systems Engineer,

I want to run a complete drone mission in simulation and see exactly how much energy each software component (perception, planning, control) consumed on the target hardware,

So that I can identify which components are the largest energy consumers and prioritize optimization efforts.


IDCriterion DescriptionKey MetricsEngineering Focus
A/C 1.1.1Simulator IntegrationThe Co-Simulation Pipeline successfully executes a complete drone mission (takeoff → navigate → land) with synchronized physics (AirSim/Gazebo) and compute simulation (CSim).Integration: Bi-directional data flow between flight simulator and compute simulator.
A/C 1.1.2Energy TraceabilityFor any given mission segment (e.g., “obstacle avoidance maneuver”), the system produces a breakdown showing energy consumed by each software component (perception: X mJ, planning: Y mJ, control: Z mJ).Instrumentation: Compute simulator accurately attributes energy to specific kernels/operators.
A/C 1.1.3Latency CorrelationThe system reports end-to-end latency for each control loop iteration, correlating sensor input timestamp to actuator command timestamp, with compute latency breakdown.Timing: Accurate timestamping and latency measurement across simulation boundaries.
A/C 1.1.4Hardware Model AccuracyEnergy estimates from CSim/ESim match empirical measurements on reference hardware (Jetson Orin) within ±15% for representative workloads.Calibration: Validation against physical hardware measurements.

┌─────────────────────────────────────────────────────────────┐
│ CO-SIMULATION PIPELINE │
├─────────────────────────────────────────────────────────────┤
│ │
│ ┌──────────────┐ Sensor Data ┌──────────────────┐ │
│ │ │ ────────────────► │ │ │
│ │ AirSim / │ │ Perception + │ │
│ │ Gazebo │ │ Planning + │ │
│ │ │ ◄──────────────── │ Control Stack │ │
│ │ (Physics) │ Control Cmds │ │ │
│ └──────────────┘ └────────┬─────────┘ │
│ │ │
│ ▼ │
│ ┌──────────────────┐ │
│ │ CSim + ESim │ │
│ │ (HW Simulator) │ │
│ │ │ │
│ │ • Cycle counts │ │
│ │ • Memory access │ │
│ │ • Energy est. │ │
│ └──────────────────┘ │
│ │ │
│ ▼ │
│ ┌──────────────────┐ │
│ │ Metrics DB │ │
│ │ (Time-series) │ │
│ └──────────────────┘ │
│ │
└─────────────────────────────────────────────────────────────┘
ComponentMetrics CollectedGranularity
Perception (YOLO, depth)Latency, energy, memory BWPer-inference
State Estimation (EKF, SLAM)Latency, energyPer-update
Planning (A*, RRT)Latency, energy, iterationsPer-plan
Control (PID, MPC)Latency, energyPer-control-loop
@dataclass
class EnergyBreakdown:
"""Energy breakdown for a mission segment."""
segment_name: str
duration_ms: float
# Per-component energy (mJ)
perception_mj: float
state_estimation_mj: float
planning_mj: float
control_mj: float
communication_mj: float
static_power_mj: float
# Derived metrics
@property
def total_mj(self) -> float:
return (self.perception_mj + self.state_estimation_mj +
self.planning_mj + self.control_mj +
self.communication_mj + self.static_power_mj)
@property
def average_power_w(self) -> float:
return self.total_mj / self.duration_ms # mJ/ms = W

As a Data Scientist building the Agent,

I want a labeled dataset correlating software configurations to energy/latency outcomes across many flight scenarios,

So that the Agent can learn the relationships between design choices and physical outcomes before attempting optimization.


IDCriterion DescriptionKey MetricsEngineering Focus
A/C 1.2.1Dataset ScaleThe baseline dataset contains at least 10,000 simulated flight minutes across diverse mission profiles (hover, cruise, obstacle avoidance, landing).Scale: Parallel simulation infrastructure to generate data efficiently.
A/C 1.2.2Configuration CoverageThe dataset covers at least 50 distinct software configurations varying: model precision (FP32/FP16/INT8), frame rates (10/15/30 Hz), model variants (YOLOv8n/s/m).Diversity: Systematic exploration of software design space.
A/C 1.2.3Label QualityEach data point includes: mission outcome (success/failure/crash), energy breakdown by component, latency percentiles, and hardware utilization metrics.Labeling: Automated annotation of simulation results.
A/C 1.2.4Correlation DiscoveryAnalysis reveals at least 3 actionable correlations (e.g., “INT8 quantization reduces perception energy by 40% with <2% accuracy loss on this mission type”).Analysis: Statistical analysis and visualization of dataset.

ProfileDescriptionKey Stressors
HoverStationary position holdLow compute, high control precision
CruisePoint-to-point flight, no obstaclesModerate compute, energy efficiency focus
Obstacle AvoidanceNavigate through cluttered environmentHigh perception load, latency critical
Search PatternSystematic area coverageSustained compute, battery life focus
Emergency LandingRapid descent and landingReliability critical, degraded mode
ParameterValuesImpact
Detection ModelYOLOv8n, YOLOv8s, YOLOv8mAccuracy vs. latency
PrecisionFP32, FP16, INT8Energy vs. accuracy
Frame Rate10, 15, 20, 30 HzResponsiveness vs. energy
Resolution320, 480, 640 pxDetection range vs. compute
PlannerA*, RRT, RRT*Path quality vs. compute
Control Rate100, 250, 500 HzStability vs. energy
# Example dataset entry
mission_id: "sim_20260115_143022_001"
profile: "obstacle_avoidance"
duration_s: 120.5
outcome: "success"
software_config:
detection_model: "yolov8n"
precision: "int8"
perception_rate_hz: 30
input_resolution: 640
planner: "astar"
control_rate_hz: 250
hardware_config:
platform: "jetson_orin_nano"
power_mode: "15W"
gpu_freq_mhz: 624
metrics:
energy:
total_mj: 45230
perception_mj: 28450
planning_mj: 2100
control_mj: 8900
static_mj: 5780
latency:
perception_p50_ms: 12.3
perception_p95_ms: 18.7
control_p50_ms: 1.2
control_p95_ms: 2.1
end_to_end_p95_ms: 24.5
utilization:
gpu_avg_pct: 78
cpu_avg_pct: 45
memory_bw_avg_pct: 62
annotations:
bottleneck: "memory_bandwidth"
optimization_opportunity: "reduce_perception_resolution"
notes: "GPU underutilized due to memory bandwidth saturation"

The dashboard displays:

  • Energy breakdown by component (stacked bar chart)
  • Latency distributions per component (box plots)
  • Configuration comparison (parallel coordinates plot)
  • Correlation matrix (software params vs. energy/latency)
  • Pareto frontier (energy vs. accuracy trade-off)

RiskProbabilitySeverityMitigation
Simulation AccuracyHighHighImplement empirical calibration with reference hardware; validate against Jetson Orin measurements
Integration ComplexityMediumHighStart with simplified physics (no wind/noise); add complexity incrementally
Data QualityMediumMediumAutomated sanity checks; outlier detection; manual review of edge cases
Simulation SpeedMediumMediumHeadless rendering; parallel execution; surrogate models for fast iteration

Phase 1 is complete when:

  1. Pipeline Operational: A drone mission can be simulated end-to-end with energy attribution per component
  2. Accuracy Validated: Energy estimates within ±15% of physical hardware measurements
  3. Dataset Ready: 10,000+ flight minutes with 50+ configurations, fully labeled
  4. Insights Documented: At least 3 actionable correlations identified and validated

DependencySourceStatus
AirSim or GazeboOpen sourceAvailable
CSim (Compute Simulator)Branes internalIn development
ESim (Energy Simulator)Branes internalIn development
Reference hardware (Jetson Orin)NVIDIAAvailable
Drone software stackOpen source + BranesAvailable

MonthFocusKey Deliverable
Month 1Simulator integrationAirSim ↔ CSim data flow working
Month 2InstrumentationEnergy attribution per component
Month 3Calibration±15% accuracy vs. physical hardware
Month 4Dataset generation10,000 flight minutes collected

Phase 1 delivers:

  • A trusted simulation environment
  • A labeled dataset for Agent training
  • Validated energy models

Phase 2 uses these to:

  • Train the Agent to optimize software configurations
  • Validate optimizations against the simulation
  • Achieve measurable energy efficiency improvements