From: Radu B. R. <ru...@cs...> - 2007-08-30 14:13:09
|
Are you using PUSH or PULL ? Radu. julian rofe wrote: > Hi > > The position data from the position2d interface is never ready. As a > result my while loop goes on forever. Here is my code: > > // returns the robot's position as an array of floats > >> public float[] getPosition() > >> { > >> float[] pos = new float[3]; > >> try{ > >> while(!posi.isGeomReady()) {System.out.println("geom not > ready");} > >> > >> PlayerPose geom = posi.getGeom().getPose(); > >> pos[0] = geom.getPx(); > >> pos[1] = geom.getPy(); > >> pos[2] = geom.getPa(); > >> } > >> catch(Exception e){ System.out.println("ERROR");} > >> > >> return pos; > >> } > If anybody could help me that would be great. > Thanks > Julian > > ------------------------------------------------------------------------ > Park yourself in front of a world of choices in alternative vehicles. > Visit the Yahoo! Auto Green Center. > <http://us.rd.yahoo.com/evt=48246/*http://autos.yahoo.com/green_center/;_ylc=X3oDMTE5cDF2bXZzBF9TAzk3MTA3MDc2BHNlYwNtYWlsdGFncwRzbGsDZ3JlZW4tY2VudGVy> > > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > > > ------------------------------------------------------------------------ > > _______________________________________________ > 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 |