I have never found anything.
I know other people have figured it out from looking at the examples.
If you do figure it out that way, writing some docs would be great
Just a simple question to start playing..
-where do I have to put my model.py file?
copying from examples I put into my .hal file this line:
# load the vismach model
loadusr -W tvm
but terminal gives me this error:
tetrapod.hal:24: execv(tvm): No such file or directory
tetrapod.hal:24: tvm exited without becoming ready
Shutting down and cleaning up EMC2...
No quite, this recent thread covers the same errors, does it assist you?
i'm asking here, because it's the only thread speaking about vismach!
I'm not sure if honey used fully qualified path/filenames or managed to sort out where the files needed to go, but he got his userspace module tested and working.
If you follow the same steps and it does not fall into place for you, try posting on that thread and asking exactly what he did.
- The .py files have the header # ! /usr/bin/python
- The file must be executable
- place the component in emc2-dev/bin after removing the .py extension.
- Run emc2 through:
- If you have that error again, there is something wrong in you file .py. I advice you to test the file .py by terminal with
Ho seguito i consigli che mi ha dato ArcEye:
- metti come intestazione # ! /usr/bin/python
- rendi il file eseguibile chmod +x o altre procedure
- metti il fil in emc2-dev/bin togliendo l'estensione.
- fai partire emc2 attraverso terminale con questi comandi
mi hanno spiegato che per i file da fare eseguire da emc2-dev bisogna fare cosi....probabilmente perchè cosi riesce a leggere questa nuovo file
Se continua a darti ancora quell'errore evidentemente hai sbagliato qualcosa nella scrittura del file. Visto che non c'è nessuna documentazione su questo argomento io sono andata molto ad intuito spulciando i file già disponibili su emc2. Quindi ho modificato piano piano per vedere se scrivevo bene le varie linee di codice. Per fare questo mi sono aiutata testando il file python attraverso
/directory/python (in cui ho messo anche il file vismah.py)
Spero di aver ricambiato l'aiuto che mi hai dato!
I'm looking at all the vismach example and they are one different from each other!
My situation is much different from the other vismach setups, so I have to redraw all from the beginning, but there's something i can't understand!
(these are my thoughts, correct me if you know I'm wrong, please)
Vismach works with three different coord systems:
-tooltip (needed for backtracing)
-work (needed if you have a moving table)
-world (all the machine)
you 'save' this coord systems using the Capture() function.
I think this give me this error:
Exception in Tkinter callback
Traceback (most recent call last):
File "/usr/lib/python2.6/lib-tk/Tkinter.py", line 1413, in __call__
File "/usr/lib/python2.6/lib-tk/Tkinter.py", line 498, in callit
File "/home/dab/emc2-dev/lib/python/vismach.py", line 1029, in update
File "/home/dab/emc2-dev/lib/python/rs274/OpenGLTk.py", line 348, in tkRedraw
File "/home/dab/emc2-dev/lib/python/vismach.py", line 809, in redraw
tx, ty, tz = self.tool2view.t[12:15]
ValueError: need more than 0 values to unpack
if I understood [12:15] are referred to a matrix 4*4 built by the three coord systems ((x,y,z,scale)each), but i don't know why my Capture()s don't work like in the other examples!
this is my file now:
File Attachment:File Name: tvm.gz
File Size:1 KB
i gived exec permission and copied it to /emc2-dev/bin and to /emc2-dev/src/hal/user_comps/vismach/ and i'm executing emc-environment as usual..
it's the very minimal to make vismach start to draw. I've commented some point so new adventurers should find simpler to understand. Of course that alone isn't enough to understand vismach, you need to study all vismach examples.
I invite others who will do different vismach proj to post here or directly into the wiki page.
File Attachment:File Name: vismach_di...base.zip
File Size:1 KB