Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
bigprint
twins-planner
Commits
1ed7ff8e
Commit
1ed7ff8e
authored
Feb 15, 2021
by
Jayant Khatkar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
planning the first print minor changes
parent
a9faff9a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
src/calibrations/r2_tforms.yaml
src/calibrations/r2_tforms.yaml
+1
-1
src/gen_cal_test.py
src/gen_cal_test.py
+1
-1
src/greedy.py
src/greedy.py
+2
-2
No files found.
src/calibrations/r2_tforms.yaml
View file @
1ed7ff8e
calibration
:
pos_ET
:
[
0.14835884926437554
,
-0.05101569978608572
,
-0.03124000565994875
]
pos_WR
:
[
-0.010627418386437387
,
0.5839227870056072
,
-0.13
6
93908973951746
]
pos_WR
:
[
-0.010627418386437387
,
0.5839227870056072
,
-0.13
7
93908973951746
]
quat_ET
:
[
-0.2705980500730985
,
-0.6532814824381882
,
0.27059805007309845
,
0.6532814824381883
]
quat_WR
:
[
0.004018429299237062
,
0.006996625665453779
,
0.01340808587420297
,
0.9998775538476972
]
measurements
:
...
...
src/gen_cal_test.py
View file @
1ed7ff8e
...
...
@@ -61,7 +61,7 @@ def plan(points, env, gui=False):
if
__name__
==
"__main__"
:
# 1arm real calibration
env_desc1
=
tu
.
read_env
(
'calibrations/r
1
_tforms.yaml'
)
env_desc1
=
tu
.
read_env
(
'calibrations/r
2
_tforms.yaml'
)
env
=
tu
.
SimEnv
(
env_desc
=
env_desc1
,
gui
=
True
,
home
=
home
)
# Greedily plan first n contours
...
...
src/greedy.py
View file @
1ed7ff8e
...
...
@@ -38,7 +38,7 @@ def greedy(contour_tracker, env_desc, n_contours=None, gui=False):
# update collision box for printed material
comp_print_height
=
tu
.
get_completed_height
(
contour_tracker
,
l_height
)
if
last_comp_print_height
<
comp_print_height
:
if
last_comp_print_height
<
comp_print_height
and
False
:
last_comp_print_height
=
comp_print_height
if
print_block
!=
None
:
env
.
del_block
(
print_block
)
...
...
@@ -109,8 +109,8 @@ def greedy(contour_tracker, env_desc, n_contours=None, gui=False):
# stay at home for another 10s
stayhome
=
tu
.
JTrajectory
([
home
,
home
],[
0
,
10
],
arm
)
if
plan
.
appendTrajectory
([
stayhome
],
arm
)
!=
0
:
raise
Exception
(
"cannot stay at home - this should never happen, choose a better home position"
)
return
plan
#raise Exception("cannot stay at home - this should never happen, choose a better home position")
else
:
# try going to home pos
...
...
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