Commit 6533d614 authored by hengwen's avatar hengwen
Browse files

Register charging stations to simulator as simulation objects

parent a990af00
......@@ -30,6 +30,7 @@ import server.adapters.AutoPilot.FullSpeedStraight;
import server.adapters.AutoPilot.StandStill;
import server.adapters.util.RMIClient;
import simulation.environment.WorldModel;
import simulation.environment.object.ChargingStation;
import simulation.environment.osm.ApproximateConverter;
import simulation.environment.osm.ParserSettings;
import simulation.environment.visualisationadapter.interfaces.Building;
......@@ -148,6 +149,9 @@ public class SimulationControllerImpl extends SimControllerGrpc.SimControllerImp
);
this.mapInitialized = true;
for (ChargingStation cs: WorldModel.getInstance().getParser().getChargingStations()) {
simulator.registerSimulationObject(cs);
}
logger.info("Map set to {}", mapPath);
} catch (Exception e) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment