Custom kins component
Comp HAL component generator seems ideal for me (I am new in programming)
Do i need put it in a function or make pins?
I think, I have to take the word origins from trajectory planner, execute the maths and return the joints.
How l create a component without function or pins?
Also do I have to consider my limits for each joint in the kinematics script or mention them in the ini file is enough
Thank you in advance!
Please Log in or Create an account to join the conversation.
I would like to make a component for the inverse kinematics of my robot arm.
Comp HAL component generator seems ideal for me (I am new in programming)
Unfortunately it is not that simple.
The best thing to do will be to download the source via git
git clone git://git.linuxcnc.org/git/linuxcnc.git
Then look at
linuxcnc/src/emc/kinematics/pumakins.c
That is a robot kinematics component and can be used as a starting point for yours.
The best place to build it is going to be in the sources, so learning curve straight upwards
![:laugh: :laugh:](/media/kunena/emoticons/laughing.png)
regards
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
and Scarakins which if i am correct is 6dof , although i'm not 100% sure
also follow this post may assist you
linuxcnc.org/hardy/index.php/french/foru...robot-arm-simulation
Please Log in or Create an account to join the conversation.
I would like to make a component for the inverse kinematics of my robot arm.
Comp HAL component generator seems ideal for me (I am new in programming)
Do i need put it in a function or make pins?
You can compile and install a kinematics module written in C with comp (which has been renamed to halcompile). However you can't write a kinematics module in the .comp format.
Your best option is to take an existing kinematics module as a starting point and edit that to do what you want. Trivkins might be a good start if you expect to hard-code the geometry values. If you need the kinematics to read inputs from HAL then you would need to look at other kinematics files to see how to do that.
The kins files all live here:
git.linuxcnc.org/gitweb?p=linuxcnc.git;a...024fbf48539d;hb=HEAD
Trivkins #includes kinematics.h, and linuxcnc-dev installs that file (and lots of other headers) so it may be possible to compile with comp/halcompile without grabbing the full source code, but you might want to anyway.
Please Log in or Create an account to join the conversation.
I wrote the kinematic module based on puma's kinematics and compiled with these four warnings
WARNING: "pmQuatRpyConvert" [/tmp/tmp4gGq_S/rm501kins.ko] undefined!
WARNING: "pmRpyQuatConvert" [/tmp/tmp4gGq_S/rm501kins.ko] undefined!
WARNING: "pmPoseHomConvert" [/tmp/tmp4gGq_S/rm501kins.ko] undefined!
WARNING: "pmHomPoseConvert" [/tmp/tmp4gGq_S/rm501kins.ko] undefined!
and when I am loading the component this message appears
halcmd: loadrt rm501kins
insmod: error inserting '/usr/realtime-3.4-9-rtai-686-pae/modules/linuxcnc/rm501kins.ko': -1 Unknown symbol in module
<stdin>:2: exit value: 1
<stdin>:2: insmod failed, returned -1
See the output of 'dmesg' for more information.
I took pumakins from git.linuxcnc.org and recompile the pumakins component . Exact the same warnings appeared
Also I cannot load pumakins anymore!
Do I have to define somehow the pmQuatRpyConvert, pmRpyQuatConvert, pmPoseHomConvert, pmHomPoseConvert ?
I am attaching the rm501kins c & h file.
Please Log in or Create an account to join the conversation.
At this point you might as well install git, grab the sources and do a full run-in-place build.
wiki.linuxcnc.org/cgi-bin/wiki.pl?Instal..._or_8_04_from_source
(this only seems to cover Ubuntu 10.04 but I don't think that things are significantly different on 12,04, 14 or Debain Wheezy)
Please Log in or Create an account to join the conversation.
Could you explain what "full run-in-place build" means.
I am new in Linux
Please Log in or Create an account to join the conversation.
Could you explain what "full run-in-place build" means.
I am new in Linux
cd linuxcnc-dev/src
./autogen.sh
./configure
make
sudo make setuid
then
cd..
. ./scripts/rip-environment
ie. compile a complete new version of LinuxCNC in a stand-alone directory separate from the installed version.
Please Log in or Create an account to join the conversation.