Skip to content

Commit

Permalink
Add dummy models
Browse files Browse the repository at this point in the history
  • Loading branch information
OleDrange committed Sep 20, 2023
1 parent 5f96adb commit ce205a5
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 3 deletions.
12 changes: 10 additions & 2 deletions frontend/src/models/Mission.ts
Original file line number Diff line number Diff line change
@@ -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',
Expand Down Expand Up @@ -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: [],
}
8 changes: 7 additions & 1 deletion frontend/src/models/Robot.ts
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down Expand Up @@ -29,3 +29,9 @@ export interface Robot {
isarUri?: string
currentArea?: Area
}
export const dummyRobot: Robot = {
id: 'dummyRobotId',
model: dummyRobotModel,
currentInstallation: 'DummyInstallation',
status: RobotStatus.Available,
}
6 changes: 6 additions & 0 deletions frontend/src/models/RobotModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,9 @@ export interface RobotModel {
upperPressureWarningThreshold: number
lowerPressureWarningThreshold: number
}
export const dummyRobotModel: RobotModel = {
id: 'dummyModelId',
type: RobotType.Robot,
upperPressureWarningThreshold: 100,
lowerPressureWarningThreshold: 10,
}

0 comments on commit ce205a5

Please sign in to comment.