|
From: Radu B. R. <ve...@in...> - 2005-05-14 21:38:17
|
Hello Hugo,
I just commited the changes and uploaded 1.6.3.1 to SF. I finally realized
that you were right, and that we had a nasty bug which prevented Laser and
Position working together (or Laser and ANY other interface for that matter
:( ). So thanks again for the head up!
Cheers,
Radu.
On Mon, May 09, 2005 at 11:22:18PM +0100, Marques, Hugo G wrote:
>
> Hi...
>
> I made the changes suggested but i still have the same problem when the laserinterface line is uncommented... The robot moves but the position printed from the System.out.println doesn't change.
>
> I'm just using the simple.world that comes originally with stage.
>
> Any other suggestion?
>
> import javaclient.*;
>
> public class Hugo {
> public static void main(String[] args) {
> String hostToConnect = args[0];
> int portToConnect = Integer.parseInt(args[1]);
>
> System.out.println(" Host: "+hostToConnect+" Port: "+portToConnect);
> PlayerClient robot = new PlayerClient(hostToConnect,portToConnect);
> PositionInterface ppd = robot.requestInterfacePosition(0, 'a');
>
> // LaserInterface lpd = robot.requestInterfaceLaser(0, 'a');
> robot.runThreaded(-1, -1);
>
> for(int i = 0; ; i++) {
> robot.readAll();
>
> for(int j = 0; j < 100000000; j++){}
>
> ppd.setSpeed(100, 0);
> System.out.println(ppd.getX() + " " + ppd.getY());
> }
> }
> }
>
>
>
> ----------------------------------------------------
> 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/
>
>
>
>
> <http://privatewww.essex.ac.uk/~hgmarq/>
>
Yours sincerely,
Radu Bogdan Rusu
--
| Radu Bogdan 'veedee' Rusu | http://www.rbrusu.com
| PhD student/teaching assistant
| Robotics Research Group, Technical University of Cluj-Napoca[.ro]
|