Skip to content
Snippets Groups Projects
Commit f60c40c6 authored by Johannes Mey's avatar Johannes Mey
Browse files

move robot to default pose after finishing

parent d927e415
No related branches found
No related tags found
No related merge requests found
...@@ -59,6 +59,20 @@ aspect SemanticActions { ...@@ -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) { public void Wait.action(World world) {
RobotScene container = world.asRobotScene(); RobotScene container = world.asRobotScene();
System.out.println("performing semantic action for element Wait"); System.out.println("performing semantic action for element Wait");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment