[ODE] Virtual Creature Sample Code here
Rob Leclerc
leclerc at cpsc.ucalgary.ca
Wed Apr 16 16:43:02 2003
There is a new update to the zipfile containing the source code for the
virtual creature.
1) Should now compile under Linux. (Removed itoa())
2) Should now also run under Linux. Didn't like one of the conditionals.
3) Creature is a little more sophisticated now, having 4 segments on the
"spine" instead of two. Movement is much more interesting as a result.
The One joint on the spine didn't seem to be sufficient.
4) Added a demo file. Just generation 13 though.
Link below:
www.cpsc.ucalgary.ca/~leclerc/VirtualCreat_v1.0.zip
-----Original Message-----
From: ode-admin@q12.org [mailto:ode-admin@q12.org] On Behalf Of Rob
Leclerc
Sent: Tuesday, April 15, 2003 9:48 PM
To: ode@q12.org
Subject: RE: [ODE] Virtual Creature Sample Code here
Looks like this might stall if you let it run long enough. The problem
is in the compare template used for sorting. You can change it to the
following code, this should work. (Fingers crossed). Will update the zip
tomorrow.
//CODE BEGIN
template <class T>
class NNCompare {
public:
bool operator()(T p, T q) {
return (double)p.fitness > (double)q.fitness;
}
};
//CODE END
Best,
RDL
_______________________________________________
ODE mailing list
ODE@q12.org
http://q12.org/mailman/listinfo/ode