From fcfed078167784d45a2833aa0b24772547863060 Mon Sep 17 00:00:00 2001
From: Paul Beuchat <beuchatp@control.ee.ethz.ch>
Date: Tue, 4 Jun 2019 12:58:55 +0200
Subject: [PATCH] Added launch file for launching only the flying agent GUI

---
 .../src/dfall_pkg/launch/gui_for_agent.launch | 27 +++++++++++++++++++
 1 file changed, 27 insertions(+)
 create mode 100755 dfall_ws/src/dfall_pkg/launch/gui_for_agent.launch

diff --git a/dfall_ws/src/dfall_pkg/launch/gui_for_agent.launch b/dfall_ws/src/dfall_pkg/launch/gui_for_agent.launch
new file mode 100755
index 00000000..a650c794
--- /dev/null
+++ b/dfall_ws/src/dfall_pkg/launch/gui_for_agent.launch
@@ -0,0 +1,27 @@
+<launch>
+
+	<!-- INPUT ARGUMENT OF THE AGENT's ID -->
+	<arg name="agentID" default="$(optenv DFALL_DEFAULT_AGENT_ID)" />
+
+	<!-- Example of how to use the value in agentID -->
+    <!-- <param name="param" value="$(arg agentID)"/> -->
+
+    <!-- Example of how to specify the agentID from command line -->
+    <!-- roslaunch dfall_pkg agentID:=1 -->
+
+    <group ns="$(eval 'agent' + str(agentID).zfill(3))">
+
+		<!-- AGENT GUI (aka. the "student GUI") -->
+		<node
+			pkg    = "dfall_pkg"
+			name   = "FlyingAgentGUI"
+			output = "screen"
+			type   = "FlyingAgentGUI"
+			>
+			<param name="type"     type="str"  value="agent" />
+			<param name="agentID"  value="$(arg agentID)" />
+		</node>
+		
+	</group>
+
+</launch>
\ No newline at end of file
-- 
GitLab