From: kevinl <liu...@gm...> - 2009-04-10 11:40:04
|
Hi all, I don't know how to use the laserInterface, so I run the following code for a try: lsri = robot.requestInterfaceLaser (0, PlayerConstants.PLAYER_OPEN_MODE); while(lsri.isDataReady()); lnum=lsri.getData().getRanges_count(); lsri.getData().getRanges(); ldata=lsri.getData().getRanges(); I get the error of "NullPointerException". Could you advise me on how to use the laserInterface? And I am confused with the method "public void readData(PlayerMsgHdr header)" , how can I get a PlayerMsgHdr variable? Thanks a lot, kevin. -- View this message in context: http://www.nabble.com/Problems-with-laserinterface-tp22986701p22986701.html Sent from the java-player-users mailing list archive at Nabble.com. |