how to read and understand 5axesgui.py ??

More
09 Dec 2013 21:39 #41435 by tiffany
I tried to read and understand 5axesgui.py file.
but , I feel more and more confused,
anybody is familiar with .py language?

especially about the funtions such as color() capture() collection()

Thank you!

Please Log in or Create an account to join the conversation.

More
10 Dec 2013 01:45 #41439 by andypugh
Replied by andypugh on topic how to read and understand 5axesgui.py ??

anybody is familiar with .py language?

I am trying to learn it. Others here are already very proficient. The language is Python, and there are many online resources to learn it.
It is, allegedly, a fun language to program in.

especially about the funtions such as color() capture() collection()

These seem to be defined in Vismach.

5axisgui.py uses Python syntax, but nearly every function/operation/property/method used in the file is defined in vismach.py, and is imported near the beginning of 5axisgui.py.
The only dosumentation for vismach is this Wiki page wiki.linuxcnc.org/cgi-bin/wiki.pl?Vismach Which basically says that there is no documentation for Vismach.
There are some comments in the Vismach.py code, that give some hints as to what things do.

Please Log in or Create an account to join the conversation.

More
10 Dec 2013 17:00 #41464 by ArcEye
Replied by ArcEye on topic how to read and understand 5axesgui.py ??
Also search the forum

A couple of people have go vismach working and one at least posted the GUI screen with it representing a robot arm workspace.

None of them felt inclined to write up instructions though I fear.

Please Log in or Create an account to join the conversation.

More
10 Dec 2013 17:10 #41465 by tiffany
Replied by tiffany on topic how to read and understand 5axesgui.py ??
if I could understand .py which can be used to show a simulation picture/GUI ?

I could write my own .py for my machine? or is it necessary?

Please Log in or Create an account to join the conversation.

More
10 Dec 2013 18:47 #41467 by andypugh
Replied by andypugh on topic how to read and understand 5axesgui.py ??

if I could understand .py which can be used to show a simulation picture/GUI ?

Yes, that should be possible.

I could write my own .py for my machine? or is it necessary?

It is completely unnecessary. It is useful for trying out a new machine design, checking kinematics, that sort of thing, but if you have the actual machine in front of you, then the Vismach GUI doesn't help very much.

It would possibly be rather useful for checking G-code off-line, though.

Please Log in or Create an account to join the conversation.

More
11 Dec 2013 12:04 #41495 by tiffany
Replied by tiffany on topic how to read and understand 5axesgui.py ??
OK~~~I see. I think I shouldn't spend too much time on it ~~~I have a actual machine , I need focus on other aspects~~~

Please Log in or Create an account to join the conversation.

More
25 Dec 2013 00:55 #41985 by Linux_rocks
Replied by Linux_rocks on topic how to read and understand 5axesgui.py ??
You are lucky - I added some documentation for vismach.py, the library used by 5axisgui. It isn't to complexe (otherwise I would't have understood it ;) )

wiki.linuxcnc.org/cgi-bin/wiki.pl?Vismach

The important things of the simulation (geometry, joints, connections to Axis, colours) are defined in 5axisgui. You might have a try on your own - now the Wiki page consists enough info of the basic conditions to get a simulation running. I might improve the docu in future - at the moment my knowledge is quite limited.

Merry Christmas
Felix
The following user(s) said Thank You: andypugh, tiffany

Please Log in or Create an account to join the conversation.

Time to create page: 0.064 seconds
Powered by Kunena Forum