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 |
From: Sebastian R. <seb...@go...> - 2010-12-06 11:39:14
Attachments:
PGP.sig
|
Hello Jorge, Sounds like really good news. In order to verify your bugfixes I've found the following compile error: Looks like the (new) PLAYER_POSITION2D_CMD_VEL_HEAD type is not yet defined (in PlayerConstants.java). I checked out the latest revision (104) from svn repository. Kind regards, Sebastian Am 05.12.2010 um 14:28 schrieb Jorge Santos Simón: > 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 > > ------------------------------------------------------------------------------ > What happens now with your Lotus Notes apps - do you make another costly > upgrade, or settle for being marooned without product support? Time to move > off Lotus Notes and onto the cloud with Force.com, apps are easier to build, > use, and manage than apps on traditional platforms. Sign up for the Lotus > Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d > _______________________________________________ > Java-player-users mailing list > Jav...@li... > https://lists.sourceforge.net/lists/listinfo/java-player-users |