Add prepared urban route guidance to Gaussian simulation planning
Introduce a content-bound scene route provider, advisory runtime graph and plan-preview-launch workflow. Preserve live sensing authority and retire blocked intermediate goals without discarding final-arrival evidence. Bound native visual context losslessly and provide verified cache relocation. Full Maroseyka route qualification remains open.
This commit is contained in:
@@ -15,7 +15,8 @@ test("speed and payload persist per robot revision, with finite physical bounds"
|
||||
assert.equal(validRoverSettings(loaded,robot),true);
|
||||
assert.deepEqual(parseRoverSettings(JSON.stringify(loaded),robot),loaded);
|
||||
assert.notEqual(roverSettingsKey(robot),roverSettingsKey({...robot,sha256:"b".repeat(64)}));
|
||||
for(const patch of [{max_speed_mps:.4},{max_speed_mps:NaN},{base_mass_kg:0},{payload_mass_kg:-1},
|
||||
assert.equal(validRoverSettings({...loaded,max_speed_mps:.4},robot),true);
|
||||
for(const patch of [{max_speed_mps:.01},{max_speed_mps:Infinity},{max_speed_mps:NaN},{base_mass_kg:0},{payload_mass_kg:-1},
|
||||
{payload_height_m:Infinity},{max_speed_mps:"0.2"}]) {
|
||||
assert.equal(validRoverSettings({...loaded,...patch},robot),false);
|
||||
assert.equal(parseRoverSettings(JSON.stringify({...loaded,...patch}),robot),undefined);
|
||||
|
||||
@@ -5,7 +5,7 @@ import ts from 'typescript';
|
||||
|
||||
const source=ts.transpileModule(readFileSync(new URL('../src/core/simulation/runConfiguration.ts',import.meta.url),'utf8'),
|
||||
{compilerOptions:{module:ts.ModuleKind.ESNext}}).outputText;
|
||||
const {parseSavedSelection,currentSelection,runDurationSeconds,selectionStorageKey}=
|
||||
const {parseSavedSelection,currentSelection,selectionStorageKey}=
|
||||
await import(`data:text/javascript;base64,${Buffer.from(source).toString('base64')}`);
|
||||
const selection={schema_version:'missioncore.observatory-ai-composition/v1',selections:[
|
||||
{group:'segmentation',module_id:'outdoor-provider',module_sha256:'a'.repeat(64),parameters:{}},
|
||||
@@ -33,11 +33,9 @@ test('alternative provider is rebound from full registry and park permissions su
|
||||
assert.equal(selection.selections[0].module_sha256,'a'.repeat(64));
|
||||
assert.throws(()=>currentSelection(selection,{...installed,catalog:{groups:[]}}),/недоступен/);
|
||||
});
|
||||
test('310 m at 0.15 m/s is not cut off by the old 30-minute ceiling; budgets stay bounded',()=>{
|
||||
assert.ok(runDurationSeconds(310.34,.15)>310.34/.15+120);
|
||||
assert.ok(runDurationSeconds(310.34,.15)>1800);
|
||||
assert.equal(runDurationSeconds(3.4,.15),1800);
|
||||
assert.equal(runDurationSeconds(100000,.01),7200);
|
||||
for(const speed of [0,-1,NaN,Infinity])assert.equal(runDurationSeconds(310,speed),1800);
|
||||
for(const length of [undefined,NaN,-1,Infinity])assert.equal(runDurationSeconds(length,.15),1800);
|
||||
test('continuous simulation admission does not send a distance-based duration ceiling',()=>{
|
||||
const api=readFileSync(new URL('../src/core/simulation/aiPolygon.ts',import.meta.url),'utf8');
|
||||
const start=api.slice(api.indexOf('export const startAiRun'),api.indexOf('export const sendAiPlanningCommand'));
|
||||
assert.doesNotMatch(start,/duration_seconds|runDurationSeconds/);
|
||||
assert.match(start,/clock: "realtime"/);
|
||||
});
|
||||
|
||||
@@ -99,7 +99,7 @@ test("PlayCanvas owns the realtime scene graph without an iframe or React entity
|
||||
assert.match(runtime, /camera\.script\?\.create\(CameraControls/);
|
||||
assert.match(runtime, /const HOME_POSITION = new Vec3\(0, 1, 0\)/);
|
||||
assert.match(runtime, /const HOME_FOCUS = new Vec3\(1, 1, 0\)/);
|
||||
assert.match(await read("core/simulation/gaussianQuality.ts"), /maximum: \{[^}]*lodRangeMin: 0, lodRangeMax: 5, pixelRatio: 2, splatBudget: 4_000_000, targetFps: 60/);
|
||||
assert.match(await read("core/simulation/gaussianQuality.ts"), /maximum: \{[^}]*lodRangeMin: 0, lodRangeMax: 5, pixelRatio: 2, splatBudget: 0, targetFps: 60/);
|
||||
assert.match(runtime, /app\.scene\.gsplat\.splatBudget = profile\.splatBudget/);
|
||||
assert.match(runtime, /app\.autoRender = false/);
|
||||
assert.match(runtime, /app\.systems\.gsplat\?\.on\("frame:request", this\.requestGsplatFrame\)/);
|
||||
|
||||
Reference in New Issue
Block a user