Compilation error in PuddleWorld example (others work fine)

8 views
Skip to first unread message

Sergio Valcarcel

unread,
Jul 28, 2013, 6:29:25 AM7/28/13
to github...@googlegroups.com
Hi all!

First of all, thanks for making available all this excellent work!! :-)

I want to use RLPark for solving the Puddle World with multiple cooperating agents.

As a first step, I am trying to run the Puddle World example, but I get the following error message:

$ java -cp rlpark.jar rlpark.example.demos.learning.OffPACPuddleWorld
Exception in thread "main" java.lang.ClassCastException: rlpark.plugin.rltoys.agents.offpolicy.OffPolicyAgentDirect cannot be cast to rlpark.plugin.rltoys.agents.offpolicy.OffPolicyAgentFA
    at rlpark.example.demos.learning.OffPACPuddleWorld.<init>(Unknown Source)
    at rlpark.example.demos.learning.OffPACPuddleWorld.main(Unknown Source)

Is that normal? Could you give me a hint where to debug?

Other examples, like "java -cp rlpark.jar rlpark.example.demos.learning.QLearningMaze" work fine.

Thank you very much!
Best
Sergio




Thomas Degris

unread,
Jul 29, 2013, 9:27:43 AM7/29/13
to github...@googlegroups.com
Hello,

that should be fixed now. Please update your version of RLPark.

Thomas

--
 
---
You received this message because you are subscribed to the Google Groups "RLPark" group.
To unsubscribe from this group and stop receiving emails from it, send an email to githubrlpark...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Sergio Donal

unread,
Jul 29, 2013, 8:19:03 PM7/29/13
to github...@googlegroups.com
It works great!
Thanks so much!!
Best regards,
Sergio


--
 
---
You received this message because you are subscribed to a topic in the Google Groups "RLPark" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/githubrlpark/oSkwmSutL4E/unsubscribe.
To unsubscribe from this group and all its topics, send an email to githubrlpark...@googlegroups.com.

Sergio Valcarcel

unread,
Aug 24, 2013, 6:21:48 AM8/24/13
to github...@googlegroups.com
Hi,

When I set the project as an Eclipse plugin (I would like to debug with Zephyr directly from the same IDE), then I still get the same error:


Exception in thread "main" java.lang.ClassCastException: rlpark.plugin.rltoys.agents.offpolicy.OffPolicyAgentDirect cannot be cast to rlpark.plugin.rltoys.agents.offpolicy.OffPolicyAgentFA
    at MyExample01.<init>(MyExample01.java:63)
    at MyExample01.main(MyExample01.java:174)

I have installed the plugin from "Help --> Install New Software..." with link "http://people.bordeaux.inria.fr/degris/public/rlpark" right today.


Thanks!
Sergio

Sergio Valcarcel

unread,
Aug 24, 2013, 6:38:45 AM8/24/13
to github...@googlegroups.com
Hi,

sorry, it must be a problem with my project because it works fine when I use

  public static void main(String[] args) {
    new OffPACPuddleWorld().run();

  }

Thanks!
Sergio

On Sunday, July 28, 2013 12:29:25 PM UTC+2, Sergio Valcarcel wrote:

Sergio Valcarcel

unread,
Aug 24, 2013, 6:43:04 AM8/24/13
to github...@googlegroups.com
Sorry for the ultra-posting, the error was for an older version of the code when I copied the example.
I substituted line 64 of the OffPACPuddleWorld exampe for
    CriticAdapterFA criticAdapter = (CriticAdapterFA) ((OffPolicyAgentDirect) agent).learner().predictor();
and it works nice now.


Thanks!
Sergio

On Sunday, July 28, 2013 12:29:25 PM UTC+2, Sergio Valcarcel wrote:
Reply all
Reply to author
Forward
0 new messages