From: Rich M. <ric...@gm...> - 2009-10-02 02:13:02
|
That particular error string is a result of the playerc_request_data call timing out. I would try these things: 1. Try utilities like playerv, playerjoy (i'd use this first), and playerprint to make sure you're getting consistent commuincation over the network. This will immediately tell you if it's a network connection quality issue. These utilities all use the same client libraries you're using. 2. Try to write a very simple client program using just the roomba. 3. Try it again, using just Stage. Addressing each part individually is much better than trying to debug a huge mass of code at once. 4. Try to use the Roomba's IP address instead of the hostname. 5. Put in some printf statements like printf("subscribed to devices\n");fflush(stdout); This will help you narrow down exactly which function call is hanging. If you have a graphical debugger, you can also just step through the code to find the problem. I can only assume you have a laptop on your roomba (with the hostname "roomba1") running Player with roomba driver providing position2d and bumper interfaces. Is this the case? You also never specified whether this program works and then crashes suddenly, works but deteriorates and crashes, or doesn't work at all. Rich Mattes Paul Ozog wrote: > To get a better idea, see this source for a roomba setup (it's really > pretty short and simple). > http://code.google.com/p/ece-capstone-design/source/browse/trunk/TriDemo/RelPosition/DualProx/main.cpp > > The block of interested is the one with the comment > "Turn while backing up for 3 seconds" > This is where the network traffic drops way down (I'll try to attach a > screenshot of a network monitor), and there is quite a lag between > hitting the bumper and actually backing up. This point in the program > is where most likely to crash. > > It could also be my use of "DualProxy"'s, which are just structs that > hold a proxy to a real robot and a proxy to a Stage robot. I'm a > engineering student, not a master programmer. > > If I run the client program on the robot itself (ie - no wifi, no > stage), the program does not crash. > > Paul > > > On Thu, Oct 1, 2009 at 8:00 PM, Rich Mattes <ric...@gm... > <mailto:ric...@gm...>> wrote: > > Hi Paul, > > It's probably not discussed because it's not generally a problem. I > know I use Player over wifi regularly without error. Have you > tried to > connect to your robot with any of the utilities like playerprint of > playerv? Also, which drivers are you using and which commands are you > sending? The error may not be network related at all, it could be > that > the driver is not responding to a certain request sent by the client > program. The more information you provide, the better. > > Rich Mattes > > Paul Ozog wrote: > > I get this error while running a single client program that connects > > via 802.11g to other robot(s), and I suspect its due to my > wireless setup: > > > > playerc error : timed out waiting for server reply to request > > <player client crashes> > > > > But my router, desktop, and robot are all within 5 feet of each > other > > and there is little network traffic (no internet) going on when the > > program are running. > > > > Does anyone have experience with reliability of wireless > networks and > > player? I feel like this would be discussed a lot but I can't find > > anything in the archives... > > > > Paul > > > ------------------------------------------------------------------------ > > > > > ------------------------------------------------------------------------------ > > Come build with us! The BlackBerry® Developer Conference in > SF, CA > > is the only developer event you need to attend this year. > Jumpstart your > > developing skills, take BlackBerry mobile applications to market > and stay > > ahead of the curve. Join us from November 9-12, 2009. > Register now! > > http://p.sf.net/sfu/devconf > > > ------------------------------------------------------------------------ > > > > _______________________________________________ > > Playerstage-users mailing list > > Pla...@li... > <mailto:Pla...@li...> > > https://lists.sourceforge.net/lists/listinfo/playerstage-users > > > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry® Developer Conference in SF, CA > is the only developer event you need to attend this year. > Jumpstart your > developing skills, take BlackBerry mobile applications to market > and stay > ahead of the curve. Join us from November 9-12, 2009. Register > now! > http://p.sf.net/sfu/devconf > _______________________________________________ > Playerstage-users mailing list > Pla...@li... > <mailto:Pla...@li...> > https://lists.sourceforge.net/lists/listinfo/playerstage-users > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry® Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9-12, 2009. Register now! > http://p.sf.net/sfu/devconf > ------------------------------------------------------------------------ > > _______________________________________________ > Playerstage-users mailing list > Pla...@li... > https://lists.sourceforge.net/lists/listinfo/playerstage-users > |