-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: adding transforms to pinpoint-api
- Loading branch information
Showing
7 changed files
with
75 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"name":"Default","prefix":"","scaling":{"x":1.0,"y":1.0,"z":1.0},"rotation":{"x":0.0,"y":0.0,"z":0.0}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"name":"Dorr2008","prefix":"d08","scaling":{"x":-1.087,"y":1.0,"z":-0.952},"rotation":{"x":0.0,"y":-7.5,"z":0.0}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"name":"IBL-Dorr2008","prefix":"id08","scaling":{"x":-1.087,"y":1.0,"z":-0.952},"rotation":{"x":0.0,"y":0.0,"z":0.0}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"name":"Qiu2018","prefix":"q18","scaling":{"x":-1.031,"y":0.952,"z":-0.885},"rotation":{"x":0.0,"y":-7.5,"z":0.0}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
from vbl_aquarium.models.pinpoint import AffineTransformModel | ||
from vbl_aquarium.models.unity import Vector3 | ||
|
||
qiu2018 = AffineTransformModel( | ||
name = "Qiu2018", | ||
prefix = "q18", | ||
scaling = Vector3( | ||
x = -1.031, | ||
y = 0.952, | ||
z = -0.885 | ||
), | ||
rotation = Vector3( | ||
x = 0, | ||
y = -7.5, | ||
z = 0 | ||
) | ||
) | ||
|
||
dorr2018 = AffineTransformModel( | ||
name = "Dorr2008", | ||
prefix = "d08", | ||
scaling = Vector3( | ||
x = -1.087, | ||
y = 1, | ||
z = -0.952 | ||
), | ||
rotation = Vector3( | ||
x = 0, | ||
y = -7.5, | ||
z = 0 | ||
) | ||
) | ||
|
||
dorr2018_ibl = AffineTransformModel( | ||
name = "IBL-Dorr2008", | ||
prefix = "id08", | ||
scaling = Vector3( | ||
x = -1.087, | ||
y = 1, | ||
z = -0.952 | ||
), | ||
rotation = Vector3( | ||
x = 0, | ||
y = 0, | ||
z = 0 | ||
) | ||
) | ||
|
||
default = AffineTransformModel( | ||
name = "Default", | ||
prefix = "", | ||
scaling = Vector3( | ||
x = 1, | ||
y = 1, | ||
z = 1 | ||
), | ||
rotation = Vector3( | ||
x = 0, | ||
y = 0, | ||
z = 0 | ||
) | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
from pinpoint_api.models.transforms import qiu2018, dorr2018, dorr2018_ibl, default | ||
|
||
transforms = [qiu2018, dorr2018, dorr2018_ibl, default] | ||
|
||
for transform in transforms: | ||
with open(f'../models/{transform.name}.json', 'w') as file: | ||
file.write(transform.model_dump_json()) |