From: fly r. <roa...@ho...> - 2005-08-18 18:26:29
|
Hi all, I just finished a java code and now want to run it with P/S. But i have go some confusions about it. My target is to move the a robot to a specific point in a map. my code is like this: //constructor PlayerClient robot = new PlayerClient("localhost", 6665); PositionInterface position = robot.requestInterfacePosition(0, 'p'); SimulationInterface simulation = robot.requestInterfaceSimulation(0, 's'); MapInterface map = robot.requestInterfaceMap(0, 'm'); PlayerSimulationPose2D simulationPosition.setName(NAME); position.setSpeed(100, 30); position.setPosition(x, y, yaw); //run loop robot.readAll(); simulation.set2DPose(NAME, start.getX(), start.getY(), start.getYaw()); searchAlgorithm(); Questions are these: 1. i don't understand where the map comes from and how the PlayerClient gets the data of map. does it come from World file? if yes, how the MapInterface gets the data? do i need to write the code for reading the data from World file? 2. what is the difference between PositionInterface and PlayerSimulationPose2D? since from the API, i think i can use PositionInterface and PlannerInterface to move the robot to a specific point, why PlayerSimulationPose2D? I am a beginner to the robot simulation. So there are such naive questions. Any one get some idea? thanks alot Jun _________________________________________________________________ Be the first to hear what's new at MSN - sign up to our free newsletters! http://www.msn.co.uk/newsletters |