Screenshot instructions:
Windows
Mac
Red Hat Linux
Ubuntu
Click URL instructions:
Right-click on ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)
From: Rebble <hyy19880511@16...> - 2009-03-22 13:58:37
|
Dear yang; I have correct the mistake youi pointed out and i also checked it again and again carefully ,but there are still the error. And in the player side, there is warning :warning : skipping subscription to unknown device opaque:0. But i have declared opaque as following : driver ( name "relay" provides ["6665:opaque:0"] ) Have anyone ever used the Opaque proxy for data communication? It seems that nobody in the forum exactly solved the issue. Does anyone have some example and correct codes to illustrate the method of communication using Opaque proxy ? I believe this will help many people. Thanks Very much for sharing. Rebble Hello Rebble, I have noticed several error in your codes except the data struct of Opaque: (1). The ports of two robots should be different: > PlayerClient r1("localhost",6665);// > Position2dProxy pp1(&r1); > LaserProxy lp1(&r1); > OpaqueProxy op1(&r1); > player_opaque_data_t op1Data,op2Data; > uint8_t op1GetData[1024]; > > PlayerClient r2("localhost",6665); and also should be different in the .cfg file. I think this is the most likely reason to get error like this: > playerc error : got NACK from request > playerc error : failed to get response > terminate called after throwing an instance of 'PlayerCc::PlayerError' (2). > pp1.SetSpeed(0.5,dtor(30)); > pp1.SetSpeed(0.5,dtor(30)); It may be a typo... Regards yang -- View this message in context: http://www.nabble.com/how-two-robots-interact-in-P-S--tp22397315p22646160.html Sent from the playerstage-users mailing list archive at Nabble.com. |