Skip to content

Commit 30325e8

Browse files
committed
Adds Pami Star robot configuration
Adds configuration for the Pami Star robot, including both simulator and non-simulator versions. This ensures the robot is properly initialized and available for use.
1 parent ef2df4e commit 30325e8

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

src/services/RobotService.ts

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ export class RobotService {
5050
const hasPamiCarreSimu = robots.find(r => r.name === 'Pami ▢' && r.simulateur) !== undefined;
5151
const hasPamiRond = robots.find(r => r.name === 'Pami ○' && !r.simulateur) !== undefined;
5252
const hasPamiRondSimu = robots.find(r => r.name === 'Pami ○' && r.simulateur) !== undefined;
53+
const hasPamiStar = robots.find(r => r.name === 'Pami ★' && !r.simulateur) !== undefined;
54+
const hasPamiStarSimu = robots.find(r => r.name === 'Pami ★' && r.simulateur) !== undefined;
5355

5456
this.log.info(`Nerell found : ${hasNerell}`)
5557
this.log.info(`Nerell simu found : ${hasNerellSimu}`)
@@ -61,6 +63,8 @@ export class RobotService {
6163
this.log.info(`Pami Carre simu found : ${hasPamiCarreSimu}`)
6264
this.log.info(`Pami Rond found : ${hasPamiRond}`)
6365
this.log.info(`Pami Rond simu found : ${hasPamiRondSimu}`)
66+
this.log.info(`Pami Star found : ${hasPamiStar}`)
67+
this.log.info(`Pami Star simu found : ${hasPamiStarSimu}`)
6468

6569
if (!hasNerell) {
6670
new Robot({
@@ -138,6 +142,22 @@ export class RobotService {
138142
simulateur: true,
139143
}).save();
140144
}
145+
if (!hasPamiStar) {
146+
new Robot({
147+
host : 'pami-star:8085',
148+
name : 'Pami ★',
149+
dirName : 'pami-star',
150+
simulateur: false,
151+
}).save();
152+
}
153+
if (!hasPamiRondSimu) {
154+
new Robot({
155+
host : 'localhost:8085',
156+
name : 'Pami ★',
157+
dirName : 'pami-star',
158+
simulateur: true,
159+
}).save();
160+
}
141161
});
142162
}
143163
}

0 commit comments

Comments
 (0)