From: Vikas C. <vik...@gm...> - 2015-11-27 16:18:46
|
Hi, I am executing a Player Stage program in java using javaclient3 on eclipse. I have attached the java sample program .On my ubuntu system somtimes this code executes and manytimes not( like if i try 9 times it executes only one time) I think The main problem is with while (!rngi.isDataReady ()); method , for sonar it is not able to executes but it executes successfully for laser. by luck it gets values of sonar sometime (once in 9 time) , I want to know the reason why it is happening. I think isDataReady() method has some problem or javaclient3 jar has some problem. while (!rngi.isDataReady ()); sonarValues = rngi.getData ().getRanges (); Kindly suggests the solution because this code is excuting successfully everytime on my friend's ubuntu system with same configuration but on my system it is not executing. We have invested 4 days to know the reason why it is happening that it is executing randomly very few time on my system but on my friend's system is is executng successfully. Thanks and regards vikas chauhan |