Page 1 of 1

Omni 3 wheel model help

Posted: 15 May 2013, 20:30
by kaveenliyanage
I have modeled an omni 3 wheel robot with trans wheels. but my model gives a script error. I have coded trans wheels by looking in to mechanum wheel designs.

What I need is to follow a path using my model. So I hope you can help me with clarifying the problem.

https://www.dropbox.com/s/gti6x0yjjs2em ... tt?v=0mcng

this link contains my model.

Regards

Re: Omni 3 wheel model help

Posted: 15 May 2013, 21:49
by coppelia
Hello,

Had a quick look at it. The omni-wheels seem to be correctly modelled.
The child script attached to omniRob produces an error because you spelled omniPads wrong (omnipads instead of omniPads, notice the capital P)

Cheers

Re: Omni 3 wheel model help

Posted: 18 May 2013, 21:34
by kaveenliyanage
Thanks,
I should be more careful next time. It will be very helpful if the v-rep can point out these kind of mistakes. I have some more problems also, I will post them soon.

Regards

Re: Omni 3 wheel model help

Posted: 18 May 2013, 23:26
by coppelia
V-REP points out those mistakes. In the case of your scene, V-REP prints:

Lua runtime error: [string "SCRIPT omnirob"]:32: attempt to index global 'omnipads' (a nil value)

That's where the error happens: line 32 of child script omnirob: omnipads is a nil value (i.e. not defined).

Cheers