jceipek/PyCritters — Issue #5: Set Motor Speed Overflow (life.py)
Author: jceipek
Created: 2011-12-02 20:05:07+00:00
State: open

Traceback (most recent call last):
File "critters/life.py", line 159, in
evo.populate()
File "/Users/jceipek/Development/PyCritters/critters/genetics.py", line 123, in populate
base.calculateFitness(self.fitnessCalculator)
File "/Users/jceipek/Development/PyCritters/critters/genetics.py", line 25, in calculateFitness
self.scores = fitnessCalculator.calculate(self.individuals)
File "/Users/jceipek/Development/PyCritters/critters/genetics.py", line 48, in calculate
return dict((indv, self._doCalculation(indv)) for indv in individuals)
File "/Users/jceipek/Development/PyCritters/critters/genetics.py", line 48, in
return dict((indv, self._doCalculation(indv)) for indv in individuals)
File "critters/life.py", line 151, in _doCalculation
simEnv.simulate(timeToRun=self.maxTime)
File "/Users/jceipek/.virtualenv/main/lib/python2.7/site-packages/critters/physics/simulationEnvironment.py", line 215, in simulate
self.run(offset=offset,timeToRun=timeToRun)
File "/Users/jceipek/.virtualenv/main/lib/python2.7/site-packages/critters/physics/simulationEnvironment.py", line 185, in run
self.step()
File "/Users/jceipek/.virtualenv/main/lib/python2.7/site-packages/critters/physics/simulationEnvironment.py", line 153, in step
joint.motorSpeed = actuatorValues[i]
File "/Users/jceipek/.virtualenv/main/lib/python2.7/site-packages/Box2D-2.1b1-py2.7-macosx-10.4-x86_64.egg/Box2D/Box2D.py", line 6773, in __SetMotorSpeed
return _Box2D.b2RevoluteJoint___SetMotorSpeed(self, *args, **kwargs)
OverflowError: in method 'b2RevoluteJoint___SetMotorSpeed', argument 2 of type 'float32'