Bipod setup

More
22 Sep 2010 13:11 #4281 by benehuber
Replied by benehuber on topic Re:Bipod setup
dab77 wrote:

here there's my bipodkins.c, you have to compile, changing the name for your needs.

this is a simple bipod cinematics (two motors, one cable per motor, united in one point.) and it works, in both ubu8.04 and 10.04.

try if it work, and at least you can modify this.

File Attachment:

File Name: dab_bipodkins.zip
File Size:1 KB


Hi dab77,

Thanks for your File but I need 4 Motors for my purpose.
During the next two weeks I haven't time. Maybe in the meantime gerd will find a solution for our problem. When there is more time i will try again.
Thx to all

regards
Bene

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

More
26 Sep 2010 15:37 #4351 by Schnitti
Replied by Schnitti on topic Re:Bipod setup
Hi there,

I am new and I want to use Gerds dualbipod too (for styro cutting machine). After upgrade to 10.04 we have to recompile the dualbipod.c file. Usually we have to use the comp command.

In pure ubuntu system I have installed the header and source files from the archives/repositories.

Then, when give comp a chance we get errors. Comp tries to get the headers out of the old headers from 8.04 which is the wrong place. I had alook at comp, it is a python script. But I am not experienced in reading python.

2.6.24 is out; it must be 2.6.32-122-rtai


Here the errors from comp:

comp --compile dualbipod.c
make -C /usr/src/linux-headers-2.6.24-16-rtai SUBDIRS=`pwd` CC=gcc V=0 -o /Module.symvers modules
make: *** /usr/src/linux-headers-2.6.24-16-rtai: No such file or directory. Schluss.
make: *** [modules] Fehler 2

Can anyone tell me, what we have to do to get the right environment working?

Best Regards

Wolfgang

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

More
26 Sep 2010 16:12 #4352 by Schnitti
Hi There!

Searching around ...... AND:

The Template for running COMP holds still the old places for the RT Modules!

It is stored under /etc/emc2/Makefile.Modinc

You have to chnage from 2.6.24-12-rtai to 2.6.32-122-rtai by hand.

Please find atached corrected file.

Regards

Wolfgang

File Attachment:

File Name: Makefile.gz
File Size:1 KB
Attachments:

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

More
26 Sep 2010 17:53 - 26 Sep 2010 17:57 #4353 by BigJohnT
I asked on the developer IRC channel about your issue:

[12:50] <micges> jthornton: does he install 10.04 from livecd or install rt kernel on desktop 10.04?
[12:50] <jthornton> micges: I dont' know but I'll ask
[12:50] <jepler> jthornton: maybe some previous version of emc2 put Makefile.modinc in /etc/emc2, but the current package puts it in /usr/share/emc/Makefile.modinc
[12:51] <jthornton> jepler: thanks
[12:51] <jepler> if you have /etc/emc2/Makefile.modinc (for instance from an old installation that used that path) then 'comp --print-modinc' will use that in preference to the one in /usr/share .. but if so, your best corrective action is simply to remove that one and use the one in /usr/share
[12:53] <jepler> it looks like the modinc file was moved between emc2.3 and emc2.4, so an 8.04 system upgraded from 2.3 to 2.4 might display this symptom
[12:54] <jepler> but the problem report seemed to indicate it was a 10.04 system (because of the -122 in the kernel version)...

There you go...

John
Last edit: 26 Sep 2010 17:57 by BigJohnT.
The following user(s) said Thank You: robotic89

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

More
27 Sep 2010 10:57 #4358 by Schnitti
Dear Admins,

a longer version of this text was thrown away with "incorrect code", so I repeat it in short:

Yes it was an Update from 8.04 to 10.04. Simple replace karmic to lucid.

--> no clean environment.

Better: Updatemanager from Ubuntu disables Thirdparty repos in a correct way, after update add emc2 back again.

Next: COMP is wrong in this line

ifeq ($(BUILDSYS),kbuild)
modules:
$(MAKE) -C $(KERNELDIR) SUBDIRS=$(shell pwd) CC=$(CC) V=0 -o $(KERNELDIR)/Module.symvers modules

Error 1: originally there is a $(KDIR)/Module.symvers must be KERNELDIR

Error 2: SUBDIRS needs $(shell pwd) not $('pwd') but this results in nonsense. Which subdir is to use?

After doing this, we still have errors.

sudo comp --install dualbipod.c
make -C /usr/src/linux-headers-2.6.32-122-rtai SUBDIRS=/tmp/tmp625dVT CC=gcc V=0 -o /usr/src/linux-headers-2.6.32-122-rtai/Module.symvers modules
make[1]: Betrete Verzeichnis '/usr/src/linux-headers-2.6.32-122-rtai'
CC [M] /tmp/tmp625dVT/dualbipod.o
Building modules, stage 2.
MODPOST 1 modules
WARNING: "hal_init" [/tmp/tmp625dVT/dualbipod.ko] undefined!
WARNING: "hal_exit" [/tmp/tmp625dVT/dualbipod.ko] undefined!
WARNING: "hal_malloc" [/tmp/tmp625dVT/dualbipod.ko] undefined!
WARNING: "hal_param_float_new" [/tmp/tmp625dVT/dualbipod.ko] undefined!
WARNING: "hal_ready" [/tmp/tmp625dVT/dualbipod.ko] undefined!
CC /tmp/tmp625dVT/dualbipod.mod.o
LD [M] /tmp/tmp625dVT/dualbipod.ko
make[1]: Verlasse Verzeichnis '/usr/src/linux-headers-2.6.32-122-rtai'
cp dualbipod.ko /usr/realtime-2.6.32-122-rtai/modules/emc2/

Should be no big deal now.

Kind regards

Wolfgang

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

More
27 Sep 2010 11:18 #4359 by BigJohnT
Replied by BigJohnT on topic Updating
This is from the Download page:

Note: Do Not upgrade Ubuntu from 6.06 to 8.04 or upgrade from 8.04 to 8.10. The precompiled versions of EMC2 are only compatible with the Ubuntu version they were compiled with. Upgrading will remove the EMC packages and make your system unable to run EMC.


John

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

More
27 Sep 2010 12:10 #4361 by Schnitti
Replied by Schnitti on topic Re:Updating
Hi,

sorry, I upgraded from 8.04 LTS to 10.04 LTS


Regards

Wolfgang

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

More
27 Sep 2010 12:12 #4362 by Schnitti
Hi,

after doing it:

If I go to HOME and then enter world modus x is y and y in x direction. How do I change that?

Regards

Wolfgang

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

More
27 Sep 2010 13:36 #4363 by andypugh
Replied by andypugh on topic Re:Updating
Schnitti wrote:

sorry, I upgraded from 8.04 LTS to 10.04 LTS

Just to be clear, was this using the EMC2 LiveCD or the built-in Ubuntu updater?

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

More
27 Sep 2010 13:42 #4364 by andypugh
Schnitti wrote:

If I go to HOME and then enter world modus x is y and y in x direction. How do I change that?

In a trivial kinematics machine (cartesian joints and cartesian axes) you would just change the mapping between motors/joints and axis positions commands in HAL.

With the bipod, however, you will probably need to alter the kinematics source-code. (exchange pos->tran.x with pos->tran.y throughout)
It seems odd that you would have this problem, however, if other people have not.

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

Time to create page: 1.337 seconds
Powered by Kunena Forum