From: Shane H. <sr...@ny...> - 2005-12-01 23:10:46
|
Hi Radu - > - runThreaded () calls read () automatically, as can be seen in this > snippet of code (3rd line of run ()): Thanks for the illustration. > > If you send me your piece of code, I can have a quick look at it > probably today or tomorrow (not THAT busy today :) and send you a > corrected version back. Who knows, maybe we discovered another bug in > FiducialInterface (I haven't really used it). Thank you for the kind offer, but I needed to move on. I'm working on a project that' imminently due, and have to do whatever I can to get the damn thing to work. (I'm sure you know how that goes.) The fiducial interface has been so frustrating I finally said to hell with it - I use it only to get a list of fiducials I can see, and I use the truth interface for everything else and write some code to make it sloppy. This is a long way from a pure solution but desperate times call for desperate measures. :) > What I normally do is ... connect to Player, request the interfaces, > then start the client in threaded mode, and then I control the robot > in an infinite while loop (with the appropriate sleep of course). Yup, that's what I'm doing too. (What do you consider the appropriate sleep, btw? Though it probably doesn't much matter in my case, since with a lot of robots competing for time the average sleep will be a lot longer than that specified...) > Can you check the examples that I just uploaded to the Javaclient web > page please, and see if they can help? I will do that in the future. Thanks for your help; it's all the more impressive that you take the time to help people considering how many other obligations you must have. It is very much appreciated. Shane |