Errors in kinematics

More
7 years 4 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 or Create an account to join the conversation.

More
7 years 4 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 or Create an account 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

File Attachment:

File Name: kinematics.txt
File Size:2.56 KB
file
many thanks..

Please Log in or Create an account 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 or Create an account to join the conversation.

More
7 years 1 week ago #148369 by khaled
Replied by khaled on topic Errors in kinematics
well , i read the documentation and i knew that i have to implement forward and inverse kinematics with those functions
int kinematicsForward(const double *joint, EmcPose *world,
const KINEMATICS_FORWARD_FLAGS *fflags,
KINEMATICS_INVERSE_FLAGS *iflags)

int kinematicsInverse(const EmcPose * world, double *joints,
const KINEMATICS_INVERSE_FLAGS *iflags,
KINEMATICS_FORWARD_FLAGS *fflags)

and to avoid any problems i took the (c code ) of bi pod that was in the documentation and i added the functions but i still have problems"(
i will attach the code and the errors

thanks again for helping

File Attachment:

File Name: klinux.txt
File Size:936 B

File Attachment:

File Name: klinux.txt
File Size:936 B

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

More
7 years 1 week ago #148649 by andypugh
Replied by andypugh on topic Errors in kinematics
You don't say what the error is that you see, but I think that perhaps your kins file fails to return a kinematics_type.

Have a look at trivkins for an example, there is a definied function that returns the kinematics type.

github.com/LinuxCNC/linuxcnc/blob/master...inematics/trivkins.c

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

Time to create page: 0.288 seconds
Powered by Kunena Forum