Switching kinematics between 5axiskins and trivkins may be a solution. I wanted to begin by using the halcompile to load some kinematics from:
github.com/LinuxCNC/linuxcnc/tree/master/src/emc/kinematics
However, when I try this in the terminal, I get errors. What is wrong?
Code:
sudo halcompile --install switchkins.c
Code:
Compiling realtime switchkins.c
In file included from switchkins.c:17:0:
/home/engineering/Desktop/CMS_programming_Components/halcompile_files/switchkins.h:27:19: error: unknown type name ‘kparms’
/home/engineering/Desktop/CMS_programming_Components/halcompile_files/switchkins.h:31:28: error: unknown type name ‘kparms’
/home/engineering/Desktop/CMS_programming_Components/halcompile_files/switchkins.h:32:28: error: unknown type name ‘KS’
/home/engineering/Desktop/CMS_programming_Components/halcompile_files/switchkins.h:32:39: error: unknown type name ‘KS’
/home/engineering/Desktop/CMS_programming_Components/halcompile_files/switchkins.h:32:50: error: unknown type name ‘KS’
switchkins.c:21:1: error: unknown type name ‘kparms’
switchkins.c: In function ‘gui_forward_kins’:
switchkins.c:89:15: error: request for member ‘gui_kinstype’ in something not a structure or union
switchkins.c:95:21: error: request for member ‘gui_kinstype’ in something not a structure or union
switchkins.c:98:33: error: request for member ‘gui_kinstype’ in something not a structure or union
switchkins.c:99:33: error: request for member ‘gui_kinstype’ in something not a structure or union
switchkins.c:100:33: error: request for member ‘gui_kinstype’ in something not a structure or union
switchkins.c:101:33: error: request for member ‘gui_kinstype’ in something not a structure or union
switchkins.c:102:33: error: request for member ‘gui_kinstype’ in something not a structure or union
switchkins.c:103:33: error: request for member ‘gui_kinstype’ in something not a structure or union
switchkins.c: In function ‘kinematicsForward’:
switchkins.c:177:11: error: request for member ‘gui_kinstype’ in something not a structure or union
switchkins.c: In function ‘rtapi_app_main’:
switchkins.c:235:7: error: request for member ‘kinsname’ in something not a structure or union
switchkins.c:236:7: error: request for member ‘halprefix’ in something not a structure or union
switchkins.c:237:7: error: request for member ‘max_joints’ in something not a structure or union
switchkins.c:238:7: error: request for member ‘required_coordinates’ in something not a structure or union
switchkins.c:239:7: error: request for member ‘fwd_iterates_mask’ in something not a structure or union
switchkins.c:240:7: error: request for member ‘gui_kinstype’ in something not a structure or union
switchkins.c:242:7: error: request for member ‘sparm’ in something not a structure or union
switchkins.c:244:5: error: unknown type name ‘KS’
switchkins.c:245:5: error: unknown type name ‘KS’
switchkins.c:246:5: error: unknown type name ‘KS’
switchkins.c:255:14: error: request for member ‘fwd_iterates_mask’ in something not a structure or union
switchkins.c:261:12: error: request for member ‘kinsname’ in something not a structure or union
switchkins.c:263:12: error: request for member ‘halprefix’ in something not a structure or union
switchkins.c:264:11: error: request for member ‘halprefix’ in something not a structure or union
switchkins.c:264:27: error: request for member ‘kinsname’ in something not a structure or union
switchkins.c:265:59: error: request for member ‘halprefix’ in something not a structure or union
switchkins.c:268:11: error: request for member ‘max_joints’ in something not a structure or union
switchkins.c:268:32: error: request for member ‘max_joints’ in something not a structure or union
switchkins.c:271:11: error: request for member ‘gui_kinstype’ in something not a structure or union
switchkins.c:285:26: error: request for member ‘kinsname’ in something not a structure or union
switchkins.c:295:11: error: request for member ‘gui_kinstype’ in something not a structure or union
switchkins.c:308:40: error: request for member ‘required_coordinates’ in something not a structure or union
switchkins.c:310:12: error: called object ‘ksetup0’ is not a function
switchkins.c:311:12: error: called object ‘ksetup1’ is not a function
switchkins.c:312:12: error: called object ‘ksetup2’ is not a function
switchkins.c:319:41: error: request for member ‘kinsname’ in something not a structure or union
make: *** [switchkins.o] Error 1