|
From: Radu B. R. <ru...@cs...> - 2006-03-03 22:57:10
|
Hi Hugo,
I'll try to see if I can duplicate the problem and will reply shortly
with an explanation or a patch.
Thanks for the report!
Radu.
Marques, Hugo G wrote:
>Hello...
>
>I just installed the javaclient2 in my computer and have a couple of questions...
>
>1 - First without the position interface, which interface should I use to move the robot now?
>
>2 - Is there a sample agent which uses javaclient2?
>
>3 - I receive an exception when trying to request the laser interface (data below)...
>
>Thank you in advance...
>Hugo
>
>
>
>CODE **********************:
>
>{
>...
>robot = new PlayerClient (host,port);
>System.out.println (" Connecting too: "+host+" port: "+port+"...");
>LaserInterface = robot.requestInterfaceLaser(0,'a');
>System.out.println (" Laser... ok");
>blobInterface = robot.requestInterfaceBlobfinder(0, 'a');
>System.out.println (" Blob ... ok");
>...
>}
>
>THE OUTPUT ******************** :
>
>Player v.2.0.0
> Connecting too: localhost port: 6665...
>errorrrrrrrr
>Laser... ok
>Exception in thread "AWT-EventQueue-0" java.lang.ClassCastException: javaclient2.LaserInterface
> at javaclient2.PlayerClient.requestInterfaceBlobfinder(PlayerClient.java:1461)
> at minimalfirstx.Agent.initRobot(Agent.java:283)
> at minimalfirstx.Agent.initialize(Agent.java:128)
> at architecturebuilder.gui.ArchitectureBuilder.initializeWithUserObject(ArchitectureBuilder.java:550)
> at architecturebuilder.gui.ArchitectureBuilder.initialize(ArchitectureBuilder.java:524)
> at architecturebuilder.gui.ArchitectureBuilder.access$800(ArchitectureBuilder.java:45)
> at architecturebuilder.gui.ArchitectureBuilder$25.actionPerformed(ArchitectureBuilder.java:1504)
> at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
> at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
> at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
> at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
> at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:234)
> at java.awt.Component.processMouseEvent(Component.java:5488)
> at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
> at java.awt.Component.processEvent(Component.java:5253)
> at java.awt.Container.processEvent(Container.java:1966)
> at java.awt.Component.dispatchEventImpl(Component.java:3955)
> at java.awt.Container.dispatchEventImpl(Container.java:2024)
> at java.awt.Component.dispatchEvent(Component.java:3803)
> at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
> at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
> at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
> at java.awt.Container.dispatchEventImpl(Container.java:2010)
> at java.awt.Window.dispatchEventImpl(Window.java:1774)
> at java.awt.Component.dispatchEvent(Component.java:3803)
> at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
> at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
> at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
> at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
> at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
> at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
>
>
>
>
>
>
>----------------------------------------------------
>Hugo Gravato Marques, University of Essex, PhD Student
>PHONE: +44 (0)7854917241, England or +351 962482416, Portugal
>ADDRESS: University of Essex, Department of Computer Science,
>Wivenhoe Park, Colchester Essex, CO4 3SQ, UK
>WEB: http://privatewww.essex.ac.uk/~hgmarq/
>
>
>
>
>-------------------------------------------------------
>This SF.Net email is sponsored by xPML, a groundbreaking scripting language
>that extends applications into web and mobile media. Attend the live webcast
>and join the prime developer group breaking into this new coding territory!
>http://sel.as-us.falkag.net/sel?cmd=k&kid0944&bid$1720&dat1642
>_______________________________________________
>Java-player-users mailing list
>Jav...@li...
>https://lists.sourceforge.net/lists/listinfo/java-player-users
>
>
--
| Radu Bogdan Rusu | http://rbrusu.com/
| http://www9.cs.tum.edu/people/rusu/
| Intelligent Autonomous Systems
| Technische Universitaet Muenchen
|