From: Marques, H. G <hg...@es...> - 2006-03-04 05:38:25
|
Hi... I finally managed to receive the laser though I still obtain the error I = sent yesterday quite often... somtimes it starts like this: /************************** Player v.2.0.0 selected devices [localhost:6666]: 6666:position2d:0 (stage) 6666:sonar:0 (stage) 6666:laser:0 (stage) 6666:blobfinder:0 (stage) 6666:fiducial:0 (stage) Connecting too: localhost port: 6666... Laser interface: javaclient2.LaserInterface@33f0de /********************************* and other times like it starts like this: (without me performing any = change in the code)... /*************************************************** Player v.2.0.0 Connecting too: localhost port: 6666... Exception in thread "AWT-EventQueue-0" java.lang.ClassCastException: = javaclient2.LaserInterface at = javaclient2.PlayerClient.requestInterfaceBlobfinder(PlayerClient.java:146= 5) at minimalfirstx.Agent.initRobot(Agent.java:282) at minimalfirstx.Agent.initialize(Agent.java:121) /******************************************************* One of the problems with my first code however was that I was using = accessMode =3D 'a' when requesting an interface (like in the old = version) instead of 1 (like it is supposed to be in the current = version); Apart from this error I was wondering how can I make the robot move = smoother and slower since even with setSpeed(1,1) it drives too fast... = At the moment I can't actually control the direction of the movement... = How can I solve this? Cheers, Hugo ---------------------------------------------------- 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/ |