From 753d192809b288517e8ce2f249760bf15bca9ce1 Mon Sep 17 00:00:00 2001 From: Eli VanderBilt Date: Mon, 9 Sep 2024 14:31:47 -0700 Subject: [PATCH] Adjusted GoPro generation coordinates based on real-life mount, and the equivalent set of coordinates for the Magic Mod-encased GoPro --- unity/Assets/Scripts/DebugInputField.cs | 66 +++++++++++++++++++++++-- 1 file changed, 61 insertions(+), 5 deletions(-) diff --git a/unity/Assets/Scripts/DebugInputField.cs b/unity/Assets/Scripts/DebugInputField.cs index 9382230d3b..f82f7f48fc 100644 --- a/unity/Assets/Scripts/DebugInputField.cs +++ b/unity/Assets/Scripts/DebugInputField.cs @@ -2680,7 +2680,7 @@ IEnumerator executeBatch(JArray jActions) { case "gopro1": { Dictionary action = new Dictionary() { ["action"] = "UpdateMainCamera", - ["position"] = new Vector3(-0.1299001f, 0.5560812f, 0.02734984f), + ["position"] = new Vector3(-0.1211464f, 0.5569605f, 0.03721716f), ["rotation"] = new Vector3(20.0f, 0.0f, 0.0f), ["agentId"] = 0, }; @@ -2693,8 +2693,8 @@ IEnumerator executeBatch(JArray jActions) { case "gopro2": { Dictionary action = new Dictionary() { ["action"] = "AddThirdPartyCamera", - ["position"] = new Vector3(0.04f, 0.5560812f, 0.0f), - ["rotation"] = new Vector3(30.0f, 120.0f, 0.0f), + ["position"] = new Vector3(0.02888859f, 0.5569366f, 0.00249755f), + ["rotation"] = new Vector3(20.0f, 120.0f, 0.0f), ["parent"] = "agent", ["agentPositionRelativeCoordinates"] = true }; @@ -2707,7 +2707,7 @@ IEnumerator executeBatch(JArray jActions) { case "gopro3": { Dictionary action = new Dictionary() { ["action"] = "AddThirdPartyCamera", - ["position"] = new Vector3(-0.1675288f, 0.5560812f, -0.03782497f), + ["position"] = new Vector3(-0.1492754f, 0.5569338f, -0.1046665f), ["rotation"] = new Vector3(20.0f, -120.0f, 0.0f), ["parent"] = "agent", ["agentPositionRelativeCoordinates"] = true @@ -2721,7 +2721,7 @@ IEnumerator executeBatch(JArray jActions) { case "gopro4": { Dictionary action = new Dictionary() { ["action"] = "AddThirdPartyCamera", - ["position"] = new Vector3(-0.1376f, 0.4340732f, 0.006196275f), + ["position"] = new Vector3(-0.08022631f, 0.40808f, -0.00178992f), ["rotation"] = new Vector3(90.0f, 0.0f, 0.0f), ["parent"] = "agent", ["agentPositionRelativeCoordinates"] = true @@ -2731,6 +2731,62 @@ IEnumerator executeBatch(JArray jActions) { .ProcessControlCommand(new DynamicServerAction(action), AManager); break; } + + case "gopromm1": { + Dictionary action = new Dictionary() { + ["action"] = "UpdateMainCamera", + ["position"] = new Vector3(-0.1211464f, 0.561659f, 0.03892733f), + ["rotation"] = new Vector3(20.0f, 0.0f, 0.0f), + ["agentId"] = 0, + }; + + CurrentActiveController() + .ProcessControlCommand(new DynamicServerAction(action), AManager); + break; + } + + case "gopromm2": { + Dictionary action = new Dictionary() { + ["action"] = "AddThirdPartyCamera", + ["position"] = new Vector3(0.03036952f, 0.5616351f, 0.001642581f), + ["rotation"] = new Vector3(20.0f, 120.0f, 0.0f), + ["parent"] = "agent", + ["agentPositionRelativeCoordinates"] = true + }; + + CurrentActiveController() + .ProcessControlCommand(new DynamicServerAction(action), AManager); + break; + } + + case "gopromm3": { + Dictionary action = new Dictionary() { + ["action"] = "AddThirdPartyCamera", + ["position"] = new Vector3(-0.1507564f, 0.5616323f, -0.1055215f), + ["rotation"] = new Vector3(20.0f, -120.0f, 0.0f), + ["parent"] = "agent", + ["agentPositionRelativeCoordinates"] = true + }; + + CurrentActiveController() + .ProcessControlCommand(new DynamicServerAction(action), AManager); + break; + } + + case "gopromm4": { + Dictionary action = new Dictionary() { + ["action"] = "AddThirdPartyCamera", + ["position"] = new Vector3(-0.08022631f, 0.40808f, 0.003210075f), + ["rotation"] = new Vector3(90.0f, 0.0f, 0.0f), + ["parent"] = "agent", + ["agentPositionRelativeCoordinates"] = true + }; + + CurrentActiveController() + .ProcessControlCommand(new DynamicServerAction(action), AManager); + break; + } + case "utpc": { Dictionary action = new Dictionary() {