|
From: julian r. <ju...@ya...> - 2007-08-31 09:17:09
|
Thanks, I wasn't using PULL when I should have been.
Also weirdly enough this line of code made things work:
robot.runThreaded(-1,-1); //instead of robot.run();
Thanks
Julian
Radu Bogdan Rusu <ru...@cs...> wrote:
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.
>
>
>
>
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> 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
-------------------------------------------------------------------------
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
---------------------------------
Moody friends. Drama queens. Your life? Nope! - their life, your story.
Play Sims Stories at Yahoo! Games. |