Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
4
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
A
auto-calibration-simulation-for-hangprinter
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Test Cases
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Torbjørn Ludvigsen
auto-calibration-simulation-for-hangprinter
Commits
1138c2f5
Commit
1138c2f5
authored
Feb 18, 2018
by
Torbjørn Ludvigsen
👷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adds sample position data
parent
5c380d13
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
12 deletions
+13
-12
simulation.py
simulation.py
+13
-12
No files found.
simulation.py
View file @
1138c2f5
...
...
@@ -363,8 +363,9 @@ if __name__ == "__main__":
else
:
xyz_of_samp
=
np
.
array
([
# You might want to manually input positions where you made samples here like
# [1.1, 2.2, 3.3],
# ... etc
[
-
13.82573298
,
185.92015633
,
664.66427937
],
[
-
389.81246064
,
-
32.85556323
,
587.55219886
],
[
237.76400537
,
-
126.40678778
,
239.0320148
]
])
samp
=
args
[
'sample_data'
]
...
...
@@ -380,14 +381,14 @@ if __name__ == "__main__":
[
400.53
,
175.53
,
166.10
,
-
656.90
],
[
229.27
,
511.14
,
-
48.41
,
-
554.31
],
[
-
41.69
,
-
62.87
,
306.76
,
-
225.31
],
[
272.97
,
176.65
,
381.13
,
-
717.81
],
[
338.07
,
633.70
,
309.27
,
-
911.22
],
[
504.47
,
658.88
,
48.60
,
-
794.42
],
[
504.47
,
658.88
,
48.60
,
-
794.42
],
[
103.50
,
569.98
,
633.68
,
-
860.25
],
[
229.37
,
7.32
,
411.98
,
-
575.81
],
[
428.73
,
-
413.46
,
250.38
,
-
133.93
],
[
-
506.97
,
343.33
,
327.68
,
-
4.40
]
#
[272.97 , 176.65 , 381.13 , -717.81],
#
[338.07 , 633.70 , 309.27 , -911.22],
#
[504.47 , 658.88 , 48.60 , -794.42],
#
[504.47 , 658.88 , 48.60 , -794.42],
#
[103.50 , 569.98 , 633.68 , -860.25],
#
[229.37 , 7.32 , 411.98 , -575.81],
#
[428.73 , -413.46 , 250.38 , -133.93],
#
[-506.97 , 343.33 , 327.68 , -4.40]
])
u
=
np
.
shape
(
samp
)[
0
]
...
...
@@ -416,6 +417,6 @@ if __name__ == "__main__":
print_anch_err
(
sol_anch
,
anchors
)
print
(
"Method: %s"
%
args
[
'method'
])
print
(
"RUN TIME : {0}"
.
format
(
st2
-
st1
))
print
(
"positions: "
)
print
(
solution
[
params_anch
:])
print
(
"positions: "
)
print
(
solution
[
params_anch
:])
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment