Skip to content
Snippets Groups Projects
Commit a55eeb23 authored by FrankR's avatar FrankR
Browse files

added space to zone

parent c984e137
Branches
No related tags found
No related merge requests found
......@@ -27,7 +27,7 @@ public class PositionMonitoring {
wm.getPois().set(1, createPOI(createPosition(createPoint3D(3.7f, -2.0f, 0f), 1f, wm.getReferenceSystem().get(0)), "UWBToken2", new HashMap<String,String>()));
wm.getPois().set(2, createPOI(createPosition(createPoint3D(-2.4f, -0.5f, 0f), 1f, wm.getReferenceSystem().get(0)), "UWBToken3", new HashMap<String,String>()));
wm.getZoneMap().set(0, modelFactory.createZoneMap());
wm.getZoneMap().get(0).getZone().set(0, createZone("cobot1_warning_zone", "cobot1_warning_zone", createPlacing(createPosition(createPoint3D(1.1f, 0.9f, 0f), 1f, wm.getReferenceSystem().get(0)), createOrientation(0f, 0f, 0f, 0f))));
wm.getZoneMap().get(0).getZone().set(0, createZone("cobot1_warning_zone", "cobot1_warning_zone", createPlacing(createPosition(createPoint3D(1.1f, 0.9f, 0f), 1f, wm.getReferenceSystem().get(0)), createOrientation(0f, 0f, 0f, 0f)), createSpace(3.0f, 3.0f, 3.0f)));
wm.getAgent().set(0, createAgent("Employee1", "HUMAN", null ));
wm.getAgent().get(0).getLObject().set(0, createLobject("UWB_1", "UWB", wm.getAgent().get(0), null));
}
......@@ -90,11 +90,12 @@ public class PositionMonitoring {
return refSystem;
}
private Zone createZone(String name, String id, Placing centrePoint){
private Zone createZone(String name, String id, Placing centrePoint, Space space){
Zone zone = modelFactory.createZone();
zone.setName(name);
zone.setId(id);
zone.setCentrePoint(centrePoint);
zone.getSpace().add(space);
return zone;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment