diff --git a/frontend/src/models/Mission.ts b/frontend/src/models/Mission.ts index 6fa89a34c..f24faeddc 100644 --- a/frontend/src/models/Mission.ts +++ b/frontend/src/models/Mission.ts @@ -1,8 +1,7 @@ import { MapMetadata } from './MapMetadata' -import { Robot , dummyRobot} from './Robot' +import { Robot, dummyRobot } from './Robot' import { Task } from './Task' - export enum MissionStatus { Pending = 'Pending', Ongoing = 'Ongoing', @@ -33,3 +32,12 @@ export interface Mission { tasks: Task[] map?: MapMetadata } +export const dummyMission: Mission = { + id: 'dummyId', + name: 'dummyMission', + robot: dummyRobot, + status: MissionStatus.Pending, + isCompleted: false, + desiredStartTime: new Date(), + tasks: [], +} diff --git a/frontend/src/models/Robot.ts b/frontend/src/models/Robot.ts index 3207d5485..884be32ad 100644 --- a/frontend/src/models/Robot.ts +++ b/frontend/src/models/Robot.ts @@ -1,7 +1,7 @@ import { Area } from './Area' import { BatteryStatus } from './Battery' import { Pose } from './Pose' -import { RobotModel } from './RobotModel' +import { RobotModel, dummyRobotModel } from './RobotModel' import { VideoStream } from './VideoStream' export enum RobotStatus { @@ -29,3 +29,9 @@ export interface Robot { isarUri?: string currentArea?: Area } +export const dummyRobot: Robot = { + id: 'dummyRobotId', + model: dummyRobotModel, + currentInstallation: 'DummyInstallation', + status: RobotStatus.Available, +} diff --git a/frontend/src/models/RobotModel.ts b/frontend/src/models/RobotModel.ts index ec3fe99fe..0f9020015 100644 --- a/frontend/src/models/RobotModel.ts +++ b/frontend/src/models/RobotModel.ts @@ -16,3 +16,9 @@ export interface RobotModel { upperPressureWarningThreshold: number lowerPressureWarningThreshold: number } +export const dummyRobotModel: RobotModel = { + id: 'dummyModelId', + type: RobotType.Robot, + upperPressureWarningThreshold: 100, + lowerPressureWarningThreshold: 10, +}