diff --git a/src/main/jastadd/cleanup/SemanticActions.jadd b/src/main/jastadd/cleanup/SemanticActions.jadd index 3c4e25b43f8d7839583c452f20eae019de17894b..981f176cb5bafbae7d24bdf61d4a9c7534fb6526 100644 --- a/src/main/jastadd/cleanup/SemanticActions.jadd +++ b/src/main/jastadd/cleanup/SemanticActions.jadd @@ -59,6 +59,20 @@ aspect SemanticActions { } } + public void Tidy.action(World world) { + RobotScene scene = world.asRobotScene(); + System.out.println("performing semantic action for element Tidy"); + if (scene.simulated) { + } else { + de.tudresden.inf.st.ceti.Command c = de.tudresden.inf.st.ceti.Command.newBuilder().setEvacuate(de.tudresden.inf.st.ceti.Evacuate.newBuilder().setIdRobot("arm").setIdCollaborationZone("arm").build()).build(); + try { + scene.connection.publish(scene.commandTopic, c.toByteArray(), org.fusesource.mqtt.client.QoS.AT_LEAST_ONCE, false); + } catch (Exception e) { + e.printStackTrace(); + } + } + } + public void Wait.action(World world) { RobotScene container = world.asRobotScene(); System.out.println("performing semantic action for element Wait");