|
From: Jorge S. S. <jsa...@gm...> - 2010-12-05 13:28:23
|
Hello Sebastian,
Good news; after long struggling, I think I have solved the problem
with the ranger interface:
it is all about not reading the intensities that Stage 4 sends along
with range measures;
that seems to mangle all XDR communications from stage to javaclient.
I´ll commit the changes in about two hours. Note that I have changed
the interface, so your
code will not work with the new version (sorry everyone). In fact, I
can see that the new
interface is quite horrible, but I have tried to be coherent with
player interface definition.
Best of all is that this solves also some of the concerns you posted
in the player stage users
mailing list (I reproduce your post here, with my comments between ### ###)
Simulation:
SimulationInterface simu = playerclient.requestInterfaceSimulation(0,
PlayerConstants.PLAYER_OPEN_MODE);
simu.get2DPose (key);
if ( simu.isPose2DReady() ) { // Never reaches here
Although there is no problem with the set2DPose() method.
### solved! ###
Ranger:
RangerInterface las = host.requestInterfaceRanger (0,
PlayerConstants.PLAYER_OPEN_MODE);
while ( ! las.isDataReady() ) { // Never reaches here
The same code with LaserInterface works fine.
### solved! ###
Gripper:
Store ("4"), release ("5") (and stop ?) command return unknown
message type (on server site)
Anyway this could also be a player issue.
### do not tested, but seems a different problem ###
From: Sebastian Rockel <sebastianrockel@go...> - 2010-11-15 13:15
Attachments: PGP.sig
Hello,
I am currently using Javaclient3 and porting my CPP code to Java.
In one example I use sonar and ranger(laser).
I use basically following call order (e.g. for ranger but similar to
sonar and laser):
...
requestInterfaceRanger (0, PlayerConstants.PLAYER_OPEN_MODE);
...
runThreaded(-1,-1)
...
readAll()
...
isDataReady()
...
getData().getRanges()
...
For sonar and laser it works fine but when I use ranger it looks like
the call isDataReady() is blocking forever.
Is there anything to be specifically considered for the ranger
interface or does anyone has an idea?
Thanks in advance.
Sebastian
|