You can subscribe to this list here.
2005 |
Jan
|
Feb
|
Mar
|
Apr
(5) |
May
(33) |
Jun
(5) |
Jul
(13) |
Aug
(28) |
Sep
(6) |
Oct
(3) |
Nov
(20) |
Dec
(11) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2006 |
Jan
(1) |
Feb
(17) |
Mar
(35) |
Apr
(1) |
May
(4) |
Jun
(8) |
Jul
(5) |
Aug
(4) |
Sep
(1) |
Oct
|
Nov
(1) |
Dec
|
2007 |
Jan
(6) |
Feb
(6) |
Mar
|
Apr
(4) |
May
(1) |
Jun
(1) |
Jul
|
Aug
(9) |
Sep
(3) |
Oct
(2) |
Nov
(4) |
Dec
(9) |
2008 |
Jan
|
Feb
(7) |
Mar
(2) |
Apr
(14) |
May
(9) |
Jun
(1) |
Jul
(2) |
Aug
|
Sep
(1) |
Oct
|
Nov
(8) |
Dec
(2) |
2009 |
Jan
(3) |
Feb
(5) |
Mar
(4) |
Apr
(13) |
May
|
Jun
(1) |
Jul
(7) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(3) |
2010 |
Jan
(3) |
Feb
|
Mar
|
Apr
(1) |
May
|
Jun
|
Jul
(1) |
Aug
|
Sep
(3) |
Oct
|
Nov
(8) |
Dec
(4) |
2011 |
Jan
(3) |
Feb
(4) |
Mar
(7) |
Apr
(2) |
May
(7) |
Jun
(1) |
Jul
|
Aug
|
Sep
(10) |
Oct
|
Nov
|
Dec
|
2012 |
Jan
|
Feb
|
Mar
|
Apr
(2) |
May
(2) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2015 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(2) |
Dec
|
2018 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
|
From: <jav...@li...> - 2018-11-12 10:05:48
|
Hello! I'm a programmer who cracked your email account and device about half year ago. You entered a password on one of the insecure site you visited, and I catched it. Of course you can will change your password, or already made it. But it doesn't matter, my rat software update it every time. Please don't try to contact me or find me, it is impossible, since I sent you an email from your email account. Through your e-mail, I uploaded malicious code to your Operation System. I saved all of your contacts with friends, colleagues, relatives and a complete history of visits to the Internet resources. Also I installed a rat software on your device and long tome spying for you. You are not my only victim, I usually lock devices and ask for a ransom. But I was struck by the sites of intimate content that you very often visit. I am in shock of your reach fantasies! Wow! I've never seen anything like this! I did not even know that SUCH content could be so exciting! So, when you had fun on intime sites (you know what I mean!) I made screenshot with using my program from your camera of yours device. After that, I jointed them to the content of the currently viewed site. Will be funny when I send these photos to your contacts! And if your relatives see it? BUT I'm sure you don't want it. I definitely would not want to ... I will not do this if you pay me a little amount. I think $819 is a nice price for it! I accept only Bitcoins. My BTC wallet: 1M2D1PzyyiZBrSh8qcdts5kecQAX3S9xuF If you have difficulty with this - Ask Google "how to make a payment on a bitcoin wallet". It's easy. After receiving the above amount, all your data will be immediately removed automatically. My virus will also will be destroy itself from your operating system. My Trojan have auto alert, after this email is looked, I will be know it! You have 2 days (48 hours) for make a payment. If this does not happen - all your contacts will get crazy shots with your dirty life! And so that you do not obstruct me, your device will be locked (also after 48 hours) Do not take this frivolously! This is the last warning! Various security services or antiviruses won't help you for sure (I have already collected all your data). Here are the recommendations of a professional: Antiviruses do not help against modern malicious code. Just do not enter your passwords on unsafe sites! I hope you will be prudent. Bye. |
From: Vitalijs K. <vit...@gm...> - 2015-11-29 12:02:45
|
Hi! Could you please describe in details what exactly you understand with successful and unsuccessful code execution. Where exactly your code stops or does something unexpected? I have used something very similar to your code [1], with only difference that I had small delay between subsequent data readiness checks. There is one feature worth to mention about. >From source code of Ranger (and most others) interface: ... public boolean isDataReady () { if (readyPrdata) { readyPrdata = false; return true; } return false; } ... This function returns true only once per data reading cycle. In that sense your code is a bit redundant System.out.println(rngi.isDataReady ()); // if this will return true while (!rngi.isDataReady ()); // then this will wait till next data exchange tick. [1] https://github.com/Vitaljok/mrs-optimization/blob/master/robot-sim/rkv/rkv_1/src/rkv_1/Main.java Vitālijs 2015-11-27 18:18 GMT+02:00 Vikas Chauhan <vik...@gm...>: > 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 > > > > > ------------------------------------------------------------------------------ > > _______________________________________________ > Java-player-users mailing list > Jav...@li... > https://lists.sourceforge.net/lists/listinfo/java-player-users > > |
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 |
From: Jorge S. S. <jsa...@gm...> - 2012-05-07 00:22:05
|
Hello, Javaclient provides the BumperInterface, that should provide collisions information as long as it is provided. Sorry, no idea on whether Stage or roomba provide bumper data. I suppose that romba should do it. Regards, Jorge 2012/5/5 kristjan.liiva1 <kri...@gm...>: > Thanks for you repley Vitalijs. Incorrect data reading was the problem. > > I do have a another question, is there a way to detect a collision (with > either a wall or an another robot)? > I'm using roomba robots, so one possibility would be to use pumper > interface, but in pioneer.inc (I wanted to use this as a reference), there > is line "# WARNING: bumpers are not currently supported by Stage>=1.5". > Another possibility would be to define a custom robot model and use sonar > interfaces (with short range), but that wouldn't work on the actual roomba. > Also, I didn't find anything in the Javaclient3Test.java, so is this even > possible? > > Kristjan > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Java-player-users mailing list > Jav...@li... > https://lists.sourceforge.net/lists/listinfo/java-player-users > |
From: kristjan.liiva1 <kri...@gm...> - 2012-05-05 11:56:14
|
Thanks for you repley Vitalijs. Incorrect data reading was the problem. I do have a another question, is there a way to detect a collision (with either a wall or an another robot)? I'm using roomba robots, so one possibility would be to use pumper interface, but in pioneer.inc (I wanted to use this as a reference), there is line "# WARNING: bumpers are not currently supported by Stage>=1.5". Another possibility would be to define a custom robot model and use sonar interfaces (with short range), but that wouldn't work on the actual roomba. Also, I didn't find anything in the Javaclient3Test.java, so is this even possible? Kristjan |
From: Vitalijs K. <vit...@gm...> - 2012-04-23 13:14:36
|
Hi! I think your code never gets actual position of your robot. I'm not sure that robot.readAll(); actually reads all the data, perhaps it reads only the data which is ready. And at the certain time posi is not ready yet. Try something like follows: PlayerClient robot = new PlayerClient("localhost", 6669); Position2DInterface posi = robot.requestInterfacePosition2D(0, 1); robot.runThreaded(-1, -1); // this allows to fetch data from the robot in async mode posi.setSpeed(1, 0); Thread.sleep(5000); posi.setSpeed(0, 0); while (true) { // infinite loop waiting for the data if(posi.isDataReady()) { System.out.println("ready"); break; } else { System.out.println("waiting"); Thread.sleep(1000); } } System.out.println(posi.getX()); System.out.println(posi.getY()); System.out.println(posi.getYaw()); 2012/4/22 kristjan.liiva1 <kri...@gm...> > Hi, > > Could anyone help me out with some basics. I've been researching for some > time and still don't fully undestand it. > I'm trying to get the exact position for my robot. For that I'm using a > position2d interface which has a parameters: > localization "gps" > localization_origin [0 0 0 0] > I'm using code: > PlayerClient robot = new PlayerClient("localhost", 6669); > Position2DInterface posi = robot.requestInterfacePosition2D(0, 1); > posi.setSpeed(1, 0); > Thread.sleep(5000); > posi.setSpeed(0, 0); > robot.readAll(); > while(posi.isDataReady() == false){ > if(posi.isDataReady()) { > System.out.println("ready"); > break; > } > Thread.sleep(1000); > System.out.println("waiting"); > } > System.out.println(posi.getX()); > System.out.println(posi.getY()); > System.out.println(posi.getYaw()); > And posi.getX() always returns -5 (starting point of the robot). What am I > doing wrong? > > The other thing is that, if I use "odom" instead of "gps" then it > sometimes returns results which differ from each other by a factor of 2. > > > > ------------------------------------------------------------------------------ > For Developers, A Lot Can Happen In A Second. > Boundary is the first to Know...and Tell You. > Monitor Your Applications in Ultra-Fine Resolution. Try it FREE! > http://p.sf.net/sfu/Boundary-d2dvs2 > _______________________________________________ > Java-player-users mailing list > Jav...@li... > https://lists.sourceforge.net/lists/listinfo/java-player-users > > -- Vitālijs |
From: kristjan.liiva1 <kri...@gm...> - 2012-04-22 20:23:36
|
Hi, Could anyone help me out with some basics. I've been researching for some time and still don't fully undestand it. I'm trying to get the exact position for my robot. For that I'm using a position2d interface which has a parameters: localization "gps" localization_origin [0 0 0 0] I'm using code: PlayerClient robot = new PlayerClient("localhost", 6669); Position2DInterface posi = robot.requestInterfacePosition2D(0, 1); posi.setSpeed(1, 0); Thread.sleep(5000); posi.setSpeed(0, 0); robot.readAll(); while(posi.isDataReady() == false){ if(posi.isDataReady()) { System.out.println("ready"); break; } Thread.sleep(1000); System.out.println("waiting"); } System.out.println(posi.getX()); System.out.println(posi.getY()); System.out.println(posi.getYaw()); And posi.getX() always returns -5 (starting point of the robot). What am I doing wrong? The other thing is that, if I use "odom" instead of "gps" then it sometimes returns results which differ from each other by a factor of 2. |
From: Salvatore F. <ei...@gm...> - 2011-09-28 17:42:05
|
Hi Jorge, I saw that in a forum earlier, and set the pixels to 800 and resolution to 0,04 in order to get a floorplan of 16x16. Unfortunately the problem was still there. I sent a slightly altered copy of my message to this list to playerstage-users. Will wait to see if anyone has any idea, while working on other parts of the code, hoping something will come up. I think it might have to do something with the fiducial detector and the planner running simultaneously. At some point i used a blobfinder to detect differently colored robots as landmarks, and this wasn't happening. However, i couldn't set a blob id, so i gave a shot to the fiducial, which was not working for me some time ago (is now). I was kind of forced to change to fiducial, so as to improve scalability (many more fiducial ids available than colors -> many more distinct landmarks i can use). Anyway, i hope that either by experimenting, or using someones advice, i will solve this. By the way, regardless of whether you are able to help on a specific matter or not, the fact that you try to is a big thing by itself, and i really appreciate it. Thanks On Sep 28, 2011, at 6:15 PM, Jorge Santos Simón wrote: > Hello Salvatore, > > I think the problem is with player, not javaclient. Have you posted > the question on pla...@li... list? > > I´m quite lost with your problem, but maybe it´s related with the > mapfile parameter: > > resolution 0.032 # meters per pixel > > It must be exactly the physical size of the world divided by the > number of pixels. > > Sorry for not being more helpful > |
From: Jorge S. S. <jsa...@gm...> - 2011-09-28 15:15:43
|
Hello Salvatore, I think the problem is with player, not javaclient. Have you posted the question on pla...@li... list? I´m quite lost with your problem, but maybe it´s related with the mapfile parameter: resolution 0.032 # meters per pixel It must be exactly the physical size of the world divided by the number of pixels. Sorry for not being more helpful 2011/9/28 Salvatore Famoso <ei...@gm...>: > Hello everyone, > > i am using in 2 different threads, a Fiducial Detector, and a Planner Interface. > > The fiducial detector, gives me the id of the detected fiducial, as well as the position of the robot that detected it (position returned from the fiducial itself was less accurate, so i decided to use the one of the robot). > > This position, is then used by another robot as a goal in a PlannerInterface (robot has to move to the position the fiducial was detected). > > The second robot, has a fiducial detector running at the same time (All robots move in the environment, while detecting fiducials). > > The problem is, that while the fiducial is detected, and data is fed to the second robot's planner, the robot cannot get to the goal point. > > Although things seem to work properly, the robot at some point fails to adjust its speed, and carries out a course, usually crashing on to an obstacle. > > I have noticed that when this happens, my cpu usage reaches 100%, and in the terminal window where the planner configuration is run, i get an output like the following : > > > > warning : requested cell (1684,21) is offmap > warning : requested cell (1685,21) is offmap > warning : requested cell (1686,21) is offmap > warning : requested cell (1687,21) is offmap > warning : requested cell (1688,21) is offmap > warning : requested cell (1689,21) is offmap > warning : requested cell (1690,21) is offmap > warning : requested cell (1691,21) is offmap > warning : requested cell (1692,21) is offmap > warning : requested cell (1693,21) is offmap > warning : requested cell (1694,21) is offmap > warning : requested cell (1695,21) is offmap > warning : requested cell (1696,21) is offmap > warning : requested cell (1697,21) is offmap > warning : requested cell (1698,21) is offmap > warning : requested cell (1699,21) is offmap > warning : requested cell (1700,21) is offmap > warning : requested cell (1701,21) is offmap > warning : requested cell (1702,21) is offmap > warning : requested cell (1703,21) is offmap > warning : requested cell (1704,21) is offmap > warning : requested cell (1705,21) is offmap > > > > In the java console, my output seems normal : > > Sep 28, 2011 9:01:40 AM javaclient3.MapInterface handleResponse > WARNING: Data count doesn't match cells number: 2431 != 250000 > Sep 28, 2011 9:01:40 AM javaclient3.MapInterface handleResponse > INFO: Map decompress: 250000 bytes > Robot Navigation1@testPlatform New Goal : (0.6018865726369702,-6.377219609508479,-0.7258935634496316) > Robot Navigation1@testPlatform map.isDataReady() true > Robot Navigation1@testPlatform MapInfo = javaclient3.structures.map.PlayerMapInfo@9485d > Robot Navigation1@testPlatform Map data ready! > Robot Navigation1@testPlatform pmd.toString()javaclient3.structures.map.PlayerMapData@16dd2b6 > Robot Navigation1@testPlatform PlayerPlannerData = javaclient3.structures.planner.PlayerPlannerData@1e22a7e > Robot Navigation1@testPlatform Still on path > > > The map, amcl, wavefront and vfh configurations i use are the following : > > > driver > ( > name "mapfile" > provides ["7000:map:0"] > > filename "bitmaps/cave.png" > resolution 0.032 # meters per pixel > negate 0 > origin [-16 -16 ] # real-world location of the bottom-left-hand corner of the map > ) > > > driver > ( > name "amcl" > provides ["7000:localize:0" "7000:position2d:2"] > requires ["odometry::6665:position2d:0" "7000:laser:0" "laser::7000:map:0"] > > odom_init 0 > > init_pose [-6.432 -5.895 0] > ) > > > driver > ( > name "vfh" > provides ["7000:position2d:1"] > requires ["6665:position2d:0" "7000:laser:0"] > > max_turnrate_0ms 90 > max_turnrate_1ms 35 > ) > > driver > ( > name "wavefront" > provides ["7000:planner:0"] > requires ["output::7000:position2d:1" "input::7000:position2d:2" "7000:map:0"] > > safety_dist 0.4 > distance_epsilon 1.0 > angle_epsilon 10 > alwayson 1 > ) > > > If anyone has an idea as to what causes the problem, you are welcome to give some insight. > Thanks in advance > ------------------------------------------------------------------------------ > All the data continuously generated in your IT infrastructure contains a > definitive record of customers, application performance, security > threats, fraudulent activity and more. Splunk takes this data and makes > sense of it. Business sense. IT sense. Common sense. > http://p.sf.net/sfu/splunk-d2dcopy1 > _______________________________________________ > Java-player-users mailing list > Jav...@li... > https://lists.sourceforge.net/lists/listinfo/java-player-users > |
From: Salvatore F. <ei...@gm...> - 2011-09-28 06:34:04
|
Hello everyone, i am using in 2 different threads, a Fiducial Detector, and a Planner Interface. The fiducial detector, gives me the id of the detected fiducial, as well as the position of the robot that detected it (position returned from the fiducial itself was less accurate, so i decided to use the one of the robot). This position, is then used by another robot as a goal in a PlannerInterface (robot has to move to the position the fiducial was detected). The second robot, has a fiducial detector running at the same time (All robots move in the environment, while detecting fiducials). The problem is, that while the fiducial is detected, and data is fed to the second robot's planner, the robot cannot get to the goal point. Although things seem to work properly, the robot at some point fails to adjust its speed, and carries out a course, usually crashing on to an obstacle. I have noticed that when this happens, my cpu usage reaches 100%, and in the terminal window where the planner configuration is run, i get an output like the following : warning : requested cell (1684,21) is offmap warning : requested cell (1685,21) is offmap warning : requested cell (1686,21) is offmap warning : requested cell (1687,21) is offmap warning : requested cell (1688,21) is offmap warning : requested cell (1689,21) is offmap warning : requested cell (1690,21) is offmap warning : requested cell (1691,21) is offmap warning : requested cell (1692,21) is offmap warning : requested cell (1693,21) is offmap warning : requested cell (1694,21) is offmap warning : requested cell (1695,21) is offmap warning : requested cell (1696,21) is offmap warning : requested cell (1697,21) is offmap warning : requested cell (1698,21) is offmap warning : requested cell (1699,21) is offmap warning : requested cell (1700,21) is offmap warning : requested cell (1701,21) is offmap warning : requested cell (1702,21) is offmap warning : requested cell (1703,21) is offmap warning : requested cell (1704,21) is offmap warning : requested cell (1705,21) is offmap In the java console, my output seems normal : Sep 28, 2011 9:01:40 AM javaclient3.MapInterface handleResponse WARNING: Data count doesn't match cells number: 2431 != 250000 Sep 28, 2011 9:01:40 AM javaclient3.MapInterface handleResponse INFO: Map decompress: 250000 bytes Robot Navigation1@testPlatform New Goal : (0.6018865726369702,-6.377219609508479,-0.7258935634496316) Robot Navigation1@testPlatform map.isDataReady() true Robot Navigation1@testPlatform MapInfo = javaclient3.structures.map.PlayerMapInfo@9485d Robot Navigation1@testPlatform Map data ready! Robot Navigation1@testPlatform pmd.toString()javaclient3.structures.map.PlayerMapData@16dd2b6 Robot Navigation1@testPlatform PlayerPlannerData = javaclient3.structures.planner.PlayerPlannerData@1e22a7e Robot Navigation1@testPlatform Still on path The map, amcl, wavefront and vfh configurations i use are the following : driver ( name "mapfile" provides ["7000:map:0"] filename "bitmaps/cave.png" resolution 0.032 # meters per pixel negate 0 origin [-16 -16 ] # real-world location of the bottom-left-hand corner of the map ) driver ( name "amcl" provides ["7000:localize:0" "7000:position2d:2"] requires ["odometry::6665:position2d:0" "7000:laser:0" "laser::7000:map:0"] odom_init 0 init_pose [-6.432 -5.895 0] ) driver ( name "vfh" provides ["7000:position2d:1"] requires ["6665:position2d:0" "7000:laser:0"] max_turnrate_0ms 90 max_turnrate_1ms 35 ) driver ( name "wavefront" provides ["7000:planner:0"] requires ["output::7000:position2d:1" "input::7000:position2d:2" "7000:map:0"] safety_dist 0.4 distance_epsilon 1.0 angle_epsilon 10 alwayson 1 ) If anyone has an idea as to what causes the problem, you are welcome to give some insight. Thanks in advance |
From: Salvatore F. <ei...@gm...> - 2011-09-07 14:30:28
|
The example was actually the guideline on how to do it (there is little else on the configuration, etc, anywhere) Basically, the code i use, is a slightly modified version of the one in the example, with things i don't need commented out. I am using Stage, with a configuration similar to the NavigatorExample (at least as far as the mapping and planner interfaces are concerned), with extra drivers i need, and bigger number of robots. I use cave.png for all the robots, although i have at times tried using images from the other examples i didn't notice any loading wrong map, to be honest. In the terminal window it outputs: MapFile loading image file: /.../bitmaps/cave.png...Done. MapFile read a 500 X 500 map, at 0.032 m/pix Wavefront: Loading map from map:0... scale: 0.032 Generating C-space.... robot radius: 0.190 On Sep 7, 2011, at 10:42 AM, Jorge Santos Simón wrote: > Hello, > > Don't warry about the warning if the map is properly received in the > client side. The code is ok. > > And for the navigation issues, are you using Stage simulations? How > you load your map? I experienced some problems related with wrong map > loading by wavfront driver. > > Take a look at NAvigatorExample on javaclient web site. Maybe it can helps you > > gGood luck! > > 2011/9/7 Salvatore Famoso <ei...@gm...>: >> first, i apologize in advance for the length of my mail |
From: Jorge S. S. <jsa...@gm...> - 2011-09-07 07:42:51
|
Hello, Don't warry about the warning if the map is properly received in the client side. The code is ok. And for the navigation issues, are you using Stage simulations? How you load your map? I experienced some problems related with wrong map loading by wavfront driver. Take a look at NAvigatorExample on javaclient web site. Maybe it can helps you gGood luck! 2011/9/7 Salvatore Famoso <ei...@gm...>: > first, i apologize in advance for the length of my mail > > I went to MapInterface.java, and made the following changes: > > if (unzDataCount != cellsCount) > logger.log (Level.WARNING, > "Uncompressed data size doesn't match cells number: " + unzDataCount + " != " + cellsCount); > //logger.log (Level.WARNING, > // "Uncompressed data size doesn't match cells number"); > } > else > { > // Read uncompressed data > if (dataCount != cellsCount) > logger.log (Level.WARNING, > "Data count doesn't match cells number: " + dataCount + " != " + cellsCount); > //logger.log (Level.WARNING, > // "Uncompressed data size doesn't match cells number"); > is.readFully(outBuffer, 0, dataCount); > } > > > Basically, in the navigation part in my code, i have the robot just wander, until i give it a point, and then i expect it to go there. > For the moment, when it gets there, it has to stay a bit, and then start wandering again. > > > The most functional version of the code i use for this (position/localization interfaces are already available from the wandering phase, which is in the same class), was so far the following : > > System.out.println("Robot " + myAgent.getName() > + " New Goal : (" + point.getPx() + "," + point.getPy() > + "," + point.getPa() + ")"); > planner.getDeviceAccess(); > planner.setGoal(point); > > planner.getWaypoints(); > > map.getDeviceAccess(); > > map.requestMapInformation(); > System.out.println("Robot " + myAgent.getName() + " map.isDataReady() " > + map.isDataReady()); > > map.requestMapInformation(); > map.readMapInfo(); > > while (map.isDataReady() == false) { > try { > map.requestMapInformation(); > Thread.sleep(20); > } catch (InterruptedException e) { > e.printStackTrace(); > } > } > > mapInfo = map.getData(); > > System.out.println("Robot " + myAgent.getName() + " MapInfo = " + mapInfo.toString()); > System.out.println("Robot " + myAgent.getName() + " Map data ready!"); > > // Request map description and wait until it is ready > PlayerMapData pmd = new PlayerMapData(); > pmd.setWidth(mapInfo.getWidth()); > pmd.setHeight(mapInfo.getHeight()); > pmd.setRow(0); > pmd.setCol(0); > > System.out.println("Robot " + myAgent.getName() + " pmd.toString()" + pmd.toString()); > > map.requestMapData(pmd); > > > if ((loc != null) && (loc.isDataReady() == true)) { > pld = loc.getData(); > hypoths = pld.getHypoths(); > if ((pld.getHypoths_count() == 1) > && (hypoths[0].getAlpha() > 0.98)) > posi.setOdometry(hypoths[0].getMean()); > } > > if (planner.isReadyWaypointData()) { > PlayerPlannerWaypointsReq ppwd = planner.getWaypointData(); > System.out.println("Robot " + myAgent.getName() + " PlayerPlannerWaypointsReq = " + ppwd.toString()); > wPoints = ppwd.getWaypoints(); > System.out.println("Robot " + myAgent.getName() + " wPoints = " + wPoints.toString()); > } > > // Verify recent planner data to decide the navigation status > if (planner.isDataReady()) { > PlayerPlannerData ppd = planner.getData(); > > System.out.println("Robot " + myAgent.getName() + " PlayerPlannerData = " + ppd.toString()); > > if (ppd.getValid() == 0) { > System.out.println("Robot " + myAgent.getName() > + " Not a valid path"); > System.out.println("Robot " + myAgent.getName() > + " Current Position : (" > + presentPose.getPx() + "," > + presentPose.getPy() + "," > + presentPose.getPa()); > wPoints = null; > } > // Check if goal is achieved > else if (ppd.getDone() == 1) { > eventReceived = false; > posi.setSpeed(0, 0); > System.out.println("Robot " + myAgent.getName() > + " Done!"); > > System.out.println("Robot " + myAgent.getName() > + " Current Position : (" + presentPose.getPx() > + "," + presentPose.getPy() + "," > + presentPose.getPa() + ")"); > > point = null; > wPoints = null; > try { > Thread.sleep(10000); > } catch (InterruptedException e) { > e.printStackTrace(); > } > posi.setSpeed(DEF_X_SPEED, 0); > } else { > System.out.println("Robot " + myAgent.getName() > + " Still on path"); > planner.getWaypoints(); > } > } > > > > The best i got so far was the following: > > > Robot Navigation1@testPlatform MapInfo = javaclient3.structures.map.PlayerMapInfo@1122fc6 > Robot Navigation1@testPlatform Map data ready! > Robot Navigation1@testPlatform pmd.toString()javaclient3.structures.map.PlayerMapData@ed088a > Robot Navigation1@testPlatform PlayerPlannerData = javaclient3.structures.planner.PlayerPlannerData@17380d3 > Robot Navigation1@testPlatform Still on path > Sep 04, 2011 3:09:16 PM javaclient3.MapInterface handleResponse > WARNING: Data count doesn't match cells number: 2431 != 250000 > Sep 04, 2011 3:09:16 PM javaclient3.MapInterface handleResponse > INFO: Map decompress: 250000 bytes > Robot Navigation1@testPlatform New Goal : (-2.34,-3.43,1.3) > Robot Navigation1@testPlatform map.isDataReady() true > Robot Navigation1@testPlatform MapInfo = javaclient3.structures.map.PlayerMapInfo@1baeeb0 > Robot Navigation1@testPlatform Map data ready! > Robot Navigation1@testPlatform pmd.toString()javaclient3.structures.map.PlayerMapData@18c7d4b > Robot Navigation1@testPlatform PlayerPlannerWaypointsReq = javaclient3.structures.planner.PlayerPlannerWaypointsReq@13b0eef > Robot Navigation1@testPlatform wPoints = [Ljavaclient3.structures.PlayerPose2d;@517df4 > Sep 04, 2011 3:09:18 PM javaclient3.MapInterface handleResponse > WARNING: Data count doesn't match cells number: 2431 != 250000 > Robot Navigation1@testPlatform PlayerPlannerData = javaclient3.structures.planner.PlayerPlannerData@10d3719 > Robot Navigation1@testPlatform Still on path > Sep 04, 2011 3:09:18 PM javaclient3.MapInterface handleResponse > INFO: Map decompress: 250000 bytes > Robot Navigation1@testPlatform New Goal : (-2.34,-3.43,1.3) > Robot Navigation1@testPlatform map.isDataReady() true > Robot Navigation1@testPlatform MapInfo = javaclient3.structures.map.PlayerMapInfo@15827c4 > Robot Navigation1@testPlatform Map data ready! > Robot Navigation1@testPlatform pmd.toString()javaclient3.structures.map.PlayerMapData@9ad559 > Sep 04, 2011 3:09:23 PM javaclient3.MapInterface handleResponse > WARNING: Data count doesn't match cells number: 2431 != 250000 > Robot Navigation1@testPlatform PlayerPlannerData = javaclient3.structures.planner.PlayerPlannerData@f540da > Robot Navigation1@testPlatform Still on path > Sep 04, 2011 3:09:23 PM javaclient3.MapInterface handleResponse > INFO: Map decompress: 250000 bytes > Robot Navigation1@testPlatform New Goal : (-2.34,-3.43,1.3) > Robot Navigation1@testPlatform map.isDataReady() false > Robot Navigation1@testPlatform MapInfo = javaclient3.structures.map.PlayerMapInfo@1eb305e > Robot Navigation1@testPlatform Map data ready! > Robot Navigation1@testPlatform pmd.toString()javaclient3.structures.map.PlayerMapData@1b48906 > Robot Navigation1@testPlatform PlayerPlannerData = javaclient3.structures.planner.PlayerPlannerData@1d0a86a > Robot Navigation1@testPlatform Done! > Robot Navigation1@testPlatform Current Position : (-2.53,-3.41,1.22) > Sep 04, 2011 3:09:28 PM javaclient3.MapInterface handleResponse > WARNING: Data count doesn't match cells number: 2431 != 250000 > Sep 04, 2011 3:09:28 PM javaclient3.MapInterface handleResponse > INFO: Map decompress: 250000 bytes > > > > at some point i also got something like : > > pmd.toString()javaclient3.structures.map.PlayerMapData@1ec2b37 > Robot Navigation1@testPlatform PlayerPlannerData = javaclient3.structures.planner.PlayerPlannerData@2c637d > Robot Navigation1@testPlatform Not a valid path > Sep 04, 2011 2:52:10 PM javaclient3.MapInterface handleResponse > WARNING: Data count doesn't match cells number: 2431 != 250000 > Sep 04, 2011 2:52:10 PM javaclient3.MapInterface handleResponse > INFO: Map decompress: 250000 bytes > Robot Navigation1@testPlatform New Goal : (0.17,-6.64,0.75) > Robot Navigation1@testPlatform map.isDataReady() true > Robot Navigation1@testPlatform MapInfo = javaclient3.structures.map.PlayerMapInfo@ed088a > Robot Navigation1@testPlatform Map data ready! > > > > However, goal point was easily readable by the robot (there was no obstacle), like all goal points given > > Also, at one run i got in the terminal window where player .cfg is run, an output of the form : > > warning : requested cell (6540,3) is offmap > warning : requested cell (6541,3) is offmap > …………………………………………………. > warning : requested cell (6998,3) is offmap > warning : requested cell (6999,3) is offmap > new goal: -2.250000, -3.600000, 1.010000 > warning : Wavefront missed deadline and not sleeping; check machine load > new goal: -2.250000, -3.600000, 1.010000 > > > i hope the above helps. > In all of the runs, whether the output was "Done", or "No valid path", etc, the robot moved to a point with slightly > different coordinates than the goal. > For the moment, as far as i am concerned, i don't mind if the robot visits a point "nearby". > It allows me to move on to my main work, and if necessary get back to improve this afterwards. > But if there's anything else you'd like me to try, i'd be glad to > > > > > > On Sep 6, 2011, at 2:16 PM, Jorge Santos Simón wrote: > >> You are welcome! >> >> mmm.... I'm curious about the warning >> >> Can you replace the log call by: >> >> logger.log (Level.WARNING, >> "Uncompressed data size doesn't >> match cells number: " + unzDataCount + " != " + cellsCount); >> >> to see how different both values are? >> >> >> Please report any other ploblems you find >> >> Jorge >> > > > ------------------------------------------------------------------------------ > Using storage to extend the benefits of virtualization and iSCSI > Virtualization increases hardware utilization and delivers a new level of > agility. Learn what those decisions are and how to modernize your storage > and backup environments for virtualization. > http://www.accelacomm.com/jaw/sfnl/114/51434361/ > _______________________________________________ > Java-player-users mailing list > Jav...@li... > https://lists.sourceforge.net/lists/listinfo/java-player-users > |
From: Salvatore F. <ei...@gm...> - 2011-09-07 01:36:45
|
first, i apologize in advance for the length of my mail I went to MapInterface.java, and made the following changes: if (unzDataCount != cellsCount) logger.log (Level.WARNING, "Uncompressed data size doesn't match cells number: " + unzDataCount + " != " + cellsCount); //logger.log (Level.WARNING, // "Uncompressed data size doesn't match cells number"); } else { // Read uncompressed data if (dataCount != cellsCount) logger.log (Level.WARNING, "Data count doesn't match cells number: " + dataCount + " != " + cellsCount); //logger.log (Level.WARNING, // "Uncompressed data size doesn't match cells number"); is.readFully(outBuffer, 0, dataCount); } Basically, in the navigation part in my code, i have the robot just wander, until i give it a point, and then i expect it to go there. For the moment, when it gets there, it has to stay a bit, and then start wandering again. The most functional version of the code i use for this (position/localization interfaces are already available from the wandering phase, which is in the same class), was so far the following : System.out.println("Robot " + myAgent.getName() + " New Goal : (" + point.getPx() + "," + point.getPy() + "," + point.getPa() + ")"); planner.getDeviceAccess(); planner.setGoal(point); planner.getWaypoints(); map.getDeviceAccess(); map.requestMapInformation(); System.out.println("Robot " + myAgent.getName() + " map.isDataReady() " + map.isDataReady()); map.requestMapInformation(); map.readMapInfo(); while (map.isDataReady() == false) { try { map.requestMapInformation(); Thread.sleep(20); } catch (InterruptedException e) { e.printStackTrace(); } } mapInfo = map.getData(); System.out.println("Robot " + myAgent.getName() + " MapInfo = " + mapInfo.toString()); System.out.println("Robot " + myAgent.getName() + " Map data ready!"); // Request map description and wait until it is ready PlayerMapData pmd = new PlayerMapData(); pmd.setWidth(mapInfo.getWidth()); pmd.setHeight(mapInfo.getHeight()); pmd.setRow(0); pmd.setCol(0); System.out.println("Robot " + myAgent.getName() + " pmd.toString()" + pmd.toString()); map.requestMapData(pmd); if ((loc != null) && (loc.isDataReady() == true)) { pld = loc.getData(); hypoths = pld.getHypoths(); if ((pld.getHypoths_count() == 1) && (hypoths[0].getAlpha() > 0.98)) posi.setOdometry(hypoths[0].getMean()); } if (planner.isReadyWaypointData()) { PlayerPlannerWaypointsReq ppwd = planner.getWaypointData(); System.out.println("Robot " + myAgent.getName() + " PlayerPlannerWaypointsReq = " + ppwd.toString()); wPoints = ppwd.getWaypoints(); System.out.println("Robot " + myAgent.getName() + " wPoints = " + wPoints.toString()); } // Verify recent planner data to decide the navigation status if (planner.isDataReady()) { PlayerPlannerData ppd = planner.getData(); System.out.println("Robot " + myAgent.getName() + " PlayerPlannerData = " + ppd.toString()); if (ppd.getValid() == 0) { System.out.println("Robot " + myAgent.getName() + " Not a valid path"); System.out.println("Robot " + myAgent.getName() + " Current Position : (" + presentPose.getPx() + "," + presentPose.getPy() + "," + presentPose.getPa()); wPoints = null; } // Check if goal is achieved else if (ppd.getDone() == 1) { eventReceived = false; posi.setSpeed(0, 0); System.out.println("Robot " + myAgent.getName() + " Done!"); System.out.println("Robot " + myAgent.getName() + " Current Position : (" + presentPose.getPx() + "," + presentPose.getPy() + "," + presentPose.getPa() + ")"); point = null; wPoints = null; try { Thread.sleep(10000); } catch (InterruptedException e) { e.printStackTrace(); } posi.setSpeed(DEF_X_SPEED, 0); } else { System.out.println("Robot " + myAgent.getName() + " Still on path"); planner.getWaypoints(); } } The best i got so far was the following: Robot Navigation1@testPlatform MapInfo = javaclient3.structures.map.PlayerMapInfo@1122fc6 Robot Navigation1@testPlatform Map data ready! Robot Navigation1@testPlatform pmd.toString()javaclient3.structures.map.PlayerMapData@ed088a Robot Navigation1@testPlatform PlayerPlannerData = javaclient3.structures.planner.PlayerPlannerData@17380d3 Robot Navigation1@testPlatform Still on path Sep 04, 2011 3:09:16 PM javaclient3.MapInterface handleResponse WARNING: Data count doesn't match cells number: 2431 != 250000 Sep 04, 2011 3:09:16 PM javaclient3.MapInterface handleResponse INFO: Map decompress: 250000 bytes Robot Navigation1@testPlatform New Goal : (-2.34,-3.43,1.3) Robot Navigation1@testPlatform map.isDataReady() true Robot Navigation1@testPlatform MapInfo = javaclient3.structures.map.PlayerMapInfo@1baeeb0 Robot Navigation1@testPlatform Map data ready! Robot Navigation1@testPlatform pmd.toString()javaclient3.structures.map.PlayerMapData@18c7d4b Robot Navigation1@testPlatform PlayerPlannerWaypointsReq = javaclient3.structures.planner.PlayerPlannerWaypointsReq@13b0eef Robot Navigation1@testPlatform wPoints = [Ljavaclient3.structures.PlayerPose2d;@517df4 Sep 04, 2011 3:09:18 PM javaclient3.MapInterface handleResponse WARNING: Data count doesn't match cells number: 2431 != 250000 Robot Navigation1@testPlatform PlayerPlannerData = javaclient3.structures.planner.PlayerPlannerData@10d3719 Robot Navigation1@testPlatform Still on path Sep 04, 2011 3:09:18 PM javaclient3.MapInterface handleResponse INFO: Map decompress: 250000 bytes Robot Navigation1@testPlatform New Goal : (-2.34,-3.43,1.3) Robot Navigation1@testPlatform map.isDataReady() true Robot Navigation1@testPlatform MapInfo = javaclient3.structures.map.PlayerMapInfo@15827c4 Robot Navigation1@testPlatform Map data ready! Robot Navigation1@testPlatform pmd.toString()javaclient3.structures.map.PlayerMapData@9ad559 Sep 04, 2011 3:09:23 PM javaclient3.MapInterface handleResponse WARNING: Data count doesn't match cells number: 2431 != 250000 Robot Navigation1@testPlatform PlayerPlannerData = javaclient3.structures.planner.PlayerPlannerData@f540da Robot Navigation1@testPlatform Still on path Sep 04, 2011 3:09:23 PM javaclient3.MapInterface handleResponse INFO: Map decompress: 250000 bytes Robot Navigation1@testPlatform New Goal : (-2.34,-3.43,1.3) Robot Navigation1@testPlatform map.isDataReady() false Robot Navigation1@testPlatform MapInfo = javaclient3.structures.map.PlayerMapInfo@1eb305e Robot Navigation1@testPlatform Map data ready! Robot Navigation1@testPlatform pmd.toString()javaclient3.structures.map.PlayerMapData@1b48906 Robot Navigation1@testPlatform PlayerPlannerData = javaclient3.structures.planner.PlayerPlannerData@1d0a86a Robot Navigation1@testPlatform Done! Robot Navigation1@testPlatform Current Position : (-2.53,-3.41,1.22) Sep 04, 2011 3:09:28 PM javaclient3.MapInterface handleResponse WARNING: Data count doesn't match cells number: 2431 != 250000 Sep 04, 2011 3:09:28 PM javaclient3.MapInterface handleResponse INFO: Map decompress: 250000 bytes at some point i also got something like : pmd.toString()javaclient3.structures.map.PlayerMapData@1ec2b37 Robot Navigation1@testPlatform PlayerPlannerData = javaclient3.structures.planner.PlayerPlannerData@2c637d Robot Navigation1@testPlatform Not a valid path Sep 04, 2011 2:52:10 PM javaclient3.MapInterface handleResponse WARNING: Data count doesn't match cells number: 2431 != 250000 Sep 04, 2011 2:52:10 PM javaclient3.MapInterface handleResponse INFO: Map decompress: 250000 bytes Robot Navigation1@testPlatform New Goal : (0.17,-6.64,0.75) Robot Navigation1@testPlatform map.isDataReady() true Robot Navigation1@testPlatform MapInfo = javaclient3.structures.map.PlayerMapInfo@ed088a Robot Navigation1@testPlatform Map data ready! However, goal point was easily readable by the robot (there was no obstacle), like all goal points given Also, at one run i got in the terminal window where player .cfg is run, an output of the form : warning : requested cell (6540,3) is offmap warning : requested cell (6541,3) is offmap …………………………………………………. warning : requested cell (6998,3) is offmap warning : requested cell (6999,3) is offmap new goal: -2.250000, -3.600000, 1.010000 warning : Wavefront missed deadline and not sleeping; check machine load new goal: -2.250000, -3.600000, 1.010000 i hope the above helps. In all of the runs, whether the output was "Done", or "No valid path", etc, the robot moved to a point with slightly different coordinates than the goal. For the moment, as far as i am concerned, i don't mind if the robot visits a point "nearby". It allows me to move on to my main work, and if necessary get back to improve this afterwards. But if there's anything else you'd like me to try, i'd be glad to On Sep 6, 2011, at 2:16 PM, Jorge Santos Simón wrote: > You are welcome! > > mmm.... I'm curious about the warning > > Can you replace the log call by: > > logger.log (Level.WARNING, > "Uncompressed data size doesn't > match cells number: " + unzDataCount + " != " + cellsCount); > > to see how different both values are? > > > Please report any other ploblems you find > > Jorge > |
From: Jorge S. S. <jsa...@gm...> - 2011-09-06 11:26:03
|
You are welcome! mmm.... I'm curious about the warning Can you replace the log call by: logger.log (Level.WARNING, "Uncompressed data size doesn't match cells number: " + unzDataCount + " != " + cellsCount); to see how different both values are? Please report any other ploblems you find Jorge 2011/9/6 Salvatore Famoso <ei...@gm...>: > Thanks! > Changed PLAYER_USE_COMPRESED_DATA, and i don't get that exception anymore. > Now, i only get a warning (see below) . > I have a couple of other things not working the way i'd like them to (no exceptions for the moment), but i think i'll go over them some more before posting to the list about it. > > Anyway, once again, you ware a lifesaver! > (definitely a timesaver anyway…) > > Sep 04, 2011 6:01:44 AM javaclient3.MapInterface handleResponse > WARNING: Uncompressed data size doesn't match cells number > Sep 04, 2011 6:01:44 AM javaclient3.MapInterface handleResponse > INFO: Map decompress: 250000 bytes > > > > >> From: Jorge Santos Sim?n <jsa...@gm...> >> Subject: Re: [Java-player-users] DataFormatException >> To: jav...@li... >> Message-ID: >> <CAB...@ma...> >> Content-Type: text/plain; charset="iso-8859-1" >> >> Hello Salvatore, >> >> I think the problem is that your player server is sending uncompressed maps >> to javaclient, but javaclient expects compressed ones by default. Just try >> to set the first constant on javaclient/structures/PlayerConstants.java as >> false >> >> /** >> * Informs Javaclient interfaces whether to expect compressed or >> * uncompressed data from Player server. >> * This is Java counterpart to the HAVE_Z playerc configuration flag. >> */ >> public static final boolean PLAYER_USE_COMPRESED_DATA = false; // true; >> >> Please check also if you have configured player with the CMake >> variable HAVE_Z unset or set as false. >> >> Hope this helps! >> Jorge > > ------------------------------------------------------------------------------ > Special Offer -- Download ArcSight Logger for FREE! > Finally, a world-class log management solution at an even better > price-free! And you'll get a free "Love Thy Logs" t-shirt when you > download Logger. Secure your free ArcSight Logger TODAY! > http://p.sf.net/sfu/arcsisghtdev2dev > _______________________________________________ > Java-player-users mailing list > Jav...@li... > https://lists.sourceforge.net/lists/listinfo/java-player-users > |
From: Salvatore F. <ei...@gm...> - 2011-09-06 07:48:13
|
Thanks! Changed PLAYER_USE_COMPRESED_DATA, and i don't get that exception anymore. Now, i only get a warning (see below) . I have a couple of other things not working the way i'd like them to (no exceptions for the moment), but i think i'll go over them some more before posting to the list about it. Anyway, once again, you ware a lifesaver! (definitely a timesaver anyway…) Sep 04, 2011 6:01:44 AM javaclient3.MapInterface handleResponse WARNING: Uncompressed data size doesn't match cells number Sep 04, 2011 6:01:44 AM javaclient3.MapInterface handleResponse INFO: Map decompress: 250000 bytes > From: Jorge Santos Sim?n <jsa...@gm...> > Subject: Re: [Java-player-users] DataFormatException > To: jav...@li... > Message-ID: > <CAB...@ma...> > Content-Type: text/plain; charset="iso-8859-1" > > Hello Salvatore, > > I think the problem is that your player server is sending uncompressed maps > to javaclient, but javaclient expects compressed ones by default. Just try > to set the first constant on javaclient/structures/PlayerConstants.java as > false > > /** > * Informs Javaclient interfaces whether to expect compressed or > * uncompressed data from Player server. > * This is Java counterpart to the HAVE_Z playerc configuration flag. > */ > public static final boolean PLAYER_USE_COMPRESED_DATA = false; // true; > > Please check also if you have configured player with the CMake > variable HAVE_Z unset or set as false. > > Hope this helps! > Jorge |
From: Jorge S. S. <jsa...@gm...> - 2011-09-05 08:45:08
|
Hello Salvatore, I think the problem is that your player server is sending uncompressed maps to javaclient, but javaclient expects compressed ones by default. Just try to set the first constant on javaclient/structures/PlayerConstants.java as false /** * Informs Javaclient interfaces whether to expect compressed or * uncompressed data from Player server. * This is Java counterpart to the HAVE_Z playerc configuration flag. */ public static final boolean PLAYER_USE_COMPRESED_DATA = false; // true; Please check also if you have configured player with the CMake variable HAVE_Z unset or set as false. Hope this helps! Jorge 2011/9/5 Salvatore Famoso <ei...@gm...> > Hello everyone, > > i am trying to write an application using player/stage/javaclient, where > amongst other stuff, i want a robot to be able to go to a specific given > position in the map. > For this part, i tried following the navigator example, changing a few > things, so as not to get the goal point from mouse input, > but given otherwise (through a jade datastore). > I also use the same configuration (only adjusted appropriately for a > greater number of robots), and the same cave.png as map file (although other > didn't make any difference). > i have no problem with passing the goal-point, however, i have a problem > with the map interface > i keep getting a DataFormatException. > I have tried commenting out various pieces of the code, sa as to find some > version that doesn't give me that exception, but all i got in the end was, > practically almost all the code out, and still the exception. > i tried the debugging mode, and all i found was that it's in the same > thread every time, but couldn't find where in the code i use the exception > is fired, only that it happens in the map interface. > The same DataFormatException is thrown when trying the javaclient example > itself. > below, is the part of the code i use (with some system.out's to see if the > execution reaches specific points of the code), as well as > the associated output, and the stack trace i get for the thread that gives > the exception when i try the debug mode. > i use player 3.0.2, stage 4.0.0, the latest javaclient libraries from svn, > and java 1.7.0 (although the same was happening when using java 1.6.0), and > fedora 15. > > If anyone has any idea what could be the cause, or how i could find it, i > would be obliged, as i've spent several days (and nights) over this and feel > like i've reached a dead end... > > > code: > > planner = navigationAgent.getPlanner(); > map = navigationAgent.getMap(); > System.out.println("Robot " + myAgent.getName() + " my map = > " + map.toString()); > loc = navigationAgent.getLocalization(); > > mapInfo = new PlayerMapInfo(); > > > > } > > public void action() { > > //code to get the goal-point > ...... > System.out.println("Robot " + myAgent.getLocalName() > + " my event transporter received Pose = " + > point); > > //setting the position interface > ..... > > System.out.println("Robot " + myAgent.getName() + " New Goal > : (" > + point.getPx() + "," + point.getPy() + "," > + point.getPa() + ")"); > planner.setGoal(point); > > map.getDeviceAccess(); > > map.requestMapInformation(); > System.out.println("Robot " + myAgent.getName() + " " + > map.isDataReady()); > map.getDeviceAccess(); > > map.getDeviceDriverName(); > map.getTimestamp(); > map.requestMapInformation(); > map.readMapInfo(); > System.out.println("Robot " + myAgent.getName() + " > map.getDeviceDriverName() " + map.getDeviceDriverName()); > System.out.println("Robot " + myAgent.getName() + " > map.getTimestamp() " + map.getTimestamp()); > while (map.isDataReady() == false) { > try { > map.requestMapInformation(); > System.out.println("Robot " + > myAgent.getName() + " map.isDataReady() " + map.isDataReady()); > Thread.sleep(20); > } catch (InterruptedException e) { > e.printStackTrace(); > } > } > > mapInfo = map.getData(); > System.out.println("Robot " + myAgent.getName() + " MapInfo > = " + mapInfo.toString()); > System.out.println("Robot " + myAgent.getName() + " Map data > ready!"); > // Request map description and wait until it is ready > int w = mapInfo.getWidth(); > System.out.println("Robot " + myAgent.getName() + " new > PlayerMapData()"); > PlayerMapData pmd = new PlayerMapData(); > pmd.setWidth(mapInfo.getWidth()); > pmd.setHeight(mapInfo.getHeight()); > pmd.setRow(0); > pmd.setCol(0); > System.out.println("Robot " + myAgent.getName() + " > pmd.toString()" + pmd.toString()); > map.requestMapData(pmd); > System.out.println("Robot " + myAgent.getName() + " > map.isGridDataReady()" + map.isGridDataReady()); > > while (map.isGridDataReady() == false) { > try { > Thread.sleep(20); > } catch (InterruptedException e) { > e.printStackTrace(); > } > } > map.requestMapDataVector(); > > PlayerMapData mapData = map.getGridData(); > > int imgWidth = mapInfo.getWidth(); > int imgHeight = mapInfo.getHeight(); > > if (imgWidth * imgHeight != mapData.getData_count()) { > System.err > .println("NavigatorExample: map grid > size and given data not matching"); > System.exit(1); > } > > currStatus = NavStatus.NEW_GOAL; > System.out.println("Robot " + myAgent.getName() + " Current > Status : " > + currStatus); > > > //and code continues similar to the navigator example as far > as the navigation is concerned > ..... > > > > the corresponding output is : > > > Robot Navigation1@testPlatform my map = javaclient3.MapInterface@be4ae > Robot Navigation1 my event transporter received Pose = PlayerPose2d { > -2.12, -2.81, 2.06} > Robot Navigation1@testPlatform New Goal : (-2.12,-2.81,2.06) > Robot Navigation1@testPlatform false > Robot Navigation1@testPlatform map.getDeviceDriverName() mapfile > Robot Navigation1@testPlatform map.getTimestamp() 0.0 > Robot Navigation1@testPlatform map.isDataReady() false > Robot Navigation1@testPlatform map.isDataReady() false > Robot Navigation1@testPlatform map.isDataReady() false > Robot Navigation1@testPlatform map.isDataReady() false > Robot Navigation1@testPlatform map.isDataReady() false > Robot Navigation1@testPlatform map.isDataReady() false > Robot Navigation1@testPlatform map.isDataReady() false > Robot Navigation1@testPlatform map.isDataReady() false > Robot Navigation1@testPlatform map.isDataReady() false > Robot Navigation1@testPlatform map.isDataReady() false > Robot Navigation1@testPlatform map.isDataReady() false > Robot Navigation1@testPlatform map.isDataReady() false > Robot Navigation1@testPlatform map.isDataReady() false > Robot Navigation1@testPlatform MapInfo = > javaclient3.structures.map.PlayerMapInfo@19776d7 > Robot Navigation1@testPlatform Map data ready! > Robot Navigation1@testPlatform new PlayerMapData() > Robot Nav...@te...String()javaclient3.structures.map.PlayerMapData@17f1661 > Robot Navigation1@testPlatform map.isGridDataReady()false > Sep 04, 2011 4:40:25 AM javaclient3.PlayerException <init> > SEVERE: [Map] : Error uncompressing payload: > java.util.zip.DataFormatException: incorrect header check > Exception in thread "Thread-27" javaclient3.PlayerException: [Map] : Error > uncompressing payload: java.util.zip.DataFormatException: incorrect header > check > at javaclient3.MapInterface.handleResponse(MapInterface.java:334) > at > javaclient3.PlayerClient.handleRequestsDevice(PlayerClient.java:1197) > at javaclient3.PlayerClient.read(PlayerClient.java:891) > at javaclient3.PlayerClient.read(PlayerClient.java:827) > at javaclient3.PlayerClient.run(PlayerClient.java:268) > Caused by: java.util.zip.DataFormatException: incorrect header check > at java.util.zip.Inflater.inflateBytes(Native Method) > at java.util.zip.Inflater.inflate(Inflater.java:256) > at java.util.zip.Inflater.inflate(Inflater.java:274) > at javaclient3.MapInterface.handleResponse(MapInterface.java:253) > ... 4 more > > > > thread 27 stack trace: > > Thread [Thread-27] (Suspended (exception DataFormatException)) > Inflater.inflateBytes(long, byte[], int, int) line: not available > [native method] > Inflater.inflate(byte[], int, int) line: 256 > Inflater.inflate(byte[]) line: 274 > MapInterface.handleResponse(PlayerMsgHdr) line: 253 > PlayerClient.handleRequestsDevice(PlayerMsgHdr) line: 1197 > PlayerClient.read(int, int) line: 891 > PlayerClient.read() line: 827 > PlayerClient.run() line: 268 > > > > ------------------------------------------------------------------------------ > Special Offer -- Download ArcSight Logger for FREE! > Finally, a world-class log management solution at an even better > price-free! And you'll get a free "Love Thy Logs" t-shirt when you > download Logger. Secure your free ArcSight Logger TODAY! > http://p.sf.net/sfu/arcsisghtdev2dev > _______________________________________________ > Java-player-users mailing list > Jav...@li... > https://lists.sourceforge.net/lists/listinfo/java-player-users > |
From: Salvatore F. <ei...@gm...> - 2011-09-05 02:17:48
|
Hello everyone, i am trying to write an application using player/stage/javaclient, where amongst other stuff, i want a robot to be able to go to a specific given position in the map. For this part, i tried following the navigator example, changing a few things, so as not to get the goal point from mouse input, but given otherwise (through a jade datastore). I also use the same configuration (only adjusted appropriately for a greater number of robots), and the same cave.png as map file (although other didn't make any difference). i have no problem with passing the goal-point, however, i have a problem with the map interface i keep getting a DataFormatException. I have tried commenting out various pieces of the code, sa as to find some version that doesn't give me that exception, but all i got in the end was, practically almost all the code out, and still the exception. i tried the debugging mode, and all i found was that it's in the same thread every time, but couldn't find where in the code i use the exception is fired, only that it happens in the map interface. The same DataFormatException is thrown when trying the javaclient example itself. below, is the part of the code i use (with some system.out's to see if the execution reaches specific points of the code), as well as the associated output, and the stack trace i get for the thread that gives the exception when i try the debug mode. i use player 3.0.2, stage 4.0.0, the latest javaclient libraries from svn, and java 1.7.0 (although the same was happening when using java 1.6.0), and fedora 15. If anyone has any idea what could be the cause, or how i could find it, i would be obliged, as i've spent several days (and nights) over this and feel like i've reached a dead end... code: planner = navigationAgent.getPlanner(); map = navigationAgent.getMap(); System.out.println("Robot " + myAgent.getName() + " my map = " + map.toString()); loc = navigationAgent.getLocalization(); mapInfo = new PlayerMapInfo(); } public void action() { //code to get the goal-point ...... System.out.println("Robot " + myAgent.getLocalName() + " my event transporter received Pose = " + point); //setting the position interface ..... System.out.println("Robot " + myAgent.getName() + " New Goal : (" + point.getPx() + "," + point.getPy() + "," + point.getPa() + ")"); planner.setGoal(point); map.getDeviceAccess(); map.requestMapInformation(); System.out.println("Robot " + myAgent.getName() + " " + map.isDataReady()); map.getDeviceAccess(); map.getDeviceDriverName(); map.getTimestamp(); map.requestMapInformation(); map.readMapInfo(); System.out.println("Robot " + myAgent.getName() + " map.getDeviceDriverName() " + map.getDeviceDriverName()); System.out.println("Robot " + myAgent.getName() + " map.getTimestamp() " + map.getTimestamp()); while (map.isDataReady() == false) { try { map.requestMapInformation(); System.out.println("Robot " + myAgent.getName() + " map.isDataReady() " + map.isDataReady()); Thread.sleep(20); } catch (InterruptedException e) { e.printStackTrace(); } } mapInfo = map.getData(); System.out.println("Robot " + myAgent.getName() + " MapInfo = " + mapInfo.toString()); System.out.println("Robot " + myAgent.getName() + " Map data ready!"); // Request map description and wait until it is ready int w = mapInfo.getWidth(); System.out.println("Robot " + myAgent.getName() + " new PlayerMapData()"); PlayerMapData pmd = new PlayerMapData(); pmd.setWidth(mapInfo.getWidth()); pmd.setHeight(mapInfo.getHeight()); pmd.setRow(0); pmd.setCol(0); System.out.println("Robot " + myAgent.getName() + " pmd.toString()" + pmd.toString()); map.requestMapData(pmd); System.out.println("Robot " + myAgent.getName() + " map.isGridDataReady()" + map.isGridDataReady()); while (map.isGridDataReady() == false) { try { Thread.sleep(20); } catch (InterruptedException e) { e.printStackTrace(); } } map.requestMapDataVector(); PlayerMapData mapData = map.getGridData(); int imgWidth = mapInfo.getWidth(); int imgHeight = mapInfo.getHeight(); if (imgWidth * imgHeight != mapData.getData_count()) { System.err .println("NavigatorExample: map grid size and given data not matching"); System.exit(1); } currStatus = NavStatus.NEW_GOAL; System.out.println("Robot " + myAgent.getName() + " Current Status : " + currStatus); //and code continues similar to the navigator example as far as the navigation is concerned ..... the corresponding output is : Robot Navigation1@testPlatform my map = javaclient3.MapInterface@be4ae Robot Navigation1 my event transporter received Pose = PlayerPose2d { -2.12, -2.81, 2.06} Robot Navigation1@testPlatform New Goal : (-2.12,-2.81,2.06) Robot Navigation1@testPlatform false Robot Navigation1@testPlatform map.getDeviceDriverName() mapfile Robot Navigation1@testPlatform map.getTimestamp() 0.0 Robot Navigation1@testPlatform map.isDataReady() false Robot Navigation1@testPlatform map.isDataReady() false Robot Navigation1@testPlatform map.isDataReady() false Robot Navigation1@testPlatform map.isDataReady() false Robot Navigation1@testPlatform map.isDataReady() false Robot Navigation1@testPlatform map.isDataReady() false Robot Navigation1@testPlatform map.isDataReady() false Robot Navigation1@testPlatform map.isDataReady() false Robot Navigation1@testPlatform map.isDataReady() false Robot Navigation1@testPlatform map.isDataReady() false Robot Navigation1@testPlatform map.isDataReady() false Robot Navigation1@testPlatform map.isDataReady() false Robot Navigation1@testPlatform map.isDataReady() false Robot Navigation1@testPlatform MapInfo = javaclient3.structures.map.PlayerMapInfo@19776d7 Robot Navigation1@testPlatform Map data ready! Robot Navigation1@testPlatform new PlayerMapData() Robot Navigation1@testPlatform pmd.toString()javaclient3.structures.map.PlayerMapData@17f1661 Robot Navigation1@testPlatform map.isGridDataReady()false Sep 04, 2011 4:40:25 AM javaclient3.PlayerException <init> SEVERE: [Map] : Error uncompressing payload: java.util.zip.DataFormatException: incorrect header check Exception in thread "Thread-27" javaclient3.PlayerException: [Map] : Error uncompressing payload: java.util.zip.DataFormatException: incorrect header check at javaclient3.MapInterface.handleResponse(MapInterface.java:334) at javaclient3.PlayerClient.handleRequestsDevice(PlayerClient.java:1197) at javaclient3.PlayerClient.read(PlayerClient.java:891) at javaclient3.PlayerClient.read(PlayerClient.java:827) at javaclient3.PlayerClient.run(PlayerClient.java:268) Caused by: java.util.zip.DataFormatException: incorrect header check at java.util.zip.Inflater.inflateBytes(Native Method) at java.util.zip.Inflater.inflate(Inflater.java:256) at java.util.zip.Inflater.inflate(Inflater.java:274) at javaclient3.MapInterface.handleResponse(MapInterface.java:253) ... 4 more thread 27 stack trace: Thread [Thread-27] (Suspended (exception DataFormatException)) Inflater.inflateBytes(long, byte[], int, int) line: not available [native method] Inflater.inflate(byte[], int, int) line: 256 Inflater.inflate(byte[]) line: 274 MapInterface.handleResponse(PlayerMsgHdr) line: 253 PlayerClient.handleRequestsDevice(PlayerMsgHdr) line: 1197 PlayerClient.read(int, int) line: 891 PlayerClient.read() line: 827 PlayerClient.run() line: 268 |
From: Alexander L. <lam...@gm...> - 2011-06-06 21:40:21
|
Hi all, I was reading through the code in PlayerClient.java and I saw getRequestedDevice [1]. It checks readyRequestDevice, which after the first call to getRequestedDevice, will be always true thereafter. Shouldn't this be replaced with a call to isReadyRequestDevice() instead? [1]: getRequestedDevice() /** * Returns an object of type PlayerDevice containing the requested device. * @param interf requested interface * @param index requested index * @return a PlayerDevice object containing the requested device */ private PlayerDevice getRequestedDevice (int interf, int index) { while (!readyRequestDevice); PlayerDevAddr pda = newpd.getDeviceAddress (); if ((pda.getInterf () == interf) && (pda.getIndex () == index)) return newpd; else return null; } -- Alexander Lam |
From: Jorge S. S. <jsa...@gm...> - 2011-05-14 19:11:20
|
Thank you very much, Dustin. I have completed and committed the code, but I did´t test the interface, so be cautious when using it at the beginning! In particular, I read/ write twice the data_count integer, as in other arrays, but I´m not sure if that must be the case in OpaqueInterface, so the first time you use the interface, ensure that the first four bytes are real user-defined data and not the data_count value. Dustin, I followed the thread you started in player-users about this interface and I agree with your final conclusion. Jorge 2011/5/13 Dustin Webb <dus...@ya...>: > Jorge: > I think I have the OpaqueInterface working. I had to modify 3 files and make > 1. I modified: > javaclient3/OpaqueInterface.java > javaclient3/PlayerClient.java > javaclient3/structures/PlayerConstants.java > These changes are in the attached opaque.diff. > > I made: > javaclient3/structures/opaque/PlayerOpaqueData.java > It is also attached. > > While I have had one other peer review it it would be helpful if someone > more familiar with the project like yourself could do so. > HTH, > Dustin > > ________________________________ > From: Jorge Santos Simón <jsa...@gm...> > To: jav...@li... > Sent: Thursday, April 28, 2011 2:50 AM > Subject: Re: [Java-player-users] OpaqueInterface > > Sorry, OpaqueInterface is not implemented by now; it is just an > skeleton that you should extend to provide the appropriate > functionality for your device. > > I will implement OpaqueInterface as soon as I have enough time. > > Until then, you can take a look to the deprecated interface MCom; most > of the Opaque functionality is implemented there, I think. > > Best regards, > Jorge > > 2011/4/28 Dustin Webb <dus...@ya...>: >> We're attempting to use the OpaqueInterface however the server doesn't >> appear to be receiving the data. Is OpaqueInterface a known working >> interface? >> >> TIA, >> Dustin >> >> ------------------------------------------------------------------------------ >> WhatsUp Gold - Download Free Network Management Software >> The most intuitive, comprehensive, and cost-effective network >> management toolset available today. Delivers lowest initial >> acquisition cost and overall TCO of any competing solution. >> http://p.sf.net/sfu/whatsupgold-sd >> _______________________________________________ >> Java-player-users mailing list >> Jav...@li... >> https://lists.sourceforge.net/lists/listinfo/java-player-users >> >> > > ------------------------------------------------------------------------------ > WhatsUp Gold - Download Free Network Management Software > The most intuitive, comprehensive, and cost-effective network > management toolset available today. Delivers lowest initial > acquisition cost and overall TCO of any competing solution. > http://p.sf.net/sfu/whatsupgold-sd > _______________________________________________ > Java-player-users mailing list > Jav...@li... > https://lists.sourceforge.net/lists/listinfo/java-player-users > > > > ------------------------------------------------------------------------------ > Achieve unprecedented app performance and reliability > What every C/C++ and Fortran developer should know. > Learn how Intel has extended the reach of its next-generation tools > to help boost performance applications - inlcuding clusters. > http://p.sf.net/sfu/intel-dev2devmay > _______________________________________________ > Java-player-users mailing list > Jav...@li... > https://lists.sourceforge.net/lists/listinfo/java-player-users > > |
From: Dustin W. <dus...@ya...> - 2011-05-13 04:17:06
|
/* * Player Java Client 3 - PlayerOpaqueData.java * Copyright (C) 2006 Radu Bogdan Rusu, Dustin Webb * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * * */ package javaclient3.structures.opaque; import javaclient3.structures.*; /** * Data: state (PLAYER_OPAQUE_DATA_STATE) * The opaque interface returns a byte array. * @author Radu Bogdan Rusu, Dustin Webb * @version * <ul> * <li>v3.0 - Player 3.0 supported * </ul> */ public class PlayerOpaqueData implements PlayerConstants { // the data [d] private byte[] data; /** * @return number of data points */ public synchronized int getData_count () { return (this.data == null)?0:data.length; } /** * @return the data [d] */ public synchronized byte[] getData () { return this.data; } /** * @param newData the data [d] */ public synchronized void setData (byte[] newData) { this.data = newData; } } |
From: Jorge S. S. <jsa...@gm...> - 2011-05-04 21:33:15
|
You are right! Stupid error from my part.... Changes commited Thanks 2011/5/4 John Daniels <joh...@gm...>: > Attached is the diff from the current revision. The issue is that you need > to read off 4 + 4*voltageCount bytes to pass to decodeFloatVector, because > it is expecting a length and voltageCount floats. Note that the uint for the > voltageCounts appears twice, in the main header and as a header for the > vector of floats itself. > > On Wed, May 4, 2011 at 3:18 PM, Dustin Webb <dus...@ya...> wrote: >> >> Jorge: >> That did not work. However John Daniels is going to reply momentarily with >> the fix. >> Cheers, >> Dustin >> ________________________________ >> From: Jorge Santos Simón <jsa...@gm...> >> To: jav...@li... >> Sent: Wednesday, May 4, 2011 2:38 PM >> Subject: Re: [Java-player-users] AIOInterface Question >> >> Hello Dustin, >> >> Yes, definitively there something wrong there. I have commited a >> (hopefully) fixed version of the interface. >> Can you try it and report if it works? >> >> Thank you a lot >> >> >> 2011/5/4 Dustin Webb <dus...@ya...>: >> > We're attempting to read data from a PhidgetsIFK via the AIOInterface. >> > However it appears the readData function in AIOInterface is incorrect. >> > It >> > reads 8 bytes for the header and immediately drops 4. Then when it >> > proceeds >> > to decode the float vector it tries to get a length that doesn't appear >> > to >> > be in the data stream. Are we misinterpreting what we're seeing? Is this >> > a >> > known working class? We can bring it up to date if it's not been done >> > already. >> > >> > TIA, >> > Dustin >> > >> > >> > ------------------------------------------------------------------------------ >> > WhatsUp Gold - Download Free Network Management Software >> > The most intuitive, comprehensive, and cost-effective network >> > management toolset available today. Delivers lowest initial >> > acquisition cost and overall TCO of any competing solution. >> > http://p.sf.net/sfu/whatsupgold-sd >> > _______________________________________________ >> > Java-player-users mailing list >> > Jav...@li... >> > https://lists.sourceforge.net/lists/listinfo/java-player-users >> > >> > >> >> >> ------------------------------------------------------------------------------ >> WhatsUp Gold - Download Free Network Management Software >> The most intuitive, comprehensive, and cost-effective network >> management toolset available today. Delivers lowest initial >> acquisition cost and overall TCO of any competing solution. >> http://p.sf.net/sfu/whatsupgold-sd >> _______________________________________________ >> Java-player-users mailing list >> Jav...@li... >> https://lists.sourceforge.net/lists/listinfo/java-player-users >> >> >> >> >> ------------------------------------------------------------------------------ >> WhatsUp Gold - Download Free Network Management Software >> The most intuitive, comprehensive, and cost-effective network >> management toolset available today. Delivers lowest initial >> acquisition cost and overall TCO of any competing solution. >> http://p.sf.net/sfu/whatsupgold-sd >> _______________________________________________ >> Java-player-users mailing list >> Jav...@li... >> https://lists.sourceforge.net/lists/listinfo/java-player-users >> > > > > -- > > John Daniels > > ------------------------------------------------------------------------------ > WhatsUp Gold - Download Free Network Management Software > The most intuitive, comprehensive, and cost-effective network > management toolset available today. Delivers lowest initial > acquisition cost and overall TCO of any competing solution. > http://p.sf.net/sfu/whatsupgold-sd > _______________________________________________ > Java-player-users mailing list > Jav...@li... > https://lists.sourceforge.net/lists/listinfo/java-player-users > > |
From: Dustin W. <dus...@ya...> - 2011-05-04 21:19:06
|
Jorge: That did not work. However John Daniels is going to reply momentarily with the fix. Cheers, Dustin ________________________________ From: Jorge Santos Simón <jsa...@gm...> To: jav...@li... Sent: Wednesday, May 4, 2011 2:38 PM Subject: Re: [Java-player-users] AIOInterface Question Hello Dustin, Yes, definitively there something wrong there. I have commited a (hopefully) fixed version of the interface. Can you try it and report if it works? Thank you a lot 2011/5/4 Dustin Webb <dus...@ya...>: > We're attempting to read data from a PhidgetsIFK via the AIOInterface. > However it appears the readData function in AIOInterface is incorrect. It > reads 8 bytes for the header and immediately drops 4. Then when it proceeds > to decode the float vector it tries to get a length that doesn't appear to > be in the data stream. Are we misinterpreting what we're seeing? Is this a > known working class? We can bring it up to date if it's not been done > already. > > TIA, > Dustin > > ------------------------------------------------------------------------------ > WhatsUp Gold - Download Free Network Management Software > The most intuitive, comprehensive, and cost-effective network > management toolset available today. Delivers lowest initial > acquisition cost and overall TCO of any competing solution. > http://p.sf.net/sfu/whatsupgold-sd > _______________________________________________ > Java-player-users mailing list > Jav...@li... > https://lists.sourceforge.net/lists/listinfo/java-player-users > > ------------------------------------------------------------------------------ WhatsUp Gold - Download Free Network Management Software The most intuitive, comprehensive, and cost-effective network management toolset available today. Delivers lowest initial acquisition cost and overall TCO of any competing solution. http://p.sf.net/sfu/whatsupgold-sd _______________________________________________ Java-player-users mailing list Jav...@li... https://lists.sourceforge.net/lists/listinfo/java-player-users |
From: Jorge S. S. <jsa...@gm...> - 2011-05-04 20:38:23
|
Hello Dustin, Yes, definitively there something wrong there. I have commited a (hopefully) fixed version of the interface. Can you try it and report if it works? Thank you a lot 2011/5/4 Dustin Webb <dus...@ya...>: > We're attempting to read data from a PhidgetsIFK via the AIOInterface. > However it appears the readData function in AIOInterface is incorrect. It > reads 8 bytes for the header and immediately drops 4. Then when it proceeds > to decode the float vector it tries to get a length that doesn't appear to > be in the data stream. Are we misinterpreting what we're seeing? Is this a > known working class? We can bring it up to date if it's not been done > already. > > TIA, > Dustin > > ------------------------------------------------------------------------------ > WhatsUp Gold - Download Free Network Management Software > The most intuitive, comprehensive, and cost-effective network > management toolset available today. Delivers lowest initial > acquisition cost and overall TCO of any competing solution. > http://p.sf.net/sfu/whatsupgold-sd > _______________________________________________ > Java-player-users mailing list > Jav...@li... > https://lists.sourceforge.net/lists/listinfo/java-player-users > > |
From: Dustin W. <dus...@ya...> - 2011-05-04 17:25:13
|
We're attempting to read data from a PhidgetsIFK via the AIOInterface. However it appears the readData function in AIOInterface is incorrect. It reads 8 bytes for the header and immediately drops 4. Then when it proceeds to decode the float vector it tries to get a length that doesn't appear to be in the data stream. Are we misinterpreting what we're seeing? Is this a known working class? We can bring it up to date if it's not been done already. TIA, Dustin |
From: Jorge S. S. <jsa...@gm...> - 2011-04-28 08:50:09
|
Sorry, OpaqueInterface is not implemented by now; it is just an skeleton that you should extend to provide the appropriate functionality for your device. I will implement OpaqueInterface as soon as I have enough time. Until then, you can take a look to the deprecated interface MCom; most of the Opaque functionality is implemented there, I think. Best regards, Jorge 2011/4/28 Dustin Webb <dus...@ya...>: > We're attempting to use the OpaqueInterface however the server doesn't > appear to be receiving the data. Is OpaqueInterface a known working > interface? > > TIA, > Dustin > ------------------------------------------------------------------------------ > WhatsUp Gold - Download Free Network Management Software > The most intuitive, comprehensive, and cost-effective network > management toolset available today. Delivers lowest initial > acquisition cost and overall TCO of any competing solution. > http://p.sf.net/sfu/whatsupgold-sd > _______________________________________________ > Java-player-users mailing list > Jav...@li... > https://lists.sourceforge.net/lists/listinfo/java-player-users > > |