From: Geert-Jan M.K. <gj...@df...> - 2005-05-09 10:24:27
|
hi hugo, > I've tried to make a small java class in order to understand the way > the > interaction between the java client, the player and stage works. > So far I manage to get information about some sensors and move the > robot > around... However I found a problem that I don't understand why it > happens... When I run the code below I have the information about the > position of the robot updated every step... And that is OK... But when > I > uncomment the (apparently innocent) LaserInterface line I stop having > that > information updated and it prints always the same position. Can > someone help > me please... > > PlayerClient robot = new PlayerClient (hostToConnect, > portToConnect); > PositionInterface ppd = robot.requestInterfacePosition(0, 'a'); > > // LaserInterface lpd = robot.requestInterfaceLaser(0, 'a'); suggestion: make sure that you use unique identifiers when requesting interfaces. what if you try LaserInterface lpd = robot.requestInterfaceLaser(1, 'a'); do you still have a problem then? best, geert-jan ===================================================== Dr. ir. Geert-Jan M. Kruijff Language Technology Lab German Research Center for Artificial Intelligence (DFKI) Saarbrucken, Germany Email: gj...@df..., gj...@ac... Phone: +49.681.302.5153 Fax: +49.681.302.5338 |