32 lines
947 B
TypeScript
32 lines
947 B
TypeScript
|
|
export const AGV_WIDTH = 40;
|
|
export const AGV_HEIGHT = 60; // Length
|
|
export const WHEEL_RADIUS = 8;
|
|
export const MAX_SPEED = 2.0;
|
|
export const TURN_SPEED = 1.5;
|
|
export const MARK_SEARCH_SPEED = 0.5;
|
|
export const GRID_SIZE = 50;
|
|
|
|
// Magnet Line Visuals
|
|
export const MAGNET_WIDTH = 10;
|
|
export const MAGNET_COLOR = 'rgba(59, 130, 246, 0.4)'; // Transparent Blue
|
|
export const MAGNET_COLOR_ACTIVE = 'rgba(59, 130, 246, 0.6)';
|
|
|
|
// Run Mode Speeds
|
|
export const SPEED_L = 0.5;
|
|
export const SPEED_M = 1.5;
|
|
export const SPEED_H = 3.0;
|
|
|
|
// Sensor positions relative to center (0,0)
|
|
// AGV faces "Right" (0 deg) in local calculation space before rotation
|
|
export const SENSOR_OFFSET_FRONT = { x: 28, y: 0 };
|
|
export const SENSOR_OFFSET_REAR = { x: -28, y: 0 };
|
|
// Mark sensor: Shifted left relative to forward direction
|
|
export const SENSOR_OFFSET_MARK = { x: 0, y: -12 };
|
|
|
|
export const INITIAL_MAP = {
|
|
nodes: [],
|
|
edges: [],
|
|
magnets: [],
|
|
marks: [],
|
|
}; |