Loading...
Searching...
No Matches
dipla_planner.hpp
Go to the documentation of this file.
85void apply_flight_margin(Waypoints& route, unsigned margin_cells = ExperimentOptions::default_margin_cells);
Network(const std::string &model, const std::string &metadata, const NetworkOptions &options={})
Load and validate a deployment model.
Definition dipla_planner.cpp:465
std::unique_ptr< State > state_
Exclusive ownership keeps the runtime session lifetime tied to this object.
Definition dipla_planner.hpp:198
Waypoints sample(const Belief &belief, const std::array< double, 3 > &position, const Noise &noise)
Run the complete deterministic DDIM sampler for a supplied noise vector.
Definition dipla_planner.cpp:486
Belief belief() const
Copy the current GP marginal mean and variance into fixed-size storage.
Definition dipla_planner.cpp:808
double total_variance() const
Return the sum of posterior marginal variances.
Definition dipla_planner.cpp:825
std::uint64_t field_digest() const
Return the FNV-1a digest of the input CSV bytes.
Definition dipla_planner.cpp:832
bool observe(double east, double north, std::uint32_t number, double height=DIPLA_DEMO_HEIGHT_MM/DIPLA_MM_PER_M)
Assimilate one synthetic observation at a local pose.
Definition dipla_planner.cpp:715
std::unique_ptr< State > state_
Exclusive ownership keeps private truth and dense GP state out of the API.
Definition dipla_planner.hpp:283
Survey(const std::string &field, const ExperimentOptions &options={})
Load the complete finite-grid synthetic field.
Definition dipla_planner.cpp:699
std::optional< Waypoints > compare(const std::array< double, 3 > &position, const CmaesOptions &options={}, const std::function< bool()> &cancelled={}) const
Run the explicitly requested native CMA-ES comparison planner.
Definition dipla_planner.cpp:758
Fixed model geometry and C/C++ local transport units, not runtime settings.
#define DIPLA_WAYPOINT_COUNT
Ordered route slots; changing this requires a new model and transport contract.
Definition dipla_contract.h:31
#define DIPLA_DEMO_HEIGHT_MM
Fixed mission experiment height; not the model altitude normalization.
Definition dipla_contract.h:43
#define DIPLA_GRID_SIDE
Supported model grid side; generic numerical grids remain independent.
Definition dipla_contract.h:25
Definition aigenlib.cpp:42
void apply_flight_margin(Waypoints &route, unsigned margin_cells)
Apply the configured horizontal flight margin.
Definition dipla_planner.cpp:599
void initialize_runtime(const std::string &onnx_lib_path)
Load the ONNX Runtime C API before constructing an inference session.
Definition dipla_planner.cpp:75
std::array< double, DIPLA_COORDINATE_COUNT *points > Noise
Flattened XYZ diffusion noise, grouped by coordinate axis.
Definition dipla_planner.hpp:48
constexpr std::size_t cells
Number of cells in the supported 51-by-51 world grid.
Definition dipla_planner.hpp:44
std::array< std::array< double, DIPLA_COORDINATE_COUNT >, points > Waypoints
Eight ordered XYZ waypoints in local east/north/metre coordinates.
Definition dipla_planner.hpp:50
constexpr std::size_t points
Number of ordered control points returned by either planner.
Definition dipla_planner.hpp:46
Fixed-shape posterior summary consumed by the diffusion model.
Definition dipla_planner.hpp:105
std::array< double, cells > variance
Posterior marginal variance at each grid cell.
Definition dipla_planner.hpp:109
std::array< double, cells > mean
Posterior mean at each grid cell.
Definition dipla_planner.hpp:107
Bounded parameters for the comparison-only CMA-ES planner.
Definition dipla_planner.hpp:117
int maxfevals
Maximum objective evaluations, inclusive range 12..3000.
Definition dipla_planner.hpp:127
double step_xy_m
Positive initial horizontal optimizer standard deviation in metres.
Definition dipla_planner.hpp:135
void validate() const
Validate the complete comparison policy before planning.
Definition dipla_planner.cpp:585
static constexpr int max_evaluations
Largest accepted evaluation allowance.
Definition dipla_planner.hpp:123
int seed
Positive deterministic seed used by the native optimizer.
Definition dipla_planner.hpp:129
double utility_threshold
Confidence-bound field importance threshold.
Definition dipla_planner.hpp:131
static constexpr int max_budget_ms
Largest accepted cooperative budget in milliseconds.
Definition dipla_planner.hpp:121
double confidence_beta
Nonnegative confidence multiplier.
Definition dipla_planner.hpp:133
static constexpr int population_size
Smallest complete comparison population.
Definition dipla_planner.hpp:119
int budget_ms
Cooperative wall-clock budget in milliseconds, inclusive range 1..4000.
Definition dipla_planner.hpp:125
Startup-only synthetic experiment settings shared by both planners.
Definition dipla_planner.hpp:53
unsigned flight_margin_cells
Horizontal inset for both comparison controls and published targets.
Definition dipla_planner.hpp:61
double gp_kernel_variance
Positive Matern marginal variance in squared field units.
Definition dipla_planner.hpp:65
static constexpr unsigned default_margin_cells
Reference horizontal inset, in grid cells.
Definition dipla_planner.hpp:59
double sensor_fov_deg
Full synthetic sensor field of view in degrees, strictly between 0 and 180.
Definition dipla_planner.hpp:69
void validate() const
Reject nonfinite values and incompatible margins before allocation.
Definition dipla_planner.cpp:576
double gp_lengthscale_m
Positive Matern spatial length scale in metres.
Definition dipla_planner.hpp:67
std::uint64_t sensor_noise_seed
Independent sensor stream seed; reset only for a new survey.
Definition dipla_planner.hpp:57
std::uint64_t diffusion_seed
Independent diffusion stream seed; retained across worker survey resets.
Definition dipla_planner.hpp:55
double gp_prior_mean
Initial scalar field estimate, independent of the comparison threshold.
Definition dipla_planner.hpp:63
double sensor_noise_variance
Positive independent measurement variance used for noise and likelihood.
Definition dipla_planner.hpp:71
Model identity and execution limits for a diffusion network.
Definition dipla_planner.hpp:144
std::string conditioning_cache
Optional verified encoder/denoiser bundle; empty retains the original graph.
Definition dipla_planner.hpp:152
std::string descriptor
Optional integrity-checked model descriptor path.
Definition dipla_planner.hpp:146
unsigned timeout_ms
Whole-plan cooperative deadline in milliseconds; zero leaves supervision to the caller.
Definition dipla_planner.hpp:150
unsigned threads
CPU inference threads, bounded to 1..32; one avoids competing with other MORA workers by default.
Definition dipla_planner.hpp:148
Runtime-owned ONNX session and reusable input/output storage.
Definition dipla_planner.cpp:197