Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bigprint
twins-controller
Commits
a4f55661
Commit
a4f55661
authored
Feb 15, 2021
by
Jayant Khatkar
Browse files
first print of 2x octopuses complete (implement
#19
)
parent
52e63588
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
src/KeyboardController.py
View file @
a4f55661
...
@@ -662,14 +662,14 @@ class KeyboardController(Controller):
...
@@ -662,14 +662,14 @@ class KeyboardController(Controller):
if
__name__
==
"__main__"
:
if
__name__
==
"__main__"
:
con
=
KeyboardController
(
disableExtruder
=
True
)
#
con = KeyboardController(disableExtruder=True)
#con = KeyboardController()
#con = KeyboardController()
#
con1 = KeyboardController(robot=1)
con1
=
KeyboardController
(
robot
=
1
)
#
con2 = KeyboardController(robot=
1
, disableExtruder=True)
con2
=
KeyboardController
(
robot
=
2
,
disableExtruder
=
True
)
print
(
'Collecting configrations...'
)
print
(
'Collecting configrations...'
)
configuations
=
con
.
prompt_configurations
()
#
configuations = con.prompt_configurations()
#
configuations = con1.prompt_configurations()
configuations
=
con1
.
prompt_configurations
()
#
configuations = con2.prompt_configurations()
configuations
=
con2
.
prompt_configurations
()
print
(
'Your configurations:'
)
print
(
'Your configurations:'
)
print
(
configuations
)
print
(
configuations
)
src/main1.py
View file @
a4f55661
...
@@ -83,7 +83,7 @@ def execute_plan(plan,
...
@@ -83,7 +83,7 @@ def execute_plan(plan,
if
__name__
==
'__main__'
:
if
__name__
==
'__main__'
:
plan1
=
load_plan
(
'origin'
)
plan1
=
load_plan
(
'origin'
)
calibration_test
=
load_plan
(
'r
1
_cal_test'
)
calibration_test
=
load_plan
(
'r
2
_cal_test'
)
plan2
,
flexirex_contours
=
load_plan
(
'flexirex'
,
contours
=
True
)
plan2
,
flexirex_contours
=
load_plan
(
'flexirex'
,
contours
=
True
)
# Printing
# Printing
...
...
src/main2.py
View file @
a4f55661
...
@@ -116,9 +116,9 @@ def execute_plan(plan,
...
@@ -116,9 +116,9 @@ def execute_plan(plan,
if
__name__
==
'__main__'
:
if
__name__
==
'__main__'
:
plan2arms
=
load_plan
(
'octox2'
)
plan2arms
,
octo_contours
=
load_plan
(
'octox2'
,
contours
=
True
)
r1_con
=
Controller
(
disable_extruder
=
True
,
robot
=
1
)
r1_con
=
Controller
(
robot
=
1
)
r2_con
=
Controller
(
disable_extruder
=
True
,
robot
=
2
)
r2_con
=
Controller
(
robot
=
2
)
execute_plan
(
plan2arms
,
r1_con
,
r2_con
,
move_speed
=
0.
5
)
execute_plan
(
plan2arms
,
r1_con
,
r2_con
,
move_speed
=
0.
25
,
contours
=
octo_contours
)
src/plans/octox2.gcode
0 → 100644
View file @
a4f55661
This diff is collapsed.
Click to expand it.
src/plans/octox2.plan
View file @
a4f55661
No preview for this file type
src/plans/r2_cal_test.plan
View file @
a4f55661
No preview for this file type
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