Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bigprint
twins-controller
Commits
e9f3efd5
Commit
e9f3efd5
authored
Jan 06, 2021
by
Jayant Khatkar
Browse files
run calibrated plan on real hardware without extrusion (
#12
)
parent
2a91e4aa
Changes
4
Hide whitespace changes
Inline
Side-by-side
src/KeyboardController.py
View file @
e9f3efd5
...
...
@@ -592,7 +592,7 @@ class KeyboardController(Controller):
if
__name__
==
"__main__"
:
con
=
KeyboardController
()
con
=
KeyboardController
(
disableExtruder
=
True
)
print
(
'Collecting configrations...'
)
configuations
=
con
.
prompt_configurations
()
...
...
src/main.py
View file @
e9f3efd5
import
numpy
as
np
import
pickle
import
time
import
copy
import
sys
# ROS Libraries
...
...
@@ -34,6 +35,7 @@ def execute_plan(plan, controller):
# execute trajectories in plan
for
t
in
plan
.
trajs
[
0
]:
print
(
t
.
time
)
jt
=
JTraj2ROS
(
t
)
try
:
controller
.
exec_traj
(
jt
)
...
...
@@ -44,6 +46,12 @@ def execute_plan(plan, controller):
if
__name__
==
'__main__'
:
plan
=
load_plan
(
'plans/
3
.plan'
)
con
=
Controller
(
simulation
=
True
)
plan
=
load_plan
(
'plans/
2
.plan'
)
con
=
Controller
(
disable_extruder
=
True
)
execute_plan
(
plan
,
con
)
# go to origin and stay (to check calibration)
#plan1 = load_plan('plans/1.plan')
#plan2 = copy.deepcopy(plan1)
#plan2.trajs[0].pop()
#execute_plan(plan2, con)
src/plans/1.plan
View file @
e9f3efd5
No preview for this file type
src/plans/2.plan
View file @
e9f3efd5
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