Running milltask (or gcode interp) without python?

More
4 years 9 months ago #230865 by mungkie
I  maybe should really have a more indepth look but thought better to ask first as it could save me lots of time?

The main question:
Is it possible to run gcode without python installed.

Basically I want run gcode, but I have no python, loadusr milltask fails, is there a way around this?

Background:
I have messed around with some low level stuff for drivers but never really had a full and proper understanding of how everything in linuxcnc fits together as I did not have the need, so here I try to explain my limited understanding...........

My understanding maybe wrong but this is what I think I know.

milltask interprets gcode and sends it wherever neccesary (traj planner?), I want to load/run a gcode I send EMC_TASK_PLAN_OPEN this goes through milltask?

src/emc/task and src/emc/rs274ngc have lots of python hooks. I tried configure --without-boost-python I think this does nothing???

I have not messed with linuxcnc since machinkit fork, I sort of remember iotaskintf.cc -> taskclass.cc???

machinekit and linuxcnc have diverged and both I have no idea pro/con anyone have overview of diffs (seems both add lots more dependencys on weird libs python/zmq/modbus/etc..)????

I have noidea but would it not be better to have HAL module for python into NML not pollute task planner, as this makes linuxcnc more modular and removed dependency on python to run gcode, also make other language bindings easier?

Is there going to be anything as nextgen gcode(taking account of tool/effector geometry and linkage(I could go into further guesses but this waste your time))

I try to keep this short to start, further ideas discussion, I will ellaborate if possible and neccesary.

I maybe look at the source this evening if no easy answer.

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

More
4 years 9 months ago #230873 by Todd Zuercher
Maybe this might be a better question to ask on the developers mailing list?

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

More
4 years 9 months ago #230882 by cmorley
You asked quite a few vaguish questions so I'll try to answer what I think you want.
Can linuxcnc run gcode without python dependency. I would say no.
You dont have to use python to interpret gcode but I've python hooks are baked in to allow remap of m and g codes.

Why do you wish to exclude python?

Python code for HAL is a different instance of python then the python used for the interpreter. The interpreter starts it's very own instance of python.

As for what would be best practice ... there are many things that are suboptimal but we only have so many devs that understand enough to make deep changes. Most just tack on what works and is needed. But ultimately it does work pretty well for well beyond what it was intended for.

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

More
4 years 9 months ago #230915 by mungkie
Yeah, seems difficult I don't know enough about python c++ to put some sort of wrapper on it and recompiling the rs274 and task dirs without python seems to break something.

It seems to load the milltasknopy and I can jog axes and readback positions but there is no position update when I load a gcode file and run it, but also no errors.

I have wasted the whole evening on this and rather annoyed, if anyone with more experience can try running this and give some pointers I maybe will continue?

I have attached the hacked code test as tar.bz2 unzip in linuxcnc root dir and should create test ini/hal files and two extra directory in src/emc (I downloaded master from github).

just cd into rs274ngc_nopy and task_nopy and type make should create the lib file and milltasknopy, and then try
Code:
scripts/linuxcnc milltasknopy.ini in rip environment.   [attachment=42719]milltasknopy.tgz[/attachment]

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

More
4 years 9 months ago #230916 by mungkie
I get the feeling the attachment failed as it wanted a zip or tgz and I just changed the extension, so here is a zip of the tbz

File Attachment:

File Name: milltasknopy.zip
File Size:244.48 KB

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

More
4 years 9 months ago #230919 by cmorley
You never really answered why you want to remove python.
I would ask the same question if someone wanted to get rid of c or c++ too.

What is you ultimate goal here?

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

Time to create page: 0.082 seconds
Powered by Kunena Forum