Once again I am soliciting the wisdom of the player community.
I am switching from RWI's Mobility to the rFlex drivers under player. =
have completed the port such that is compiles and links. When I run my=
code I am not getting any data from the robot.
When I run the player-src-1.5/examples/c++/example_in_manual I get th=
sonar ranges printed out. I also added power to see that it worked.
when I run my code the player server terminal indicated the connection =
successfully been made just as it does when I run the example program. =
have tried running the following code just inside main and it does not
error or complain it just does not give me values from the robot.
SonarProxy sp(&robot, 0,'r');
for(int i =3D 0; i <100; i++)
Ironically, the code starts the sonar ticking however unlike the exampl=
program I get no reading printed to the screen.
The only thing I can think of is I have screwed up my Makefile. I just=
added the -L/usr/local/lib/ -lplayerclient line. I figured since I mad=
though linking I would be alright. Am I naive?
Any suggestions out there.
I don't know if this helps, but
> RobotClient robot("localhost");
Did you mean PlayerClient instead of RobotClient?
You can check if the robot connected here with robot.Connected().
Or you can manually connect by omitting the argument to the constructor,
and using the Connect(char*) method instead, and check its return value.
> SonarProxy sp(&robot, 0,'r');
You can check for an error here with sp.GetAccess(). It will be 'e' on
> for(int i = 0; i <100; i++)
> Ironically, the code starts the sonar ticking however unlike the example
> program I get no reading printed to the screen.
You are on Linux right?