From f4cd5daf954a4f52bf5ea141a1d8eedaa01b48cc Mon Sep 17 00:00:00 2001 From: Winson Han Date: Mon, 12 Aug 2024 16:47:52 -0700 Subject: [PATCH] Update DebugInputField.cs --- unity/Assets/Scripts/DebugInputField.cs | 127 ------------------------ 1 file changed, 127 deletions(-) diff --git a/unity/Assets/Scripts/DebugInputField.cs b/unity/Assets/Scripts/DebugInputField.cs index d2c139ef00..b24b716259 100644 --- a/unity/Assets/Scripts/DebugInputField.cs +++ b/unity/Assets/Scripts/DebugInputField.cs @@ -2763,39 +2763,6 @@ IEnumerator executeBatch(JArray jActions) { break; } - case "initsynth": - { - Dictionary action = new Dictionary(); - - action["renderNormalsImage"] = true; - action["renderDepthImage"] = true; - action["renderSemanticSegmentation"] = true; - action["renderInstanceSegmentation"] = true; - action["renderFlowImage"] = true; - - // action.ssao = "default"; - - action["action"] = "Initialize"; - ActionDispatcher.Dispatch(AManager, new DynamicServerAction(action)); - break; - } - - case "atpc": - { - Dictionary action = new Dictionary() - { - ["action"] = "AddThirdPartyCamera", - ["position"] = new Vector3(-0.67f, 1.315f, 0.46f), - ["rotation"] = new Vector3(0, 180, 0), - ["parent"] = "world", - ["agentPositionRelativeCoordinates"] = false - }; - - CurrentActiveController() - .ProcessControlCommand(new DynamicServerAction(action), AManager); - break; - } - case "gvo": { Dictionary action = new Dictionary() @@ -2808,100 +2775,6 @@ IEnumerator executeBatch(JArray jActions) { break; } - case "utpc": - { - Dictionary action = new Dictionary() - { - ["action"] = "UpdateThirdPartyCamera", - ["position"] = new Vector3(2, 2, 2), - ["rotation"] = new Vector3(15, 25, 35), - ["thirdPartyCameraId"] = 1, - ["parent"] = "agent", - ["agentPositionRelativeCoordinates"] = true - }; - - CurrentActiveController() - .ProcessControlCommand(new DynamicServerAction(action), AManager); - break; - } - - case "umc": - { - Dictionary action = new Dictionary() - { - ["action"] = "UpdateMainCamera", - ["position"] = new Vector3(0.5f, 0.5f, 0.5f), - ["rotation"] = new Vector3(15, 25, 35), - ["fieldOfView"] = 120f, - //["agentPositionRelativeCoordinates"] = false - }; - - CurrentActiveController() - .ProcessControlCommand(new DynamicServerAction(action), AManager); - break; - } - - case "debugmaincamera": - { - CurrentActiveController().generateMetadataWrapper(); - break; - } - case "to": - { - ServerAction action = new ServerAction(); - action.action = "TeleportObject"; - action.objectId = splitcommand[1]; - action.x = float.Parse(splitcommand[2]); - action.y = float.Parse(splitcommand[3]); - action.z = float.Parse(splitcommand[4]); - CurrentActiveController().ProcessControlCommand(action); - break; - } - case "daoot": - { - ServerAction action = new ServerAction(); - action.action = "DisableAllObjectsOfType"; - action.objectId = splitcommand[1]; - CurrentActiveController().ProcessControlCommand(action); - break; - } - case "ctlq": - { - ServerAction action = new ServerAction(); - action.action = "ChangeQuality"; - action.quality = "Very Low"; - CurrentActiveController().ProcessControlCommand(action); - break; - } - case "roco": - { - Dictionary action = new Dictionary(); - action["action"] = "RandomlyOpenCloseObjects"; - action["randomSeed"] = (new System.Random()).Next(1, 1000000); - CurrentActiveController().ProcessControlCommand(action); - break; - } - case "crouch": - { - ExecuteAction("Crouch"); - break; - } - case "stand": - { - ExecuteAction("Stand"); - break; - } - - case "remove": - { - Dictionary action = new Dictionary(); - action["action"] = "RemoveFromScene"; - - if (splitcommand.Length == 2) - { - action["objectId"] = splitcommand[1]; - } - case "putxy": { Dictionary action = new Dictionary(); action["action"] = "PutObject";