First I want thank Murilo so much that without your advise i could not drive
my robot to move in the stage simulation.
And still there is some problem confusing me.
As Murilo seggusted, I opened 2 terminal in my ubuntu 9,04, in the 1st
terminal i run the command player test.cfg, the test.cfg file was not
connected to any user defined client control program.
and this simulation was initialized successfully, the robot on 6665 PORT was
successful initialied, but the robot in the enviroment could not do any
Then I ran my self written client control program in the other terminal,
soon the terminal showed a warning from player sever ,saying: there is
already a robot on port 6665 running.
However, the robot in the formerly triggered simulation began to move as my
control program instructed, all that means when I tried to run a client
control program on the same 6665 port, where a player sever has already been
working, it works!
But if I switched my control code to run a client which is connected to
another port 6666, for instance, no matter wether the player sever on 6665
port is running, the client program breaks down with the same connection
Playerc error : connect call on [localhost : 6665] failed with error [111:
Playerclient:: Connect( )( -1) : connect call on [localhost: 6665] failed
with error [111: Connection refused]
Based on these practice, I think it is not a proper way to run my robot.
Could anybody explain me how this player sever-client works, and how to
better understand such a situation as mentioned above?
Further more, How Can I initiallize the Player sever from my own C++ control