Skip to content

Commit

Permalink
Fix python path errors on startup in newly added trsrn sim configs
Browse files Browse the repository at this point in the history
Looks like the build process messes with the python vismach simulation files in the config folders. I'm not sure why that happens but moving the files relevant to the vismach simulation models into a new subfolder inside the config folder seems to fix it.
  • Loading branch information
Sigma1912 committed Sep 24, 2024
1 parent 033f83d commit 2e85558
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# This is a modified version of 'vismach.py' to visualize Tilted Work Plane (TWP)
# Author: David mueller
# email: mueller_david@hotmail.com

# Copyright 2007 John Kasunich and Jeff Epler
#
# This program is free software; you can redistribute it and/or modify
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/usr/bin/env python3

# This is a machine simulation for the 'xyzacb-trsrn' simulation config in linuxcnc
# Author: David mueller
# email: mueller_david@hotmail.com

import hal
import math
import sys
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/usr/bin/env python3

# This is a machine simulation for the 'xyzbca-trsrn' simulation config in linuxcnc
# Author: David mueller
# email: mueller_david@hotmail.com

from twp_vismach import *
import hal
import math
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ HALCMD = net twp-xy <= twp-helper-comp.twp-xy
HALCMD = net twp-xz <= twp-helper-comp.twp-xz

# load the optional vismach-gui and its hal connections
HALCMD = loadusr -W ./xyzacb-trsrn-gui.py
HALCMD = loadusr -W ../vismach/xyzacb-trsrn-gui.py
# vismach machine signals
HALCMD = net :axis-x joint.0.pos-fb xyzacb-trsrn-gui.axis_x
HALCMD = net :axis-y joint.1.pos-fb xyzacb-trsrn-gui.axis_y
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ HALCMD = net twp-xy <= twp-helper-comp.twp-xy
HALCMD = net twp-xz <= twp-helper-comp.twp-xz

# load the optional vismach-gui and its hal connections
HALCMD = loadusr -W ./xyzbca-trsrn-gui.py
HALCMD = loadusr -W ../vismach/xyzbca-trsrn-gui.py

HALCMD = net :axis-x joint.0.pos-fb xyzbca-trsrn-gui.axis_x
HALCMD = net :axis-y joint.1.pos-fb xyzbca-trsrn-gui.axis_y
Expand Down

0 comments on commit 2e85558

Please sign in to comment.