visualizer-components 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +90 -0
- package/dist/assets/RudderIcon.d.ts +23 -0
- package/dist/assets/RudderIcon.d.ts.map +1 -0
- package/dist/assets/RudderIcon.js +23 -0
- package/dist/assets/RudderIcon.js.map +1 -0
- package/dist/assets/svgSources.d.ts +18 -0
- package/dist/assets/svgSources.d.ts.map +1 -0
- package/dist/assets/svgSources.js +18 -0
- package/dist/assets/svgSources.js.map +1 -0
- package/dist/components/Joystick.d.ts +23 -0
- package/dist/components/Joystick.d.ts.map +1 -0
- package/dist/components/Joystick.js +114 -0
- package/dist/components/Joystick.js.map +1 -0
- package/dist/components/TelemetryDashboard.d.ts +31 -0
- package/dist/components/TelemetryDashboard.d.ts.map +1 -0
- package/dist/components/TelemetryDashboard.js +127 -0
- package/dist/components/TelemetryDashboard.js.map +1 -0
- package/dist/components/controls/ControlOverlay.d.ts +64 -0
- package/dist/components/controls/ControlOverlay.d.ts.map +1 -0
- package/dist/components/controls/ControlOverlay.js +88 -0
- package/dist/components/controls/ControlOverlay.js.map +1 -0
- package/dist/components/controls/ControlsDrawer.d.ts +37 -0
- package/dist/components/controls/ControlsDrawer.d.ts.map +1 -0
- package/dist/components/controls/ControlsDrawer.js +93 -0
- package/dist/components/controls/ControlsDrawer.js.map +1 -0
- package/dist/components/controls/ForceVectorsPanel.d.ts +37 -0
- package/dist/components/controls/ForceVectorsPanel.d.ts.map +1 -0
- package/dist/components/controls/ForceVectorsPanel.js +76 -0
- package/dist/components/controls/ForceVectorsPanel.js.map +1 -0
- package/dist/components/controls/InfoPopover.d.ts +34 -0
- package/dist/components/controls/InfoPopover.d.ts.map +1 -0
- package/dist/components/controls/InfoPopover.js +41 -0
- package/dist/components/controls/InfoPopover.js.map +1 -0
- package/dist/components/controls/Legend.d.ts +29 -0
- package/dist/components/controls/Legend.d.ts.map +1 -0
- package/dist/components/controls/Legend.js +74 -0
- package/dist/components/controls/Legend.js.map +1 -0
- package/dist/components/controls/MobileBottomNav.d.ts +17 -0
- package/dist/components/controls/MobileBottomNav.d.ts.map +1 -0
- package/dist/components/controls/MobileBottomNav.js +46 -0
- package/dist/components/controls/MobileBottomNav.js.map +1 -0
- package/dist/components/hud/SceneHUD.d.ts +100 -0
- package/dist/components/hud/SceneHUD.d.ts.map +1 -0
- package/dist/components/hud/SceneHUD.js +216 -0
- package/dist/components/hud/SceneHUD.js.map +1 -0
- package/dist/components/hud/telemetry/Batteries.d.ts +40 -0
- package/dist/components/hud/telemetry/Batteries.d.ts.map +1 -0
- package/dist/components/hud/telemetry/Batteries.js +137 -0
- package/dist/components/hud/telemetry/Batteries.js.map +1 -0
- package/dist/components/hud/telemetry/Compass.d.ts +2 -0
- package/dist/components/hud/telemetry/Compass.d.ts.map +1 -0
- package/dist/components/hud/telemetry/Compass.js +147 -0
- package/dist/components/hud/telemetry/Compass.js.map +1 -0
- package/dist/components/hud/telemetry/Log.d.ts +2 -0
- package/dist/components/hud/telemetry/Log.d.ts.map +1 -0
- package/dist/components/hud/telemetry/Log.js +65 -0
- package/dist/components/hud/telemetry/Log.js.map +1 -0
- package/dist/components/hud/telemetry/Map.d.ts +4 -0
- package/dist/components/hud/telemetry/Map.d.ts.map +1 -0
- package/dist/components/hud/telemetry/Map.js +293 -0
- package/dist/components/hud/telemetry/Map.js.map +1 -0
- package/dist/components/hud/telemetry/PowerRudderPanel.d.ts +2 -0
- package/dist/components/hud/telemetry/PowerRudderPanel.d.ts.map +1 -0
- package/dist/components/hud/telemetry/PowerRudderPanel.js +115 -0
- package/dist/components/hud/telemetry/PowerRudderPanel.js.map +1 -0
- package/dist/components/hud/telemetry/RadiusVisualizer.d.ts +63 -0
- package/dist/components/hud/telemetry/RadiusVisualizer.d.ts.map +1 -0
- package/dist/components/hud/telemetry/RadiusVisualizer.js +139 -0
- package/dist/components/hud/telemetry/RadiusVisualizer.js.map +1 -0
- package/dist/components/hud/telemetry/RadiusVisualizerPanel.d.ts +31 -0
- package/dist/components/hud/telemetry/RadiusVisualizerPanel.d.ts.map +1 -0
- package/dist/components/hud/telemetry/RadiusVisualizerPanel.js +37 -0
- package/dist/components/hud/telemetry/RadiusVisualizerPanel.js.map +1 -0
- package/dist/components/hud/telemetry/ShipRudderVisualizer.d.ts +43 -0
- package/dist/components/hud/telemetry/ShipRudderVisualizer.d.ts.map +1 -0
- package/dist/components/hud/telemetry/ShipRudderVisualizer.js +121 -0
- package/dist/components/hud/telemetry/ShipRudderVisualizer.js.map +1 -0
- package/dist/components/hud/telemetry/ShipRudderVisualizerPanel.d.ts +26 -0
- package/dist/components/hud/telemetry/ShipRudderVisualizerPanel.d.ts.map +1 -0
- package/dist/components/hud/telemetry/ShipRudderVisualizerPanel.js +29 -0
- package/dist/components/hud/telemetry/ShipRudderVisualizerPanel.js.map +1 -0
- package/dist/components/hud/telemetry/SignalLog.d.ts +7 -0
- package/dist/components/hud/telemetry/SignalLog.d.ts.map +1 -0
- package/dist/components/hud/telemetry/SignalLog.js +28 -0
- package/dist/components/hud/telemetry/SignalLog.js.map +1 -0
- package/dist/components/hud/telemetry/SignalStrength.d.ts +9 -0
- package/dist/components/hud/telemetry/SignalStrength.d.ts.map +1 -0
- package/dist/components/hud/telemetry/SignalStrength.js +53 -0
- package/dist/components/hud/telemetry/SignalStrength.js.map +1 -0
- package/dist/components/hud/telemetry/Speedometer.d.ts +2 -0
- package/dist/components/hud/telemetry/Speedometer.d.ts.map +1 -0
- package/dist/components/hud/telemetry/Speedometer.js +70 -0
- package/dist/components/hud/telemetry/Speedometer.js.map +1 -0
- package/dist/components/hud/telemetry/Task.d.ts +2 -0
- package/dist/components/hud/telemetry/Task.d.ts.map +1 -0
- package/dist/components/hud/telemetry/Task.js +61 -0
- package/dist/components/hud/telemetry/Task.js.map +1 -0
- package/dist/components/hud/telemetry/TaskData.d.ts +2 -0
- package/dist/components/hud/telemetry/TaskData.d.ts.map +1 -0
- package/dist/components/hud/telemetry/TaskData.js +62 -0
- package/dist/components/hud/telemetry/TaskData.js.map +1 -0
- package/dist/components/hud/telemetry/index.d.ts +40 -0
- package/dist/components/hud/telemetry/index.d.ts.map +1 -0
- package/dist/components/hud/telemetry/index.js +40 -0
- package/dist/components/hud/telemetry/index.js.map +1 -0
- package/dist/components/hud/telemetry/powerColor.d.ts +16 -0
- package/dist/components/hud/telemetry/powerColor.d.ts.map +1 -0
- package/dist/components/hud/telemetry/powerColor.js +15 -0
- package/dist/components/hud/telemetry/powerColor.js.map +1 -0
- package/dist/components/scenes/MappingScene.d.ts +19 -0
- package/dist/components/scenes/MappingScene.d.ts.map +1 -0
- package/dist/components/scenes/MappingScene.js +353 -0
- package/dist/components/scenes/MappingScene.js.map +1 -0
- package/dist/components/scenes/SceneCanvas.d.ts +96 -0
- package/dist/components/scenes/SceneCanvas.d.ts.map +1 -0
- package/dist/components/scenes/SceneCanvas.js +151 -0
- package/dist/components/scenes/SceneCanvas.js.map +1 -0
- package/dist/components/scenes/SceneRenderer.d.ts +16 -0
- package/dist/components/scenes/SceneRenderer.d.ts.map +1 -0
- package/dist/components/scenes/SceneRenderer.js +60 -0
- package/dist/components/scenes/SceneRenderer.js.map +1 -0
- package/dist/components/scenes/TelemetryScene.d.ts +6 -0
- package/dist/components/scenes/TelemetryScene.d.ts.map +1 -0
- package/dist/components/scenes/TelemetryScene.js +6 -0
- package/dist/components/scenes/TelemetryScene.js.map +1 -0
- package/dist/components/svg/CompassRose.d.ts +129 -0
- package/dist/components/svg/CompassRose.d.ts.map +1 -0
- package/dist/components/svg/CompassRose.js +221 -0
- package/dist/components/svg/CompassRose.js.map +1 -0
- package/dist/connection/config.d.ts +41 -0
- package/dist/connection/config.d.ts.map +1 -0
- package/dist/connection/config.js +44 -0
- package/dist/connection/config.js.map +1 -0
- package/dist/contexts/SceneContext.d.ts +35 -0
- package/dist/contexts/SceneContext.d.ts.map +1 -0
- package/dist/contexts/SceneContext.js +24 -0
- package/dist/contexts/SceneContext.js.map +1 -0
- package/dist/hooks/useAutoPathAnimation.d.ts +22 -0
- package/dist/hooks/useAutoPathAnimation.d.ts.map +1 -0
- package/dist/hooks/useAutoPathAnimation.js +102 -0
- package/dist/hooks/useAutoPathAnimation.js.map +1 -0
- package/dist/hooks/useLayoutConfig.d.ts +29 -0
- package/dist/hooks/useLayoutConfig.d.ts.map +1 -0
- package/dist/hooks/useLayoutConfig.js +30 -0
- package/dist/hooks/useLayoutConfig.js.map +1 -0
- package/dist/hooks/useSceneContext.d.ts +64 -0
- package/dist/hooks/useSceneContext.d.ts.map +1 -0
- package/dist/hooks/useSceneContext.js +37 -0
- package/dist/hooks/useSceneContext.js.map +1 -0
- package/dist/index.d.ts +44 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +57 -0
- package/dist/index.js.map +1 -0
- package/dist/providers/TelemetryProvider.d.ts +27 -0
- package/dist/providers/TelemetryProvider.d.ts.map +1 -0
- package/dist/providers/TelemetryProvider.js +50 -0
- package/dist/providers/TelemetryProvider.js.map +1 -0
- package/dist/providers/TelemetryThemeProvider.d.ts +25 -0
- package/dist/providers/TelemetryThemeProvider.d.ts.map +1 -0
- package/dist/providers/TelemetryThemeProvider.js +54 -0
- package/dist/providers/TelemetryThemeProvider.js.map +1 -0
- package/dist/store/actions/connectionActions.d.ts +39 -0
- package/dist/store/actions/connectionActions.d.ts.map +1 -0
- package/dist/store/actions/connectionActions.js +162 -0
- package/dist/store/actions/connectionActions.js.map +1 -0
- package/dist/store/actions/fetchTelemetry.d.ts +51 -0
- package/dist/store/actions/fetchTelemetry.d.ts.map +1 -0
- package/dist/store/actions/fetchTelemetry.js +135 -0
- package/dist/store/actions/fetchTelemetry.js.map +1 -0
- package/dist/store/index.d.ts +23 -0
- package/dist/store/index.d.ts.map +1 -0
- package/dist/store/index.js +22 -0
- package/dist/store/index.js.map +1 -0
- package/dist/store/slices/connectionSlice.d.ts +15 -0
- package/dist/store/slices/connectionSlice.d.ts.map +1 -0
- package/dist/store/slices/connectionSlice.js +39 -0
- package/dist/store/slices/connectionSlice.js.map +1 -0
- package/dist/store/slices/discoveredGridSlice.d.ts +168 -0
- package/dist/store/slices/discoveredGridSlice.d.ts.map +1 -0
- package/dist/store/slices/discoveredGridSlice.js +146 -0
- package/dist/store/slices/discoveredGridSlice.js.map +1 -0
- package/dist/store/slices/sceneSlice.d.ts +185 -0
- package/dist/store/slices/sceneSlice.d.ts.map +1 -0
- package/dist/store/slices/sceneSlice.js +95 -0
- package/dist/store/slices/sceneSlice.js.map +1 -0
- package/dist/store/slices/simulationSlice.d.ts +87 -0
- package/dist/store/slices/simulationSlice.d.ts.map +1 -0
- package/dist/store/slices/simulationSlice.js +55 -0
- package/dist/store/slices/simulationSlice.js.map +1 -0
- package/dist/store/slices/telemetrySlice.d.ts +10 -0
- package/dist/store/slices/telemetrySlice.d.ts.map +1 -0
- package/dist/store/slices/telemetrySlice.js +88 -0
- package/dist/store/slices/telemetrySlice.js.map +1 -0
- package/dist/store/slices/videoSlice.d.ts +12 -0
- package/dist/store/slices/videoSlice.d.ts.map +1 -0
- package/dist/store/slices/videoSlice.js +27 -0
- package/dist/store/slices/videoSlice.js.map +1 -0
- package/dist/store/slices/visualizationSlice.d.ts +152 -0
- package/dist/store/slices/visualizationSlice.d.ts.map +1 -0
- package/dist/store/slices/visualizationSlice.js +58 -0
- package/dist/store/slices/visualizationSlice.js.map +1 -0
- package/dist/store/store.d.ts +61 -0
- package/dist/store/store.d.ts.map +1 -0
- package/dist/store/store.js +78 -0
- package/dist/store/store.js.map +1 -0
- package/dist/theme/index.d.ts +14 -0
- package/dist/theme/index.d.ts.map +1 -0
- package/dist/theme/index.js +14 -0
- package/dist/theme/index.js.map +1 -0
- package/dist/theme/lightTheme.d.ts +151 -0
- package/dist/theme/lightTheme.d.ts.map +1 -0
- package/dist/theme/lightTheme.js +194 -0
- package/dist/theme/lightTheme.js.map +1 -0
- package/dist/theme/telemetryTheme.d.ts +90 -0
- package/dist/theme/telemetryTheme.d.ts.map +1 -0
- package/dist/theme/telemetryTheme.js +157 -0
- package/dist/theme/telemetryTheme.js.map +1 -0
- package/dist/types/detectedObjectsTypes.d.ts +18 -0
- package/dist/types/detectedObjectsTypes.d.ts.map +1 -0
- package/dist/types/detectedObjectsTypes.js +8 -0
- package/dist/types/detectedObjectsTypes.js.map +1 -0
- package/dist/types/index.d.ts +16 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +16 -0
- package/dist/types/index.js.map +1 -0
- package/dist/types/ros.d.ts +87 -0
- package/dist/types/ros.d.ts.map +1 -0
- package/dist/types/ros.js +17 -0
- package/dist/types/ros.js.map +1 -0
- package/dist/types/statusTypes.d.ts +81 -0
- package/dist/types/statusTypes.d.ts.map +1 -0
- package/dist/types/statusTypes.js +52 -0
- package/dist/types/statusTypes.js.map +1 -0
- package/dist/types/taskTypes.d.ts +65 -0
- package/dist/types/taskTypes.d.ts.map +1 -0
- package/dist/types/taskTypes.js +18 -0
- package/dist/types/taskTypes.js.map +1 -0
- package/dist/types/telemetryInterfaces.d.ts +81 -0
- package/dist/types/telemetryInterfaces.d.ts.map +1 -0
- package/dist/types/telemetryInterfaces.js +30 -0
- package/dist/types/telemetryInterfaces.js.map +1 -0
- package/dist/utils/basestation.d.ts +7 -0
- package/dist/utils/basestation.d.ts.map +1 -0
- package/dist/utils/basestation.js +49 -0
- package/dist/utils/basestation.js.map +1 -0
- package/dist/utils/batteryUtil.d.ts +8 -0
- package/dist/utils/batteryUtil.d.ts.map +1 -0
- package/dist/utils/batteryUtil.js +32 -0
- package/dist/utils/batteryUtil.js.map +1 -0
- package/dist/utils/telemetry/index.d.ts +13 -0
- package/dist/utils/telemetry/index.d.ts.map +1 -0
- package/dist/utils/telemetry/index.js +13 -0
- package/dist/utils/telemetry/index.js.map +1 -0
- package/dist/utils/telemetry/telemetryFactory.d.ts +48 -0
- package/dist/utils/telemetry/telemetryFactory.d.ts.map +1 -0
- package/dist/utils/telemetry/telemetryFactory.js +390 -0
- package/dist/utils/telemetry/telemetryFactory.js.map +1 -0
- package/package.json +91 -0
|
@@ -0,0 +1,390 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file telemetryFactory.ts
|
|
3
|
+
*
|
|
4
|
+
* @description
|
|
5
|
+
* Factory functions for generating random telemetry data for testing and development purposes.
|
|
6
|
+
* This includes functions to create random telemetry states, as well as utilities for generating random values within specified ranges.
|
|
7
|
+
* @author Carson Fujita
|
|
8
|
+
* @license MIT
|
|
9
|
+
* @remarks
|
|
10
|
+
* - The `generateRandomTelemetry` function creates a complete telemetry state with random values for all parameters, including speed, heading, battery levels, task data, and more.
|
|
11
|
+
* - The `generateMockTelemetryUpdate` function takes a previous telemetry state and generates a new state with small random variations to simulate real-time updates.
|
|
12
|
+
* - These factory functions are useful for testing the application's UI and functionality without needing a live connection to the basestation or actual telemetry data.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```typescript
|
|
16
|
+
* import { generateRandomTelemetry } from './telemetryFactory';
|
|
17
|
+
*
|
|
18
|
+
* const randomTelemetry = generateRandomTelemetry();
|
|
19
|
+
* console.log(randomTelemetry);
|
|
20
|
+
* ```
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* ```typescript
|
|
24
|
+
* import { generateMockTelemetryUpdate } from './telemetryFactory';
|
|
25
|
+
*
|
|
26
|
+
* let currentTelemetry = generateRandomTelemetry();
|
|
27
|
+
* setInterval(() => {
|
|
28
|
+
* currentTelemetry = generateMockTelemetryUpdate(currentTelemetry);
|
|
29
|
+
* console.log(currentTelemetry);
|
|
30
|
+
* }, 1000);
|
|
31
|
+
* ```
|
|
32
|
+
*
|
|
33
|
+
*/
|
|
34
|
+
import { CellTypes, InitialCell, TaskValues, GLOBAL_CELL_SIZE, GLOBAL_GRID_SIZE, LOCAL_CELL_SIZE } from "../../types";
|
|
35
|
+
// clamp a value between a minimum and maximum
|
|
36
|
+
const clamp = (value, min, max) => Math.min(max, Math.max(min, value));
|
|
37
|
+
// Generate a random number between min and max
|
|
38
|
+
const randomBetween = (min, max) => min + Math.random() * (max - min);
|
|
39
|
+
// Generate a random integer between min and max (inclusive)
|
|
40
|
+
const randomInt = (min, max) => Math.floor(randomBetween(min, max + 1));
|
|
41
|
+
// Select a random item from an array
|
|
42
|
+
const randomChoice = (items) => items[Math.floor(Math.random() * items.length)];
|
|
43
|
+
// Generate a random step value for telemetry updates, which can be positive or negative
|
|
44
|
+
const randomStep = (minStep, maxStep) => randomBetween(minStep, maxStep) * (Math.random() < 0.5 ? -1 : 1);
|
|
45
|
+
/**
|
|
46
|
+
* creates a random TaskData object with random values for testing purposes.
|
|
47
|
+
* @returns randomly generated TaskData object containing an id, name, status, latitude, and longitude.
|
|
48
|
+
*/
|
|
49
|
+
const createTaskData = () => ({
|
|
50
|
+
id: randomInt(1, 9999),
|
|
51
|
+
name: `Task ${randomInt(1, 99)}`,
|
|
52
|
+
status: randomChoice(Object.values(TaskValues)),
|
|
53
|
+
latitude: randomBetween(-90, 90),
|
|
54
|
+
longitude: randomBetween(-180, 180),
|
|
55
|
+
});
|
|
56
|
+
/**
|
|
57
|
+
* creates a TaskLocation object with random values for testing purposes.
|
|
58
|
+
* @returns randomly generated TaskLocation object.
|
|
59
|
+
*/
|
|
60
|
+
const createTaskLocation = () => ({
|
|
61
|
+
id: `loc-${randomInt(100, 999)}`,
|
|
62
|
+
latitude: randomBetween(-90, 90),
|
|
63
|
+
longitude: randomBetween(-180, 180),
|
|
64
|
+
});
|
|
65
|
+
/**
|
|
66
|
+
* Creates an array of random log entries for testing purposes.
|
|
67
|
+
* @param count the number of log entries to generate.
|
|
68
|
+
* @returns an array of randomly generated log entries.
|
|
69
|
+
*/
|
|
70
|
+
const createLogEntries = (count) => Array.from({ length: count }, () => randomChoice(exampleLogData));
|
|
71
|
+
// Example log data to generate random logs
|
|
72
|
+
const exampleLogData = [
|
|
73
|
+
"Wowzers, this is a log entry!",
|
|
74
|
+
"Jinkies, Scooby-Doo, where are you?",
|
|
75
|
+
"Yippie!",
|
|
76
|
+
"Zoinks!",
|
|
77
|
+
"Ruh-roh!",
|
|
78
|
+
"Jeepers, this is a spooky log entry!",
|
|
79
|
+
];
|
|
80
|
+
// ---------------------------------------------------------------------------
|
|
81
|
+
// Grid generation helpers
|
|
82
|
+
// Convention throughout: x = column (left→right), y = row (top→down).
|
|
83
|
+
// Grid is stored as grid[row][col] = grid[y][x].
|
|
84
|
+
// ---------------------------------------------------------------------------
|
|
85
|
+
/** Build a normalised 1-D Gaussian kernel. */
|
|
86
|
+
function gaussianKernel1D(sigma) {
|
|
87
|
+
const radius = Math.ceil(sigma * 3);
|
|
88
|
+
let sum = 0;
|
|
89
|
+
const kernel = [];
|
|
90
|
+
for (let k = -radius; k <= radius; k++) {
|
|
91
|
+
const v = Math.exp(-(k * k) / (2 * sigma * sigma));
|
|
92
|
+
kernel.push(v);
|
|
93
|
+
sum += v;
|
|
94
|
+
}
|
|
95
|
+
return kernel.map(v => v / sum);
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* Separable Gaussian blur — horizontal pass then vertical pass.
|
|
99
|
+
* Much faster than a full 2-D convolution for large grids.
|
|
100
|
+
*/
|
|
101
|
+
function applyGaussianBlurSeparable(noise, sigma) {
|
|
102
|
+
const h = noise.length;
|
|
103
|
+
const w = noise[0].length;
|
|
104
|
+
const kernel = gaussianKernel1D(sigma);
|
|
105
|
+
const r = Math.floor(kernel.length / 2);
|
|
106
|
+
// Horizontal pass
|
|
107
|
+
const temp = Array.from({ length: h }, (_, row) => Array.from({ length: w }, (_, col) => {
|
|
108
|
+
let acc = 0, wSum = 0;
|
|
109
|
+
for (let k = 0; k < kernel.length; k++) {
|
|
110
|
+
const nc = col + k - r;
|
|
111
|
+
if (nc >= 0 && nc < w) {
|
|
112
|
+
acc += noise[row][nc] * kernel[k];
|
|
113
|
+
wSum += kernel[k];
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
return wSum > 0 ? acc / wSum : 0;
|
|
117
|
+
}));
|
|
118
|
+
// Vertical pass
|
|
119
|
+
return Array.from({ length: h }, (_, row) => Array.from({ length: w }, (_, col) => {
|
|
120
|
+
let acc = 0, wSum = 0;
|
|
121
|
+
for (let k = 0; k < kernel.length; k++) {
|
|
122
|
+
const nr = row + k - r;
|
|
123
|
+
if (nr >= 0 && nr < h) {
|
|
124
|
+
acc += temp[nr][col] * kernel[k];
|
|
125
|
+
wSum += kernel[k];
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
return wSum > 0 ? acc / wSum : 0;
|
|
129
|
+
}));
|
|
130
|
+
}
|
|
131
|
+
// Fine-grid dimensions derived from global constants
|
|
132
|
+
const FINE_SCALE = GLOBAL_CELL_SIZE / LOCAL_CELL_SIZE; // 5 fine cells per global cell
|
|
133
|
+
const FINE_GRID_SIZE = GLOBAL_GRID_SIZE * FINE_SCALE; // 100×100 total
|
|
134
|
+
const FINE_SIGMA = FINE_SCALE * 2.0; // visually equivalent to sigma=2 on the 20×20 grid
|
|
135
|
+
/**
|
|
136
|
+
* Generates a high-resolution occupancy grid at LOCAL_CELL_SIZE precision spanning the full
|
|
137
|
+
* global world. Obstacle islands have the same visual footprint as the old coarse grid.
|
|
138
|
+
*/
|
|
139
|
+
function createFineGrid() {
|
|
140
|
+
const size = FINE_GRID_SIZE;
|
|
141
|
+
const noise = Array.from({ length: size }, () => Array.from({ length: size }, () => Math.random()));
|
|
142
|
+
const blurred = applyGaussianBlurSeparable(noise, FINE_SIGMA);
|
|
143
|
+
let min = Infinity, max = -Infinity;
|
|
144
|
+
for (const row of blurred)
|
|
145
|
+
for (const v of row) {
|
|
146
|
+
if (v < min)
|
|
147
|
+
min = v;
|
|
148
|
+
if (v > max)
|
|
149
|
+
max = v;
|
|
150
|
+
}
|
|
151
|
+
const range = max - min || 1;
|
|
152
|
+
const threshold = 0.75;
|
|
153
|
+
return Array.from({ length: size }, (_, row) => Array.from({ length: size }, (_, col) => {
|
|
154
|
+
const normalized = (blurred[row][col] - min) / range;
|
|
155
|
+
return {
|
|
156
|
+
...InitialCell,
|
|
157
|
+
x: col,
|
|
158
|
+
y: row,
|
|
159
|
+
z: normalized,
|
|
160
|
+
type: normalized > threshold ? CellTypes.occupied : CellTypes.empty,
|
|
161
|
+
};
|
|
162
|
+
}));
|
|
163
|
+
}
|
|
164
|
+
/**
|
|
165
|
+
* Downsamples the 100×100 fine grid to a GLOBAL_GRID_SIZE×GLOBAL_GRID_SIZE coarse grid.
|
|
166
|
+
* A coarse cell is occupied if any of its FINE_SCALE×FINE_SCALE constituent fine cells is occupied.
|
|
167
|
+
*/
|
|
168
|
+
function deriveCoarseGrid(fineGrid) {
|
|
169
|
+
const coarseSize = GLOBAL_GRID_SIZE;
|
|
170
|
+
return Array.from({ length: coarseSize }, (_, coarseRow) => Array.from({ length: coarseSize }, (_, coarseCol) => {
|
|
171
|
+
const fineRowStart = coarseRow * FINE_SCALE;
|
|
172
|
+
const fineColStart = coarseCol * FINE_SCALE;
|
|
173
|
+
let occupied = false;
|
|
174
|
+
outer: for (let dr = 0; dr < FINE_SCALE; dr++) {
|
|
175
|
+
for (let dc = 0; dc < FINE_SCALE; dc++) {
|
|
176
|
+
if (fineGrid[fineRowStart + dr]?.[fineColStart + dc]?.type === CellTypes.occupied) {
|
|
177
|
+
occupied = true;
|
|
178
|
+
break outer;
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
return { ...InitialCell, x: coarseCol, y: coarseRow, type: occupied ? CellTypes.occupied : CellTypes.empty };
|
|
183
|
+
}));
|
|
184
|
+
}
|
|
185
|
+
/**
|
|
186
|
+
* 4-directional BFS from (startX, startY) to (goalX, goalY) on the occupancy grid.
|
|
187
|
+
* Returns the shortest path as {x,y} pairs when reachable.
|
|
188
|
+
* Always returns the closest reachable cell to the goal (used for error placement).
|
|
189
|
+
*/
|
|
190
|
+
function bfsPath(occupancyGrid, startX, startY, goalX, goalY) {
|
|
191
|
+
const h = occupancyGrid.length;
|
|
192
|
+
const w = occupancyGrid[0].length;
|
|
193
|
+
const key = (x, y) => `${x},${y}`;
|
|
194
|
+
// parent: null means "this is the start node"
|
|
195
|
+
const parent = new Map();
|
|
196
|
+
const queue = [{ x: startX, y: startY }];
|
|
197
|
+
parent.set(key(startX, startY), null);
|
|
198
|
+
const dist = (x, y) => Math.abs(x - goalX) + Math.abs(y - goalY);
|
|
199
|
+
let closest = { x: startX, y: startY };
|
|
200
|
+
let closestDist = dist(startX, startY);
|
|
201
|
+
const dirs = [{ dx: 1, dy: 0 }, { dx: -1, dy: 0 }, { dx: 0, dy: 1 }, { dx: 0, dy: -1 }];
|
|
202
|
+
while (queue.length > 0) {
|
|
203
|
+
const { x, y } = queue.shift();
|
|
204
|
+
const d = dist(x, y);
|
|
205
|
+
if (d < closestDist) {
|
|
206
|
+
closestDist = d;
|
|
207
|
+
closest = { x, y };
|
|
208
|
+
}
|
|
209
|
+
if (x === goalX && y === goalY) {
|
|
210
|
+
// Reconstruct path by following parent pointers back to start.
|
|
211
|
+
const path = [];
|
|
212
|
+
let cur = key(x, y);
|
|
213
|
+
while (cur !== null) {
|
|
214
|
+
const [cx, cy] = cur.split(',').map(Number);
|
|
215
|
+
path.unshift({ x: cx, y: cy });
|
|
216
|
+
cur = parent.get(cur) ?? null;
|
|
217
|
+
}
|
|
218
|
+
return { path, closest };
|
|
219
|
+
}
|
|
220
|
+
for (const { dx, dy } of dirs) {
|
|
221
|
+
const nx = x + dx, ny = y + dy;
|
|
222
|
+
if (nx < 0 || nx >= w || ny < 0 || ny >= h)
|
|
223
|
+
continue;
|
|
224
|
+
const nk = key(nx, ny);
|
|
225
|
+
if (parent.has(nk))
|
|
226
|
+
continue;
|
|
227
|
+
if (occupancyGrid[ny][nx].type === CellTypes.occupied)
|
|
228
|
+
continue;
|
|
229
|
+
parent.set(nk, key(x, y));
|
|
230
|
+
queue.push({ x: nx, y: ny });
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
return { path: null, closest };
|
|
234
|
+
}
|
|
235
|
+
// ---------------------------------------------------------------------------
|
|
236
|
+
/**
|
|
237
|
+
* Builds the navigation grid using BFS to find a path from a start cell
|
|
238
|
+
* (top-left quadrant) to a goal cell (bottom-right quadrant).
|
|
239
|
+
* If no path exists, an error cell is placed at the closest reachable position.
|
|
240
|
+
*/
|
|
241
|
+
function createNavigationGrid(occupancyGrid) {
|
|
242
|
+
const h = occupancyGrid.length;
|
|
243
|
+
const w = occupancyGrid[0].length;
|
|
244
|
+
const navigationGrid = occupancyGrid.map(row => row.map(cell => ({ ...InitialCell, x: cell.x, y: cell.y, type: CellTypes.empty })));
|
|
245
|
+
// Collect free cells in scan order (top-left → bottom-right).
|
|
246
|
+
const freeCells = [];
|
|
247
|
+
for (let row = 0; row < h; row++) {
|
|
248
|
+
for (let col = 0; col < w; col++) {
|
|
249
|
+
if (occupancyGrid[row][col].type !== CellTypes.occupied) {
|
|
250
|
+
freeCells.push({ x: col, y: row });
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
if (freeCells.length < 2)
|
|
255
|
+
return { navigationGrid, path: [] };
|
|
256
|
+
const q = Math.max(1, Math.floor(freeCells.length / 4));
|
|
257
|
+
const start = freeCells[randomInt(0, q - 1)];
|
|
258
|
+
const goal = freeCells[randomInt(freeCells.length - q, freeCells.length - 1)];
|
|
259
|
+
const { path: bfsResult, closest } = bfsPath(occupancyGrid, start.x, start.y, goal.x, goal.y);
|
|
260
|
+
const path = [];
|
|
261
|
+
if (bfsResult) {
|
|
262
|
+
for (const { x, y } of bfsResult) {
|
|
263
|
+
const cell = { ...InitialCell, type: CellTypes.path, x, y };
|
|
264
|
+
path.push(cell);
|
|
265
|
+
navigationGrid[y][x] = { ...cell };
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
else {
|
|
269
|
+
// No path — mark closest reachable cell as error, start as the only path point.
|
|
270
|
+
navigationGrid[closest.y][closest.x] = {
|
|
271
|
+
...InitialCell, type: CellTypes.error, x: closest.x, y: closest.y,
|
|
272
|
+
};
|
|
273
|
+
const startCell = { ...InitialCell, type: CellTypes.path, x: start.x, y: start.y };
|
|
274
|
+
path.push(startCell);
|
|
275
|
+
navigationGrid[start.y][start.x] = startCell;
|
|
276
|
+
}
|
|
277
|
+
return { navigationGrid, path };
|
|
278
|
+
}
|
|
279
|
+
function createPlanning(navigationGrid, path) {
|
|
280
|
+
const course = [];
|
|
281
|
+
const plan = [];
|
|
282
|
+
const currentIndex = 0;
|
|
283
|
+
for (let i = 0; i <= currentIndex; i++) {
|
|
284
|
+
course.push({ ...path[i], type: CellTypes.path });
|
|
285
|
+
}
|
|
286
|
+
for (let i = currentIndex; i < path.length; i++) {
|
|
287
|
+
plan.push({ ...path[i], type: CellTypes.path });
|
|
288
|
+
}
|
|
289
|
+
const current = path[currentIndex] ?? { ...InitialCell, type: CellTypes.current, x: 0, y: 0 };
|
|
290
|
+
const currentCell = { ...current, type: CellTypes.current };
|
|
291
|
+
navigationGrid[current.y][current.x] = currentCell;
|
|
292
|
+
const lastPathCell = path[path.length - 1] ?? current;
|
|
293
|
+
if (lastPathCell.x !== current.x || lastPathCell.y !== current.y) {
|
|
294
|
+
navigationGrid[lastPathCell.y][lastPathCell.x] = { ...lastPathCell, type: CellTypes.objective };
|
|
295
|
+
}
|
|
296
|
+
return { course, plan };
|
|
297
|
+
}
|
|
298
|
+
export function generateRandomState() {
|
|
299
|
+
console.log("Generating random telemetry state...");
|
|
300
|
+
const fineGrid = createFineGrid();
|
|
301
|
+
const occupancyGrid = deriveCoarseGrid(fineGrid);
|
|
302
|
+
const { navigationGrid, path } = createNavigationGrid(occupancyGrid);
|
|
303
|
+
const { course, plan } = createPlanning(navigationGrid, path);
|
|
304
|
+
const status = {
|
|
305
|
+
map: {
|
|
306
|
+
occupancyGrid,
|
|
307
|
+
navigationGrid,
|
|
308
|
+
courseTrail: [],
|
|
309
|
+
},
|
|
310
|
+
planning: {
|
|
311
|
+
status: randomChoice(Object.values(TaskValues)),
|
|
312
|
+
course: course,
|
|
313
|
+
plan: plan,
|
|
314
|
+
},
|
|
315
|
+
task: {
|
|
316
|
+
log: createLogEntries(10),
|
|
317
|
+
location: createTaskLocation(),
|
|
318
|
+
data: createTaskData(),
|
|
319
|
+
},
|
|
320
|
+
battery: {
|
|
321
|
+
motors: randomBetween(35, 100),
|
|
322
|
+
primary: randomBetween(35, 100),
|
|
323
|
+
},
|
|
324
|
+
rudder: {
|
|
325
|
+
angle: randomBetween(-30, 30),
|
|
326
|
+
},
|
|
327
|
+
motors: {
|
|
328
|
+
left: randomBetween(35, 100),
|
|
329
|
+
right: randomBetween(35, 100),
|
|
330
|
+
},
|
|
331
|
+
asv: {
|
|
332
|
+
speed: randomBetween(0, 5),
|
|
333
|
+
heading: randomBetween(0, 360),
|
|
334
|
+
longitude: randomBetween(-180, 180),
|
|
335
|
+
latitude: randomBetween(-90, 90),
|
|
336
|
+
},
|
|
337
|
+
signal: {
|
|
338
|
+
strength: randomBetween(0, 100),
|
|
339
|
+
},
|
|
340
|
+
zed: {
|
|
341
|
+
odom: {
|
|
342
|
+
position: { x: randomBetween(-5, 5), y: randomBetween(-5, 5), z: 0 },
|
|
343
|
+
orientation: { roll: randomBetween(-10, 10), pitch: randomBetween(-10, 10), yaw: randomBetween(0, 360) },
|
|
344
|
+
},
|
|
345
|
+
objects: [],
|
|
346
|
+
camera: {
|
|
347
|
+
active: false,
|
|
348
|
+
width: 0,
|
|
349
|
+
height: 0,
|
|
350
|
+
encoding: "",
|
|
351
|
+
},
|
|
352
|
+
},
|
|
353
|
+
};
|
|
354
|
+
return { status, fineGrid };
|
|
355
|
+
}
|
|
356
|
+
export function generateMockVideoUrl() {
|
|
357
|
+
return `https://picsum.photos/640/360?random=${randomInt(1, 9999)}`;
|
|
358
|
+
}
|
|
359
|
+
/**
|
|
360
|
+
* Generates a new state by applying small random variations to the previous state, simulating real-time updates.
|
|
361
|
+
* @param previous the previous State to base the new state on.
|
|
362
|
+
* @returns a new State object with updated values based on the previous state,
|
|
363
|
+
* with random variations applied to simulate changes over time.
|
|
364
|
+
*/
|
|
365
|
+
export function generateMockStateUpdate(previous) {
|
|
366
|
+
const nextTaskLog = [...previous.task.log, randomChoice(exampleLogData)].slice(-10);
|
|
367
|
+
return {
|
|
368
|
+
...previous,
|
|
369
|
+
signal: {
|
|
370
|
+
strength: clamp(previous.signal.strength + randomStep(1, 4), 0, 100),
|
|
371
|
+
},
|
|
372
|
+
battery: {
|
|
373
|
+
motors: clamp(previous.battery.motors + randomStep(1, 6), 0, 100),
|
|
374
|
+
primary: clamp(previous.battery.primary + randomStep(1, 6), 0, 100),
|
|
375
|
+
},
|
|
376
|
+
rudder: {
|
|
377
|
+
angle: clamp(previous.rudder.angle + randomStep(2, 7), -90, 90),
|
|
378
|
+
},
|
|
379
|
+
motors: {
|
|
380
|
+
left: clamp(previous.motors.left + randomStep(1, 6), 0, 100),
|
|
381
|
+
right: clamp(previous.motors.right + randomStep(1, 6), 0, 100),
|
|
382
|
+
},
|
|
383
|
+
task: {
|
|
384
|
+
...previous.task,
|
|
385
|
+
log: nextTaskLog,
|
|
386
|
+
},
|
|
387
|
+
};
|
|
388
|
+
}
|
|
389
|
+
export default generateRandomState;
|
|
390
|
+
//# sourceMappingURL=telemetryFactory.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"telemetryFactory.js","sourceRoot":"","sources":["../../../src/utils/telemetry/telemetryFactory.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AA4BH,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,UAAU,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAEtH,8CAA8C;AAC9C,MAAM,KAAK,GAAG,CAAC,KAAa,EAAE,GAAW,EAAE,GAAW,EAAE,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,IAAI,CAAC,GAAG,CAAC,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AAG,EAAE,WAAW;SACnB;KACJ,CAAA;AACL,CAAC;AAED,eAAe,mBAAmB,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "visualizer-components",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Humber ASV telemetry visualizer — React components, Redux slices, MUI themes, and basestation connection utilities built on @react-spring/web, @use-gesture, MUI and Redux Toolkit.",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"author": "Carson Fujita",
|
|
7
|
+
"type": "module",
|
|
8
|
+
"sideEffects": false,
|
|
9
|
+
"files": [
|
|
10
|
+
"dist",
|
|
11
|
+
"README.md",
|
|
12
|
+
"LICENSE"
|
|
13
|
+
],
|
|
14
|
+
"main": "./dist/index.js",
|
|
15
|
+
"types": "./dist/index.d.ts",
|
|
16
|
+
"exports": {
|
|
17
|
+
".": {
|
|
18
|
+
"types": "./dist/index.d.ts",
|
|
19
|
+
"import": "./dist/index.js"
|
|
20
|
+
},
|
|
21
|
+
"./store": {
|
|
22
|
+
"types": "./dist/store/index.d.ts",
|
|
23
|
+
"import": "./dist/store/index.js"
|
|
24
|
+
},
|
|
25
|
+
"./theme": {
|
|
26
|
+
"types": "./dist/theme/index.d.ts",
|
|
27
|
+
"import": "./dist/theme/index.js"
|
|
28
|
+
},
|
|
29
|
+
"./package.json": "./package.json"
|
|
30
|
+
},
|
|
31
|
+
"scripts": {
|
|
32
|
+
"dev": "bun --hot demo/index.ts",
|
|
33
|
+
"build": "tsc -p tsconfig.build.json",
|
|
34
|
+
"build:watch": "tsc -p tsconfig.build.json --watch",
|
|
35
|
+
"typecheck": "tsc --noEmit",
|
|
36
|
+
"lint": "eslint .",
|
|
37
|
+
"test": "jest",
|
|
38
|
+
"test:e2e": "jest --config jest.e2e.config.js",
|
|
39
|
+
"docs": "typedoc",
|
|
40
|
+
"prepublishOnly": "bun run build"
|
|
41
|
+
},
|
|
42
|
+
"peerDependencies": {
|
|
43
|
+
"@emotion/react": "^11.0.0",
|
|
44
|
+
"@emotion/styled": "^11.0.0",
|
|
45
|
+
"@mui/icons-material": "^7.0.0 || ^8.0.0 || ^9.0.0",
|
|
46
|
+
"@mui/material": "^7.0.0 || ^8.0.0 || ^9.0.0",
|
|
47
|
+
"@reduxjs/toolkit": "^2.0.0",
|
|
48
|
+
"isometric-physics": "^1.0.0",
|
|
49
|
+
"react": "^19.0.0",
|
|
50
|
+
"react-dom": "^19.0.0",
|
|
51
|
+
"react-isometric-engine": "^1.0.0",
|
|
52
|
+
"react-redux": "^9.0.0"
|
|
53
|
+
},
|
|
54
|
+
"dependencies": {
|
|
55
|
+
"@react-spring/web": "^10.1.2",
|
|
56
|
+
"@use-gesture/react": "^10.3.1"
|
|
57
|
+
},
|
|
58
|
+
"devDependencies": {
|
|
59
|
+
"@emotion/react": "^11.14.0",
|
|
60
|
+
"@emotion/styled": "^11.14.1",
|
|
61
|
+
"@eslint/js": "^9.35.0",
|
|
62
|
+
"@mui/icons-material": "^7.3.2",
|
|
63
|
+
"@mui/material": "^7.3.2",
|
|
64
|
+
"@reduxjs/toolkit": "^2.12.0",
|
|
65
|
+
"@testing-library/jest-dom": "^6.9.1",
|
|
66
|
+
"@testing-library/react": "^16.3.2",
|
|
67
|
+
"@testing-library/user-event": "^14.6.1",
|
|
68
|
+
"@types/bun": "latest",
|
|
69
|
+
"@types/jest": "^30.0.0",
|
|
70
|
+
"@types/node": "^24.0.0",
|
|
71
|
+
"@types/react": "^19.1.13",
|
|
72
|
+
"@types/react-dom": "^19.1.9",
|
|
73
|
+
"@types/selenium-webdriver": "^4.1.28",
|
|
74
|
+
"eslint": "^9.35.0",
|
|
75
|
+
"eslint-plugin-react-hooks": "^5.2.0",
|
|
76
|
+
"globals": "^16.4.0",
|
|
77
|
+
"isometric-physics": "^1.0.2",
|
|
78
|
+
"jest": "^30.4.2",
|
|
79
|
+
"jest-environment-jsdom": "^30.4.1",
|
|
80
|
+
"react": "^19.1.1",
|
|
81
|
+
"react-dom": "^19.1.1",
|
|
82
|
+
"react-isometric-engine": "^1.0.0",
|
|
83
|
+
"react-redux": "^9.3.0",
|
|
84
|
+
"selenium-webdriver": "^4.46.0",
|
|
85
|
+
"ts-jest": "^29.4.11",
|
|
86
|
+
"typedoc": "^0.28.20",
|
|
87
|
+
"typedoc-material-theme": "^1.4.1",
|
|
88
|
+
"typescript": "~5.8.3",
|
|
89
|
+
"typescript-eslint": "^8.43.0"
|
|
90
|
+
}
|
|
91
|
+
}
|