Skip to content

Commit

Permalink
Adjusted GoPro generation coordinates based on real-life mount, and t…
Browse files Browse the repository at this point in the history
…he equivalent set of coordinates for the Magic Mod-encased GoPro
  • Loading branch information
elimvb committed Sep 9, 2024
1 parent 5d83ba5 commit 753d192
Showing 1 changed file with 61 additions and 5 deletions.
66 changes: 61 additions & 5 deletions unity/Assets/Scripts/DebugInputField.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2680,7 +2680,7 @@ IEnumerator executeBatch(JArray jActions) {
case "gopro1": {
Dictionary<string, object> action = new Dictionary<string, object>() {
["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,
};
Expand All @@ -2693,8 +2693,8 @@ IEnumerator executeBatch(JArray jActions) {
case "gopro2": {
Dictionary<string, object> action = new Dictionary<string, object>() {
["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
};
Expand All @@ -2707,7 +2707,7 @@ IEnumerator executeBatch(JArray jActions) {
case "gopro3": {
Dictionary<string, object> action = new Dictionary<string, object>() {
["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
Expand All @@ -2721,7 +2721,7 @@ IEnumerator executeBatch(JArray jActions) {
case "gopro4": {
Dictionary<string, object> action = new Dictionary<string, object>() {
["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
Expand All @@ -2731,6 +2731,62 @@ IEnumerator executeBatch(JArray jActions) {
.ProcessControlCommand(new DynamicServerAction(action), AManager);
break;
}

case "gopromm1": {
Dictionary<string, object> action = new Dictionary<string, object>() {
["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<string, object> action = new Dictionary<string, object>() {
["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<string, object> action = new Dictionary<string, object>() {
["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<string, object> action = new Dictionary<string, object>() {
["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<string, object> action = new Dictionary<string, object>() {
Expand Down

0 comments on commit 753d192

Please sign in to comment.