how to read and understand 5axesgui.py ??
- tiffany
- Offline
- Senior Member
Less
More
- Posts: 53
- Thank you received: 0
09 Dec 2013 21:39 #41435
by tiffany
how to read and understand 5axesgui.py ?? was created 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!
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.
- andypugh
- Offline
- Moderator
Less
More
- Posts: 23310
- Thank you received: 4858
10 Dec 2013 01:45 #41439
by andypugh
It is, allegedly, a fun language to program in.
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.
Replied by andypugh on topic how to read and understand 5axesgui.py ??
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.anybody is familiar with .py language?
It is, allegedly, a fun language to program in.
These seem to be defined in Vismach.especially about the funtions such as color() capture() collection()
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.
- ArcEye
- Offline
- Junior Member
Less
More
- Posts: 25
- Thank you received: 761
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.
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.
- tiffany
- Offline
- Senior Member
Less
More
- Posts: 53
- Thank you received: 0
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?
I could write my own .py for my machine? or is it necessary?
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
Less
More
- Posts: 23310
- Thank you received: 4858
10 Dec 2013 18:47 #41467
by andypugh
It would possibly be rather useful for checking G-code off-line, though.
Replied by andypugh on topic how to read and understand 5axesgui.py ??
Yes, that should be possible.if I could understand .py which can be used to show a simulation picture/GUI ?
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.I could write my own .py for my machine? or is it necessary?
It would possibly be rather useful for checking G-code off-line, though.
Please Log in or Create an account to join the conversation.
- tiffany
- Offline
- Senior Member
Less
More
- Posts: 53
- Thank you received: 0
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.
- Linux_rocks
- Offline
- New Member
Less
More
- Posts: 3
- Thank you received: 2
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
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