From 50a446752a67c2b80b559f6ccca4b9f36bb839f5 Mon Sep 17 00:00:00 2001 From: "Addisu Z. Taddese" Date: Wed, 29 Apr 2020 12:24:59 -0500 Subject: [PATCH] Update cave_circuit.ign to call the corect spawner method Signed-off-by: Addisu Z. Taddese --- subt_ign/launch/cave_circuit.ign | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/subt_ign/launch/cave_circuit.ign b/subt_ign/launch/cave_circuit.ign index 7f8d845e..04fdada6 100644 --- a/subt_ign/launch/cave_circuit.ign +++ b/subt_ign/launch/cave_circuit.ign @@ -1083,7 +1083,7 @@ spawnerScript = "#{installDir}/launch/spawner.rb" begin - require spawnerScript + load spawnerScript rescue LoadError raise "Unknown robot configuration #{config}. #{spawnerScript} could not be found." else @@ -1102,11 +1102,11 @@ robotType = config[1] robotConfigN = config[-1] if robotType == "3" or robotType == "4" - UAVStr = "UAV " + mUAVStr = "UAV " else - UAVStr = "" + mUAVStr = "" end - robotName = "X#{robotType} #{UAVStr}Config #{robotConfigN}" + robotName = "X#{robotType} #{mUAVStr}Config #{robotConfigN}" else robotName = config end