questoin on walking algorythems

I have created a small algorythem for walking. The creature has several joints ,each joint has a random max angle and a min angle and a speed, through genetic algorythems these start off random and become more refined but no creature has learnt how to walk well, i think one problem is becouse i have lists of random numbers like

min=rand[100]
max=rand[100]

unfortantly min and max angles become close and the random functoin doesnt seem that random when called repeatedly one after the other.

i was wondering if anyone has any ideas about random and anything i can do to improve the walking. i thought about the sequence of movement but my creatures will eventually mutate new bodys so this could cause problems later on.

also as a side note , if i keep a multibody at a certain angle (so it cant fall over) the whole simulatoin glictchs, has anyone had a probelm like this? and found any solutoins?

thanks for your time noz

questoin on walking algorythems

There shouldn't be any problem with random[], but perhaps uniform random numbers are not best for your application. In the example you give, min can easily be greater than max, which would cause a conflict would paralyze the joint.

You could try biasing the random values so that max is always bigger than min:

max = 50 + random[50].
min = 50 + random[50].

Or to make sure that they're separated by even larger values:

max = 60 + random[40].
min = 40 - random[40].

- jon

questoin on walking algorythems

I think you meant:

max = 50 + random[50]. 
min = 50 - random[50].

in the first code example. ;)

thankyou

thankyou i have thought that, but was leaving it till one of the last optoins , as i said my creatures evolve bodytype and maybe for a certain body type the creature will need a very small angle (maybe if the leg becomes extreamly large)

think i will try it though and see what happens.
thankyou for your help , i hope to post my program up after i have finnished it, although it will not be very good.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.