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
cc377ce7
Commit
cc377ce7
authored
Dec 21, 2020
by
Jayant Khatkar
Browse files
reorganise code, read plan in main (
#11
)
parent
8e73e6f3
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/main.py
0 → 100644
View file @
cc377ce7
import
gcode2contour
as
gc
import
numpy
as
np
import
pickle
from
utils
import
load_plan
if
__name__
==
'__main__'
:
plan
=
load_plan
(
'plans/1.plan'
)
src/utils/__init__.py
View file @
cc377ce7
from
.planning_tools
import
JTrajectory
from
.plan
import
load_plan
src/plan.py
→
src/
utils/
plan.py
View file @
cc377ce7
import
gcode2contour
as
gc
import
numpy
as
np
import
pickle
from
utils
import
JTrajectory
from
.
import
JTrajectory
def
_emptyTraj
(
joints
,
arm
):
...
...
@@ -78,7 +78,3 @@ def load_plan(filename):
plan
.
trajs
=
trajs
plan
.
cumul_time
=
ctime
return
plan
if
__name__
==
'__main__'
:
plan
=
load_plan
(
'plans/1.plan'
)
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