Using Generated Robot as a Seed

35 views
Skip to first unread message

Andrew Walker

unread,
Feb 19, 2017, 6:49:00 AM2/19/17
to RoboGen™ User Group
I'm trying to use the generated robot brain from one evolution as the seed for a new evolution.
The output that I get from the first evolution is in the javascript format which is not accepted as the seed as the txt format is required.
Is there a way to output the robot into the text file format after an evolution?

Alternatively, is there a way to get the current generation within a custom scenario?

Thanks,
Andrew Walker

Joshua Auerbach

unread,
Feb 19, 2017, 7:10:48 PM2/19/17
to Andrew Walker, RoboGen™ User Group

Hi Andrew,

What version are you using?  Pre-compiled or built from git? 

I have a change that will allow you to use a json formatted robot as the seed, but I never merged it into the master branch.  It will take me a bit of time to make sure that is safe to do, so that will have to wait for another day (hopefully sometime this week I can take a look).

In the meantime the workaround we have had in place is a Python script robogen/python/json_converter.py (https://github.com/lis-epfl/robogen/blob/master/python/json_converter.py)

Run like

python json_converter.py input.json output.txt

That will give you a txt formatted version from the json that the evolver outputs, which you can then use as a seed.

As far as getting the generation from a scenario that is not possible.  The scenario is being run in the simulation engine, and only has access to the current robot.  What you request would require sending the entire generation to each fitness evaluation.


Hope this helps!  Let me know if you still are having difficulties.

Best,

Josh


--
Dr. Joshua E. Auerbach, Ph.D.
Assistant Professor
Department of Software Technology
Division of Information Technology & Sciences
Champlain College
P.O. Box 670
Burlington, VT 05402-0670
P: (802)-651-5958 E: jaue...@champlain.edu
--
You received this message because you are subscribed to the Google Groups "RoboGen™ User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robogen-user...@googlegroups.com.
To post to this group, send email to roboge...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/robogen-users/a3e2413f-fe82-4fcc-ada0-a71cfaf1c780%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Andrew Walker

unread,
Feb 20, 2017, 8:00:08 AM2/20/17
to RoboGen™ User Group
The python script works perfectly! I appreciate the help!
At the moment I am using the precompiled version from the website but I also have a version that I built from git that so that I could make slight changes.
Reply all
Reply to author
Forward
0 new messages