-
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.
Merge pull request #4 from ACornuIGN/corpoint
Add reading of the connecting points
- Loading branch information
Showing
15 changed files
with
256 additions
and
104 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
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
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
Empty file.
File renamed without changes.
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,20 @@ | ||
""" | ||
Script to read connecting point mes | ||
""" | ||
from src.datastruct.worksite import Worksite | ||
|
||
|
||
def read_copoints(files: list, work: Worksite): | ||
""" | ||
Read all files of connecting points | ||
Agrs: | ||
files (list): path list of files connecting points | ||
work (Worksite): Worksite which needs camera data | ||
""" | ||
for file in files: | ||
with open(file, 'r', encoding="utf-8") as file_copoints: | ||
for copoint in file_copoints.readlines(): | ||
if copoint != '\n': | ||
name_point, name_shot, x, y = copoint.split() | ||
work.add_copoint(name_point, name_shot, float(x), float(y)) |
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,8 @@ | ||
NOM X Y Z O P K CAMERA | ||
23FD1305x00001_00003 798744.352 6262815.867 1778.451 0.157339710405 0.010129647126 -179.310680057325 UCE-M3-f120-s06 | ||
23FD1305x00001_00006 798737.149 6263570.633 1782.000 0.187951173579 0.039073325314 -179.509133420814 UCE-M3-f120-s06 | ||
23FD1305x00001_00004 798742.042 6263068.069 1779.315 0.185389354595 -0.088005488480 -179.006412492050 UCE-M3-f120-s06 | ||
23FD1305x00001_00005 798739.554 6263319.299 1780.646 0.153027158586 -0.024264408666 -178.940489336420 UCE-M3-f120-s06 | ||
23FD1305x00002_00051 799392.857 6263556.121 1786.084 -0.162274655063 -0.006532875903 0.008930227247 UCE-M3-f120-s06 | ||
23FD1305x00002_00052 799390.337 6263304.421 1785.387 -0.189190287804 -0.021924060777 -0.097707634605 UCE-M3-f120-s06 | ||
23FD1305x00002_00053 799387.667 6263051.508 1784.760 -0.146630494647 -0.031919390293 -0.209336104979 UCE-M3-f120-s06 |
This file was deleted.
Oops, something went wrong.
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,16 @@ | ||
|
||
MES_0 23FD1305x00001_00003 4763.57 16960.5 | ||
MES_0 23FD1305x00001_00004 4813.98 12509.25 | ||
MES_1 23FD1305x00001_00003 6818.89 16625.93 | ||
MES_1 23FD1305x00001_00004 6869.3 12187.65 | ||
MES_1 23FD1305x00001_00005 6868.28 7823.23 | ||
MES_1 23FD1305x00001_00006 6823.71 3492.24 | ||
MES_1 23FD1305x00002_00051 8217.11 12998.83 | ||
MES_1 23FD1305x00002_00052 8249.45 8627.46 | ||
MES_1 23FD1305x00002_00053 8270.79 4265.72 | ||
MES_2 23FD1305x00001_00003 6165.08 16873.72 | ||
MES_2 23FD1305x00001_00005 6213.53 8058.22 | ||
MES_2 23FD1305x00001_00006 6171.35 3729.29 | ||
MES_2 23FD1305x00002_00051 8854.52 12756.99 | ||
MES_2 23FD1305x00002_00052 8887.0 8380.0 | ||
MES_2 23FD1305x00002_00053 8908.58 4012.49 |
Oops, something went wrong.