Their is no reason that the code you have posted should not work in theory. Can you reduce it to the smallest example set and post your code and config files.


On 28/03/2008, Burak Akat <> wrote:

I am using Player 2.0.4 and Stage 2.0.3 and I am working a project involving inter-robot communication and exchange of robot's position information between them. For this purpose I am using ReadIfWaiting() command which corresponds to non-blocking reading manner, there is no blocking time in order to synhcronize the information exchange between the robots. The problem is that once the communication traffic between the robot becomes intense program crash and prints error message of like this;

playerc error   : poll call failed with error [0:Success]
playerc error   : recv failed with error [Success]
warning : failed to reconnect
terminate called after throwing an instance of 'PlayerCc::PlayerError

I am using 6 robots. My question is that, is Player can not handle such a type of communication (non-blocking) between the robots or did I do something wrong. Here is a code snippet where I am using ReadIfWaiting() command. Here the main robot is robot the other robot is robot1 and I am taking the odometry information of robot1 if it stops. There are also 4 other robots that I perform actions like this.

PlayerClient robot("localhost", 6665);
PlayerClient robot1("localhost", 6666);
Position2dProxy position(&robot, 0);
Position2dProxy position1(&robot1, 0);

Get the position odometry

robot1.ReadIfWaiting();    //Reading in non-blocking manner
Get the position odometry of other robot

Hoping to hear you from near future

Best regards

Salih Burak Akat

Check out the new Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.;164216239;13503038;w?
Playerstage-users mailing list

This email is intended for the addressee only and may contain privileged and/or confidential information