Errors in kinematics

More
03 Oct 2019 07:22 #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
Attachments:

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

More
03 Oct 2019 08:59 #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 or Create an account to join the conversation.

More
03 Oct 2019 10:09 #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 or Create an account to join the conversation.

More
03 Oct 2019 10:33 #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 or Create an account to join the conversation.

More
04 Oct 2019 01:45 #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 or Create an account to join the conversation.

More
04 Oct 2019 09:04 #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 or Create an account to join the conversation.

More
04 Oct 2019 09:18 #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 or Create an account to join the conversation.

More
05 Oct 2019 00:57 #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 or Create an account to join the conversation.

More
05 Oct 2019 12:23 #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

File Attachment:

File Name: kinematics.txt
File Size:3 KB
file
many thanks..
Attachments:

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

More
05 Oct 2019 16:49 #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 or Create an account to join the conversation.

Time to create page: 0.503 seconds
Powered by Kunena Forum