Errors in kinematics

More
7 years 4 weeks ago #146957 by khaled
Errors in kinematics was created by khaled
I have a problem when I enter my kinematics code and I will attach a photo for this problem , I need to make simulation for my machine and I entered my kinematics with (sudo halcompile --install kins.c) then i load it in your Hal file ( is it the only way to check my kinematics code? ) and I have asked before where can I find my kinematics and I was told it's in (usr - lib - modules) but I couldn't find this path

Attachment not found

Please Log in to join the conversation.

More
7 years 4 weeks ago #146968 by tommylight
Replied by tommylight on topic Errors in kinematics
You have a missing file named shlibdefs.h, it is being referred by main.c.

Please Log in to join the conversation.

More
7 years 4 weeks ago #146971 by khaled
Replied by khaled on topic Errors in kinematics
sorry i am new to linuxcnc , can you tell me how can i fix this problem?
many thanks..

Please Log in to join the conversation.

More
7 years 4 weeks ago #146972 by tommylight
Replied by tommylight on topic Errors in kinematics
Search and find the missing file, copy it to the same directory your main.c file is, compile again.

Please Log in to join the conversation.

More
7 years 3 weeks ago #147064 by andypugh
Replied by andypugh on topic Errors in kinematics
You say that you are compiling kins.c but the screen shot shows "main.c"

Where did you get the kins.c (or main.c) file from?

Please Log in to join the conversation.

More
7 years 3 weeks ago #147104 by khaled
Replied by khaled on topic Errors in kinematics
It was old folder ,the kinematics is (kind.c not main.c) I should have focused my camera on errors ...
But I still didn't solve this problem I can get a new photo for the errors of my kins .c
Thanks again for helping

Please Log in to join the conversation.

More
7 years 3 weeks ago #147105 by khaled
Replied by khaled on topic Errors in kinematics
The first photo for my kins .c showing these errors

The second photo for the same folder but I added include rtapi

(I just want you to know that my kins.c was generated by Matlab coder)

Please Log in to join the conversation.

More
7 years 3 weeks ago #147149 by andypugh
Replied by andypugh on topic Errors in kinematics
Can you attach the kins.c file? Does it look anything like a LinuxCNC kins file?

Is the .h file in the place that the .c file expects to find it?

Please Log in to join the conversation.

More
7 years 3 weeks ago #147191 by khaled
Replied by khaled on topic Errors in kinematics
i am sorry but all i understood is i have a (.c file) and i entered the command in terminal (sudo halcompile --install kins.c)
and i am not too good in linuxcnc ,i don't know if there is any missing steps
i will attach the kinematics

Attachment not found

file
many thanks..

Please Log in to join the conversation.

More
7 years 3 weeks ago #147210 by andypugh
Replied by andypugh on topic Errors in kinematics
I am afraid that looks nothing like a valid LinuxCNC kinematics file.

It could, possibly, be converted in to one. You would need both that file (inverse kins) and a forward kins equivalent.

linuxcnc.org/docs/2.7/html/motion/kinematics.html

Please Log in to join the conversation.

Time to create page: 0.398 seconds
Powered by Kunena Forum