ggazzo / opennero

Automatically exported from code.google.com/p/opennero
Other
0 stars 0 forks source link

namespace typos in NERO mod #87

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
This is for svn rev 1257.

It looks like there were some changes to import statements that didn't get 
propagated all the way through the code.

The following changes must be applied to the NERO mod:

diff build/dist/NERO/client.py build3/dist/NERO/client.py
144c144
<         sim_context.setObjectRotation(modify_object_id['rot'], Vector3f(0, 0, 
-math.degrees(angle)))

---
>         sim_context.setObjectRotation(modify_object_id['rot'], 
OpenNero.Vector3f(0, 0, -math.degrees(angle)))

diff build/dist/NERO/module.py build3/dist/NERO/module.py
117c117
< get_ai("rtneat").save_population(str(location))

---
> OpenNero.get_ai("rtneat").save_population(str(location))
125,126c125,126
< rtneat = RTNEAT(str(location), "data/ai/neat-params.dat", pop_size, 
get_environment().agent_info.reward)
< set_ai("rtneat",rtneat)

---
> rtneat = OpenNero.RTNEAT(str(location), "data/ai/neat-params.dat", 
constants.pop_size, OpenNero.get_environment().agent_info.reward)
> OpenNero.set_ai("rtneat",rtneat)

Original issue reported on code.google.com by jroes...@gmail.com on 1 Nov 2011 at 11:20

GoogleCodeExporter commented 9 years ago

Original comment by ikarpov on 2 Nov 2011 at 6:02

GoogleCodeExporter commented 9 years ago
r1260 and r1261 address this issue

Original comment by ikarpov on 2 Nov 2011 at 6:03