Hi Player/Stage team,
I have Player 2.1.1 and Stage 3.0.1 installed on a Ubuntu 8.04 distribution.
I create a simulation where a robot pulls a trailer. I need to read some
data from my world file to my client program. The data I need is the size of
the bitmap and the path of the bitmap.
# load an environment bitmap
size [20.000 20.000 0.600] # need to read this values
origin [ 10.0 10.0 0.0 0.0 ]
bitmap "bitmaps/cave.ppm" #need to read this string
For this purpose I created an object of type "PlayerCc::SimulationProxy".
Unfortunally, when I try to read the data from the world file I always get:
playerc error : got NACK from request
Here is my code:
PlayerClient robot(gHostname, gPort);
// Does not work
// robot.Read(); // Tried with this also
simo.GetProperty("cave", "size", &size, sizeof(double));
simo.GetProperty("cave", "bitmap", bitmap, sizeof(bitmap));
cout << size << endl;
cout << bitmap << endl;
In the case of "size" I also like to read all three values [20.000 20.000
0.600] (or at least the first two). How do I need to make the call in that
Please tell me what I'm doing wrong.
Get latest updates about Open Source Projects, Conferences and News.