From smobley at broncos.uncfsu.edu Wed Feb 2 11:21:56 2011 From: smobley at broncos.uncfsu.edu (sean mobley) Date: Wed, 2 Feb 2011 11:21:56 -0500 Subject: [Aria-users] ArTime Message-ID: hey, does anyone here have experience with using the ArTime() class? I'm trying to get the robot to perform task in a certain timeframe. I'm not quite sure how to call the members/method of the ArTime() class Sean Mobley Fayettville State University Computer Science '2010 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.mobilerobots.com/pipermail/aria-users/attachments/20110202/4d7dcb5f/attachment.html From Reed.Hedges at Adept.com Wed Feb 2 14:02:50 2011 From: Reed.Hedges at Adept.com (Reed Hedges) Date: Wed, 2 Feb 2011 11:02:50 -0800 Subject: [Aria-users] Problem about MobileSim on Windows 7 64 bits Home premium In-Reply-To: <722313733.1456941296395407067.JavaMail.root@zcs-mbs03.it.mtu.edu> References: <722313733.1456941296395407067.JavaMail.root@zcs-mbs03.it.mtu.edu> Message-ID: <38B0EB303E4E804F8A93B5CFA8FFF15F02C2959B18@SRV-APP-6.adept.local> Hello, MobileSim has bugs on Windows 7, I hope to get a chance to work on them soon. Does it also crash if you turn off all rendering of graphics by deselecting "Show Polygons" from the View menu? Can you also try running it in a command shell and copying and pasting its output there? Also, is your system set to run in English or another language? Thanks -- Reed Hedges Research Support and Software Adept Technology Inc. - Mobile Robots reed.hedges at adept.com http://www.mobilerobots.com - http://www.adept.com For documentation and support, visit http://robots.mobilerobots.com ________________________________________ From: aria-users-bounces at lists.mobilerobots.com [aria-users-bounces at lists.mobilerobots.com] On Behalf Of Yuenyong Nilsiam [ynilsiam at mtu.edu] Sent: Sunday, January 30, 2011 8:50 AM To: ariausers Subject: [Aria-users] Problem about MobileSim on Windows 7 64 bits Home premium Dear all, I installed MobileSim on windows 7 64 bits. I open the program and try to load map, then the program crash and close. I try many times, many maps, and with out map. They all crash and close. Would you please help me? Thank you very much. Yuenyong _______________________________________________ Aria-users mailing list Aria-users at lists.mobilerobots.com http://lists.mobilerobots.com/mailman/listinfo/aria-users To unsubscribe visit the above webpage or send an e-mail to: aria-users-leave at lists.mobilerobots.com Visit http://robots.mobilerobots.com for information including documentation, FAQ, tips, manuals, and software, firmware and driver downloads. Mailing list archives are at http://lists.mobilerobots.com/ -------------- next part -------------- A non-text attachment was scrubbed... Name: winmail.dat Type: application/ms-tnef Size: 4015 bytes Desc: not available Url : http://lists.mobilerobots.com/pipermail/aria-users/attachments/20110202/4ada360d/attachment-0001.bin From Reed.Hedges at Adept.com Wed Feb 2 16:03:57 2011 From: Reed.Hedges at Adept.com (Reed Hedges) Date: Wed, 2 Feb 2011 13:03:57 -0800 Subject: [Aria-users] How to use ARIA in Java In-Reply-To: References: Message-ID: <38B0EB303E4E804F8A93B5CFA8FFF15F02C2959B19@SRV-APP-6.adept.local> It looks like retrieving the values is not implemented in the wrapper, thanks for finding this. I'm looking at how to set this up in the wrapper, when I find out I'll let you know what to change in the swig wrapper definitions. Reed -- Reed Hedges Research Support and Software Adept Technology Inc. - Mobile Robots reed.hedges at adept.com http://www.mobilerobots.com - http://www.adept.com For documentation and support, visit http://robots.mobilerobots.com ________________________________________ From: aria-users-bounces at lists.mobilerobots.com [aria-users-bounces at lists.mobilerobots.com] On Behalf Of shishir kumar singh [shishir08 at gmail.com] Sent: Monday, January 31, 2011 4:29 AM To: ariausers Subject: [Aria-users] How to use ARIA in Java Dear All, Does anybody know how to extract values of x and y from method "public void getAdjusted(SWIGTYPE_p_int x, SWIGTYPE_p_int y)" of class ArJoyHandler. i didn't find any document on this issue. Even in the Wrapper provided by SWIG there is no method to extract the data from SWIGTYPE_p_int x, SWIGTYPE_p_int y ( these are for handling the pointers in java) . Thanks in advance -------------- next part -------------- A non-text attachment was scrubbed... Name: winmail.dat Type: application/ms-tnef Size: 3501 bytes Desc: not available Url : http://lists.mobilerobots.com/pipermail/aria-users/attachments/20110202/5fbb8ca2/attachment.bin From Reed.Hedges at Adept.com Wed Feb 2 16:10:29 2011 From: Reed.Hedges at Adept.com (Reed Hedges) Date: Wed, 2 Feb 2011 13:10:29 -0800 Subject: [Aria-users] Multiple AmigoBot Control via WiFi In-Reply-To: References: , Message-ID: <38B0EB303E4E804F8A93B5CFA8FFF15F02C2959B1B@SRV-APP-6.adept.local> Hi Andreas, Have you been able to find some more information or proceed in designing this? As Robin said, you can control two robots from the same program if you are connecting to each using a TCP connection (which is how you connect to AmigoBots) instead of a direct serial connection (which is how you connect to robots with onboard computers). Another approach is to have 2 separate control programs for each of the 2 robots, and have them exchange data over an IPC method (such as networking) or to use a third program as a central place to store and retrieve information. This approach is more complicated and is mainly useful when the robots have onboard computers to run their controlling software. Reed -- Reed Hedges Research Support and Software Adept Technology Inc. - Mobile Robots reed.hedges at adept.com http://www.mobilerobots.com - http://www.adept.com For documentation and support, visit http://robots.mobilerobots.com ________________________________________ From: aria-users-bounces at lists.mobilerobots.com [aria-users-bounces at lists.mobilerobots.com] On Behalf Of Andreas Schnieders [schnieders.a at googlemail.com] Sent: Monday, January 31, 2011 9:20 AM To: ariausers Subject: [Aria-users] Multiple AmigoBot Control via WiFi Hello mailing list, I'm a Bachelor Student working with AmigoBots for my final year project. I'm aiming on cooperative work of robots, but real autonomous cooperative work is - I feel - beyond the scope of my course and time limitation. So, I'm looking for approaches on something like: Use ARIA to simultaneously control (as a start) two Amigobots via WiFi, with continuous exchange of sonar data and movement data. Probably make them perform a specified task as well... Does anybody know about any existent approaches on things like that with the AmigoBots? Preventing me from "re-inventing the wheel"? Many thanks in advance, Andreas Schnieders -------------- next part -------------- A non-text attachment was scrubbed... Name: winmail.dat Type: application/ms-tnef Size: 4188 bytes Desc: not available Url : http://lists.mobilerobots.com/pipermail/aria-users/attachments/20110202/17014b02/attachment.bin From Reed.Hedges at Adept.com Thu Feb 3 10:03:01 2011 From: Reed.Hedges at Adept.com (Reed Hedges) Date: Thu, 3 Feb 2011 07:03:01 -0800 Subject: [Aria-users] C++,Cygwin and Aria In-Reply-To: References: Message-ID: <38B0EB303E4E804F8A93B5CFA8FFF15F02C287C5BC@SRV-APP-6.adept.local> Hi Sean, The main issue is that right now most of ARIA source code assumes that if you are on Windows (i.e. WIN32 is defined in the preprocessor), then you are going to be using Visual Studio to compile it (for example, when choosing which system library APIs to include and use, such as networking sockets or threads). If you are building on Cygwin, you will generally want to use the POSIX system APIs, but perhaps with some exceptions. So if you want to do this, let me know and I can give some more details on what to look for and change. Reed From: aria-users-bounces at lists.mobilerobots.com [mailto:aria-users-bounces at lists.mobilerobots.com] On Behalf Of sean mobley Sent: Wednesday, January 19, 2011 11:13 AM To: ariausers Subject: [Aria-users] C++,Cygwin and Aria Hi, I was wondering if any of you had experience with using Cygwin to compile C++, and how you went about important the necesary libtaries and dll's. Sean Mobley Fayettville State University Computer Science '2010 -------------- next part -------------- A non-text attachment was scrubbed... Name: winmail.dat Type: application/ms-tnef Size: 8489 bytes Desc: not available Url : http://lists.mobilerobots.com/pipermail/aria-users/attachments/20110203/1c68ec2f/attachment-0001.bin From haimat at gmail.com Thu Feb 3 14:07:26 2011 From: haimat at gmail.com (Matthias F. Brandstetter) Date: Thu, 3 Feb 2011 20:07:26 +0100 Subject: [Aria-users] Aria: Received signal 'SIGSEGV'. Exiting. Message-ID: Hello all, I am new to Aria, so first a "hello" from my side :) Now I tried to develop a small test program (an ArAction) in order to control a simulated p3dx robot via MobileSim. Development takes place under Ubuntu 10.10, using gcc 4.4.5. Making (compiling) my code works fine, without errors. I can also set the desired speed for example in my ArAction's fire() method, and the simulation is also working as desired. But, unfortunately, I can't use the ArRobot object attached to the ArAction I am overriding. The problem is that none of the member functions of the ArRobot object seems to work. For example, calling getVel() or getCompass() always returns a zero value. And when I call the hasFrontBumpers() the program even crashes with the error message mentioned in the subject of this mail. As soon as I remove this method call and recompile the error is also gone again... Any ideas what I am missing here -- is it a problem with my coding, or with the simulation environment? Thanks in advance for your help! Kind regards, Matthias Here is the relevant code that leads to the crash: //////////////////////////////////////////////////////////////////////////////////////////////////////// ArActionDesired * forward::fire(ArActionDesired d) { desiredState.reset(); ArRobot *r = getRobot(); if(r == NULL) { printf("ArRobot = NULL\n"); deactivate(); return &desiredState; } printf("ok, ArRobot is not NULL, check for bumpers...\n"); r->hasFrontBumpers(); return &desiredState; } //////////////////////////////////////////////////////////////////////////////////////////////////////// -- Matthias F. Brandstetter haimat at gmail.com From Reed.Hedges at Adept.com Fri Feb 4 12:03:17 2011 From: Reed.Hedges at Adept.com (Reed Hedges) Date: Fri, 4 Feb 2011 09:03:17 -0800 Subject: [Aria-users] ArTime In-Reply-To: References: Message-ID: <38B0EB303E4E804F8A93B5CFA8FFF15F02C2A0FB2E@SRV-APP-6.adept.local> Hi Sean, The most commonly used methods in ArTime are setToNow() and mSecsSince(). Think of it like a stop watch. setToNow() resets an ArTime object; then mSecSince() returns the time elapsed (in milliseconds) since the ArTime object was reset with setToNow(). The other methods in ArTime are variations on this idea. For example, ArTime t; ArUtil::sleep(5000); // sleep for 5 seconds printf("%f ms\n", t.mSecSince()); // will output about 5000 ms (maybe a few ms more) t.setToNow(); ArUtil::sleep(1000); // sleep for 1 second printf("%f ms\n", t.mSecSince()); // will output about 1000 ms (maybe a few ms more) If I want to do some action periodically, I normally just check whether my desired interval has elapsed. This can go in a loop, or in something like an ArRobot user task callback which is itself called periodically. From: aria-users-bounces at lists.mobilerobots.com [mailto:aria-users-bounces at lists.mobilerobots.com] On Behalf Of sean mobley Sent: Wednesday, February 02, 2011 11:22 AM To: ariausers Subject: [Aria-users] ArTime hey, does anyone here have experience with using the ArTime() class? I'm trying to get the robot to perform task in a certain timeframe. I'm not quite sure how to call the members/method of the ArTime() class Sean Mobley Fayettville State University Computer Science '2010 -------------- next part -------------- A non-text attachment was scrubbed... Name: winmail.dat Type: application/ms-tnef Size: 12656 bytes Desc: not available Url : http://lists.mobilerobots.com/pipermail/aria-users/attachments/20110204/7bf89a2d/attachment.bin From apozo001 at ucr.edu Tue Feb 8 17:32:43 2011 From: apozo001 at ucr.edu (angellopozo) Date: Tue, 08 Feb 2011 14:32:43 -0800 Subject: [Aria-users] Lockwarning and Arsync warnings Message-ID: <4D51C48B.5050101@ucr.edu> I want to know what the "LockWarning: locking ArPathplanningTask::myMutex" is referring too. Additionally, is there a method i could use to find out what specific ArRobot sync tasks are delaying execution? Our Setup: We have 3 robots: p3at, peoplebot, and patrol bots. Each is running windows XP on their internal computers. Our goal is to have each compute a location, then communicate that location to other robots, do some deliberation and then confirms are set to each robot to move to a location. From the image you can see that ReviewBids also took to long. ReviewBids is a recurring ArUserTask that checks a value and then tells the server to send data to a specific client. The function will not tell the server to send data on every call. The problem: I receive a fair amount of ArSync tasks too long warnings. is there some inspection method i can use to find out what function is taking long? What are possible reason arSync task gets delayed? What are some things i can possibly do to reduce these types of delays? Am i dong too much and hence the computer is unable to keep up? Additionally The lockwarning also pops up from time to time. Mostly on our patrol bot. But i would like to know what that warning means. Angello Pozo -------------- next part -------------- A non-text attachment was scrubbed... Name: ArSync LockWarning ReviewBids.png Type: image/png Size: 94148 bytes Desc: not available Url : http://lists.mobilerobots.com/pipermail/aria-users/attachments/20110208/4efe1ee5/attachment-0001.png From RHARLAN at sbu.edu Wed Feb 9 13:08:03 2011 From: RHARLAN at sbu.edu (Harlan, Robert) Date: Wed, 9 Feb 2011 13:08:03 -0500 Subject: [Aria-users] GUI using x-windows Message-ID: Aria Users: We are interested in building a simple GUI using x-windows and Linux. The problem that we are having is capturing a button click (the coordinates on the screen the user clicked). We are using the Peoplebot Touchscreen Version 2 and the PenMount DMC9000 driver. Does anyone have any sample code or even just snippets of code that they've used to capture this information? Thanks ***************************************** * Robert M. Harlan, Ph.D. * Professor of Computer Science * Department of Computer Science * St. Bonaventure University * St. Bonaventure, NY 14778 * Office: Walsh 111 * Email * Web Page * 716.375.2019 ***************************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.mobilerobots.com/pipermail/aria-users/attachments/20110209/9dba7e67/attachment.html From Reed.Hedges at Adept.com Wed Feb 9 16:00:40 2011 From: Reed.Hedges at Adept.com (Reed Hedges) Date: Wed, 9 Feb 2011 13:00:40 -0800 Subject: [Aria-users] Lockwarning and Arsync warnings In-Reply-To: <4D51C48B.5050101@ucr.edu> References: <4D51C48B.5050101@ucr.edu> Message-ID: <38B0EB303E4E804F8A93B5CFA8FFF15F02C54A10A1@SRV-APP-6.adept.local> Hi Angello, >From the output you attached it looks like sometimes your "ReviewBids" user task is taking almost 5 seconds to run, which is much longer than the ArRobot task cycle ought to run (it should match the rate at which the robot sends SIP packets, i.e. no more than 100ms.) So both warnings are coming from this problem. I would take a look at your ReviewBids task and see if there is a condition in which it does a long loop, long computation, or does any waiting or blocking calls which may be waiting for I/O (e.g. network IO from interrobot communications??) I don't think the lock warning is a problem, it's just a debugging tool that is on for some reason. It is just displaying how long a particular mutex lock operation is taking in ARNL-- if it was a long time then it would indicate other locks blocking, but if it's always 0ms or so then it's fine. -----Original Message----- From: aria-users-bounces at lists.mobilerobots.com [mailto:aria-users-bounces at lists.mobilerobots.com] On Behalf Of angellopozo Sent: Tuesday, February 08, 2011 5:33 PM To: ariausers Subject: [Aria-users] Lockwarning and Arsync warnings I want to know what the "LockWarning: locking ArPathplanningTask::myMutex" is referring too. Additionally, is there a method i could use to find out what specific ArRobot sync tasks are delaying execution? Our Setup: We have 3 robots: p3at, peoplebot, and patrol bots. Each is running windows XP on their internal computers. Our goal is to have each compute a location, then communicate that location to other robots, do some deliberation and then confirms are set to each robot to move to a location. From the image you can see that ReviewBids also took to long. ReviewBids is a recurring ArUserTask that checks a value and then tells the server to send data to a specific client. The function will not tell the server to send data on every call. The problem: I receive a fair amount of ArSync tasks too long warnings. is there some inspection method i can use to find out what function is taking long? What are possible reason arSync task gets delayed? What are some things i can possibly do to reduce these types of delays? Am i dong too much and hence the computer is unable to keep up? Additionally The lockwarning also pops up from time to time. Mostly on our patrol bot. But i would like to know what that warning means. Angello Pozo -------------- next part -------------- A non-text attachment was scrubbed... Name: winmail.dat Type: application/ms-tnef Size: 5017 bytes Desc: not available Url : http://lists.mobilerobots.com/pipermail/aria-users/attachments/20110209/f827cf0f/attachment.bin From Reed.Hedges at Adept.com Wed Feb 9 16:01:43 2011 From: Reed.Hedges at Adept.com (Reed Hedges) Date: Wed, 9 Feb 2011 13:01:43 -0800 Subject: [Aria-users] Aria: Received signal 'SIGSEGV'. Exiting. In-Reply-To: References: Message-ID: <38B0EB303E4E804F8A93B5CFA8FFF15F02C54A10A3@SRV-APP-6.adept.local> Hi Matthias, Did you recompile ARIA (and any other libraries such as ArNetworking) with GCC 4.4 as well? If not, then the problem could be due to binary (ABI) incompatibility between GCC 3.x and 4.x. Reed -----Original Message----- From: aria-users-bounces at lists.mobilerobots.com [mailto:aria-users-bounces at lists.mobilerobots.com] On Behalf Of Matthias F. Brandstetter Sent: Thursday, February 03, 2011 2:07 PM To: ariausers Subject: [Aria-users] Aria: Received signal 'SIGSEGV'. Exiting. Hello all, I am new to Aria, so first a "hello" from my side :) Now I tried to develop a small test program (an ArAction) in order to control a simulated p3dx robot via MobileSim. Development takes place under Ubuntu 10.10, using gcc 4.4.5. Making (compiling) my code works fine, without errors. I can also set the desired speed for example in my ArAction's fire() method, and the simulation is also working as desired. But, unfortunately, I can't use the ArRobot object attached to the ArAction I am overriding. The problem is that none of the member functions of the ArRobot object seems to work. For example, calling getVel() or getCompass() always returns a zero value. And when I call the hasFrontBumpers() the program even crashes with the error message mentioned in the subject of this mail. As soon as I remove this method call and recompile the error is also gone again... Any ideas what I am missing here -- is it a problem with my coding, or with the simulation environment? Thanks in advance for your help! Kind regards, Matthias Here is the relevant code that leads to the crash: //////////////////////////////////////////////////////////////////////////////////////////////////////// ArActionDesired * forward::fire(ArActionDesired d) { desiredState.reset(); ArRobot *r = getRobot(); if(r == NULL) { printf("ArRobot = NULL\n"); deactivate(); return &desiredState; } printf("ok, ArRobot is not NULL, check for bumpers...\n"); r->hasFrontBumpers(); return &desiredState; } //////////////////////////////////////////////////////////////////////////////////////////////////////// -- Matthias F. Brandstetter haimat at gmail.com _______________________________________________ Aria-users mailing list Aria-users at lists.mobilerobots.com http://lists.mobilerobots.com/mailman/listinfo/aria-users To unsubscribe visit the above webpage or send an e-mail to: aria-users-leave at lists.mobilerobots.com Visit http://robots.mobilerobots.com for information including documentation, FAQ, tips, manuals, and software, firmware and driver downloads. Mailing list archives are at http://lists.mobilerobots.com/ -------------- next part -------------- A non-text attachment was scrubbed... Name: winmail.dat Type: application/ms-tnef Size: 5359 bytes Desc: not available Url : http://lists.mobilerobots.com/pipermail/aria-users/attachments/20110209/87a95571/attachment-0001.bin From Reed.Hedges at Adept.com Wed Feb 9 16:03:22 2011 From: Reed.Hedges at Adept.com (Reed Hedges) Date: Wed, 9 Feb 2011 13:03:22 -0800 Subject: [Aria-users] GUI using x-windows In-Reply-To: References: Message-ID: <38B0EB303E4E804F8A93B5CFA8FFF15F02C54A10A4@SRV-APP-6.adept.local> Hi Robert, Are you using a GUI toolkit (such as GTK or Qt or similar), or just the plain X client library? The touchscreen should act like a mouse and provide mouse click events to your X client. You can test by running "xev" from a command line and touching the window that pops up. Events should be logged by xev including mouse movement and clicks. Reed From: aria-users-bounces at lists.mobilerobots.com [mailto:aria-users-bounces at lists.mobilerobots.com] On Behalf Of Harlan, Robert Sent: Wednesday, February 09, 2011 1:08 PM To: ariausers Cc: Gorman, David R. Subject: [Aria-users] GUI using x-windows Aria Users: We are interested in building a simple GUI using x-windows and Linux. The problem that we are having is capturing a button click (the coordinates on the screen the user clicked). We are using the Peoplebot Touchscreen Version 2 and the PenMount DMC9000 driver. Does anyone have any sample code or even just snippets of code that they've used to capture this information? Thanks ***************************************** * Robert M. Harlan, Ph.D. * Professor of Computer Science * Department of Computer Science * St. Bonaventure University * St. Bonaventure, NY 14778 * Office: Walsh 111 * Email * Web Page * 716.375.2019 ***************************************** -------------- next part -------------- A non-text attachment was scrubbed... Name: winmail.dat Type: application/ms-tnef Size: 8220 bytes Desc: not available Url : http://lists.mobilerobots.com/pipermail/aria-users/attachments/20110209/13988dc1/attachment.bin From RHARLAN at sbu.edu Fri Feb 11 11:03:31 2011 From: RHARLAN at sbu.edu (Harlan, Robert) Date: Fri, 11 Feb 2011 11:03:31 -0500 Subject: [Aria-users] GUI using x-windows In-Reply-To: <38B0EB303E4E804F8A93B5CFA8FFF15F02C54A10A4@SRV-APP-6.adept.local> References: <38B0EB303E4E804F8A93B5CFA8FFF15F02C54A10A4@SRV-APP-6.adept.local> Message-ID: Reed, Thanks, we will follow your suggestion. ***************************************** * Robert M. Harlan, Ph.D. * Professor of Computer Science * Department of Computer Science * St. Bonaventure University * St. Bonaventure, NY 14778 * Office: Walsh 111 * Email * Web Page * 716.375.2019 ***************************************** From: aria-users-bounces at lists.mobilerobots.com [mailto:aria-users-bounces at lists.mobilerobots.com] On Behalf Of Reed Hedges Sent: Wednesday, February 09, 2011 4:03 PM To: ariausers Cc: Gorman, David R. Subject: Re: [Aria-users] GUI using x-windows Hi Robert, Are you using a GUI toolkit (such as GTK or Qt or similar), or just the plain X client library? The touchscreen should act like a mouse and provide mouse click events to your X client. You can test by running "xev" from a command line and touching the window that pops up. Events should be logged by xev including mouse movement and clicks. Reed From: aria-users-bounces at lists.mobilerobots.com [mailto:aria-users-bounces at lists.mobilerobots.com] On Behalf Of Harlan, Robert Sent: Wednesday, February 09, 2011 1:08 PM To: ariausers Cc: Gorman, David R. Subject: [Aria-users] GUI using x-windows Aria Users: We are interested in building a simple GUI using x-windows and Linux. The problem that we are having is capturing a button click (the coordinates on the screen the user clicked). We are using the Peoplebot Touchscreen Version 2 and the PenMount DMC9000 driver. Does anyone have any sample code or even just snippets of code that they've used to capture this information? Thanks ***************************************** * Robert M. Harlan, Ph.D. * Professor of Computer Science * Department of Computer Science * St. Bonaventure University * St. Bonaventure, NY 14778 * Office: Walsh 111 * Email * Web Page * 716.375.2019 ***************************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.mobilerobots.com/pipermail/aria-users/attachments/20110211/e4a05303/attachment.html From apozo001 at ucr.edu Fri Feb 11 15:22:59 2011 From: apozo001 at ucr.edu (angellopozo) Date: Fri, 11 Feb 2011 12:22:59 -0800 Subject: [Aria-users] Lockwarning and Arsync warnings In-Reply-To: <38B0EB303E4E804F8A93B5CFA8FFF15F02C54A10A1@SRV-APP-6.adept.local> References: <4D51C48B.5050101@ucr.edu> <38B0EB303E4E804F8A93B5CFA8FFF15F02C54A10A1@SRV-APP-6.adept.local> Message-ID: <4D559AA3.9080409@ucr.edu> Given what you said, the delay is probably coming from my "SendConfirmToRobotX()" function. I use the ReviewBids function to check a timer, and if the timer has passed a computation is done and then one of several "SendConfirmToRobotX()" is called. The issue is that ReviewBids is a recurring ArUserTask function, and the "SendConfirmToRobotX()" takes too long. Is there a way i can call the "sendConfirmToRobotX()" function in an async matter from the main? Or create a thread for calling the "sendConfirmToRobotX()." My initial solution would be to have review bids output a vector. In main I create a function called "checkVector()" with a for loop that check the vector and calls whatever "SendConfirmToRobotX()" function. But the issue is that I do not know prior to the experimentation when the timer will be up. Hence I will be forced to incrementally have the "checkVector()" in main. I do not like this solution because randomly populating the main seems inefficient. Ideally, i would like my "ReviewBids()" to check the timer, and then set a flag for a specific robot. Then in some other thread, if possible, have the robot call the "SendConfirmToRobotX()." All the while leaving my main thread intact. Can i do something with the callbacks? If i have "ReviewBids" set a call back instead of directly calling the "SendConfirmToRobotX()" will the ReviewBids function thread close? Or will it be free? Angello Pozo But I have a fair amount of communication required in an async matter. What would you recommend i do? I already have the server and client running async. > ------------------------------------------------------------------------ > > Reed Hedges > February 9, 2011 1:00 PM > > > Hi Angello, > > >From the output you attached it looks like sometimes your > "ReviewBids" user task is taking almost 5 seconds to run, which is > much longer than the ArRobot task cycle ought to run (it should match > the rate at which the robot sends SIP packets, i.e. no more than > 100ms.) So both warnings are coming from this problem. I would take a > look at your ReviewBids task and see if there is a condition in which > it does a long loop, long computation, or does any waiting or blocking > calls which may be waiting for I/O (e.g. network IO from interrobot > communications??) > > I don't think the lock warning is a problem, it's just a debugging > tool that is on for some reason. It is just displaying how long a > particular mutex lock operation is taking in ARNL-- if it was a long > time then it would indicate other locks blocking, but if it's always > 0ms or so then it's fine. > > > -----Original Message----- > From: aria-users-bounces at lists.mobilerobots.com > [mailto:aria-users-bounces at lists.mobilerobots.com] On Behalf Of > angellopozo > Sent: Tuesday, February 08, 2011 5:33 PM > To: ariausers > Subject: [Aria-users] Lockwarning and Arsync warnings > > I want to know what the "LockWarning: locking > ArPathplanningTask::myMutex" is referring too. Additionally, is there > a method i could use to find out what specific ArRobot sync tasks are > delaying execution? > > Our Setup: > > We have 3 robots: p3at, peoplebot, and patrol bots. Each is running > windows XP on their internal computers. Our goal is to have each > compute a location, then communicate that location to other robots, do > some deliberation and then confirms are set to each robot to move to a > location. From the image you can see that ReviewBids also took to long. > ReviewBids is a recurring ArUserTask that checks a value and then > tells the server to send data to a specific client. The function will > not tell the server to send data on every call. > > The problem: > > I receive a fair amount of ArSync tasks too long warnings. is there > some inspection method i can use to find out what function is taking > long? > What are possible reason arSync task gets delayed? What are some > things i can possibly do to reduce these types of delays? Am i dong > too much and hence the computer is unable to keep up? > > Additionally The lockwarning also pops up from time to time. Mostly on > our patrol bot. But i would like to know what that warning means. > > Angello Pozo > > > > _______________________________________________ > Aria-users mailing list > Aria-users at lists.mobilerobots.com > http://lists.mobilerobots.com/mailman/listinfo/aria-users > > To unsubscribe visit the above webpage or send an e-mail to: > > aria-users-leave at lists.mobilerobots.com > > Visit http://robots.mobilerobots.com for information including > documentation, FAQ, tips, manuals, and software, firmware and driver > downloads. > > Mailing list archives are at http://lists.mobilerobots.com/ > ------------------------------------------------------------------------ > > angellopozo > February 8, 2011 2:32 PM > > > I want to know what the "LockWarning: locking > ArPathplanningTask::myMutex" is referring too. Additionally, is there > a method i could use to find out what specific ArRobot sync tasks are > delaying execution? > > Our Setup: > > We have 3 robots: p3at, peoplebot, and patrol bots. Each is running > windows XP on their internal computers. Our goal is to have each > compute a location, then communicate that location to other robots, do > some deliberation and then confirms are set to each robot to move to a > location. From the image you can see that ReviewBids also took to > long. ReviewBids is a recurring ArUserTask that checks a value and > then tells the server to send data to a specific client. The function > will not tell the server to send data on every call. > > The problem: > > I receive a fair amount of ArSync tasks too long warnings. is there > some inspection method i can use to find out what function is taking > long? What are possible reason arSync task gets delayed? What are some > things i can possibly do to reduce these types of delays? Am i dong > too much and hence the computer is unable to keep up? > > Additionally The lockwarning also pops up from time to time. Mostly > on our patrol bot. But i would like to know what that warning means. > > Angello Pozo > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.mobilerobots.com/pipermail/aria-users/attachments/20110211/e58cda53/attachment-0001.html -------------- next part -------------- A non-text attachment was scrubbed... Name: compose-unknown-contact.jpg Type: image/jpeg Size: 1421 bytes Desc: not available Url : http://lists.mobilerobots.com/pipermail/aria-users/attachments/20110211/e58cda53/attachment-0001.jpg From Reed.Hedges at Adept.com Fri Feb 11 16:18:35 2011 From: Reed.Hedges at Adept.com (Reed Hedges) Date: Fri, 11 Feb 2011 13:18:35 -0800 Subject: [Aria-users] Lockwarning and Arsync warnings In-Reply-To: <4D559AA3.9080409@ucr.edu> References: <4D51C48B.5050101@ucr.edu> <38B0EB303E4E804F8A93B5CFA8FFF15F02C54A10A1@SRV-APP-6.adept.local> <4D559AA3.9080409@ucr.edu> Message-ID: <38B0EB303E4E804F8A93B5CFA8FFF15F02C54A13CB@SRV-APP-6.adept.local> An ArCondition object is a condition variable which can be used to signal one thread from another which blocks waiting for that signal. For example, the main thread or another thread would wait for the ArCondition to be signaled, after which it checks the vector and sends the data to the other robots, while ReviewBids in the user task would signal that ArCondition object when necessary. Or, if the result of SendConfirmToRobotX() is not necessary for the rest of the ReviewBids task to execute afterwards, you can create a new thread which does that work and then ends when done (see the ArASyncTask class), and just create that thread and forget about it ("fire and forget"). Reed From: aria-users-bounces at lists.mobilerobots.com [mailto:aria-users-bounces at lists.mobilerobots.com] On Behalf Of angellopozo Sent: Friday, February 11, 2011 3:23 PM To: ariausers Subject: Re: [Aria-users] Lockwarning and Arsync warnings Given what you said, the delay is probably coming from my "SendConfirmToRobotX()" function. I use the ReviewBids function to check a timer, and if the timer has passed a computation is done and then one of several "SendConfirmToRobotX()" is called. The issue is that ReviewBids is a recurring ArUserTask function, and the "SendConfirmToRobotX()" takes too long. Is there a way i can call the "sendConfirmToRobotX()" function in an async matter from the main? Or create a thread for calling the "sendConfirmToRobotX()." My initial solution would be to have review bids output a vector. In main I create a function called "checkVector()" with a for loop that check the vector and calls whatever "SendConfirmToRobotX()" function. But the issue is that I do not know prior to the experimentation when the timer will be up. Hence I will be forced to incrementally have the "checkVector()" in main. I do not like this solution because randomly populating the main seems inefficient. Ideally, i would like my "ReviewBids()" to check the timer, and then set a flag for a specific robot. Then in some other thread, if possible, have the robot call the "SendConfirmToRobotX()." All the while leaving my main thread intact. Can i do something with the callbacks? If i have "ReviewBids" set a call back instead of directly calling the "SendConfirmToRobotX()" will the ReviewBids function thread close? Or will it be free? Angello Pozo But I have a fair amount of communication required in an async matter. What would you recommend i do? I already have the server and client running async. ________________________________ [cid:image001.jpg at 01CBCA07.55000E80] Reed Hedges February 9, 2011 1:00 PM Hi Angello, >From the output you attached it looks like sometimes your "ReviewBids" user task is taking almost 5 seconds to run, which is much longer than the ArRobot task cycle ought to run (it should match the rate at which the robot sends SIP packets, i.e. no more than 100ms.) So both warnings are coming from this problem. I would take a look at your ReviewBids task and see if there is a condition in which it does a long loop, long computation, or does any waiting or blocking calls which may be waiting for I/O (e.g. network IO from interrobot communications??) I don't think the lock warning is a problem, it's just a debugging tool that is on for some reason. It is just displaying how long a particular mutex lock operation is taking in ARNL-- if it was a long time then it would indicate other locks blocking, but if it's always 0ms or so then it's fine. -----Original Message----- From: aria-users-bounces at lists.mobilerobots.com [mailto:aria-users-bounces at lists.mobilerobots.com] On Behalf Of angellopozo Sent: Tuesday, February 08, 2011 5:33 PM To: ariausers Subject: [Aria-users] Lockwarning and Arsync warnings I want to know what the "LockWarning: locking ArPathplanningTask::myMutex" is referring too. Additionally, is there a method i could use to find out what specific ArRobot sync tasks are delaying execution? Our Setup: We have 3 robots: p3at, peoplebot, and patrol bots. Each is running windows XP on their internal computers. Our goal is to have each compute a location, then communicate that location to other robots, do some deliberation and then confirms are set to each robot to move to a location. From the image you can see that ReviewBids also took to long. ReviewBids is a recurring ArUserTask that checks a value and then tells the server to send data to a specific client. The function will not tell the server to send data on every call. The problem: I receive a fair amount of ArSync tasks too long warnings. is there some inspection method i can use to find out what function is taking long? What are possible reason arSync task gets delayed? What are some things i can possibly do to reduce these types of delays? Am i dong too much and hence the computer is unable to keep up? Additionally The lockwarning also pops up from time to time. Mostly on our patrol bot. But i would like to know what that warning means. Angello Pozo _______________________________________________ Aria-users mailing list Aria-users at lists.mobilerobots.com http://lists.mobilerobots.com/mailman/listinfo/aria-users To unsubscribe visit the above webpage or send an e-mail to: aria-users-leave at lists.mobilerobots.com Visit http://robots.mobilerobots.com for information including documentation, FAQ, tips, manuals, and software, firmware and driver downloads. Mailing list archives are at http://lists.mobilerobots.com/ ________________________________ [cid:image001.jpg at 01CBCA07.55000E80] angellopozo February 8, 2011 2:32 PM I want to know what the "LockWarning: locking ArPathplanningTask::myMutex" is referring too. Additionally, is there a method i could use to find out what specific ArRobot sync tasks are delaying execution? Our Setup: We have 3 robots: p3at, peoplebot, and patrol bots. Each is running windows XP on their internal computers. Our goal is to have each compute a location, then communicate that location to other robots, do some deliberation and then confirms are set to each robot to move to a location. From the image you can see that ReviewBids also took to long. ReviewBids is a recurring ArUserTask that checks a value and then tells the server to send data to a specific client. The function will not tell the server to send data on every call. The problem: I receive a fair amount of ArSync tasks too long warnings. is there some inspection method i can use to find out what function is taking long? What are possible reason arSync task gets delayed? What are some things i can possibly do to reduce these types of delays? Am i dong too much and hence the computer is unable to keep up? Additionally The lockwarning also pops up from time to time. Mostly on our patrol bot. But i would like to know what that warning means. Angello Pozo -------------- next part -------------- A non-text attachment was scrubbed... Name: winmail.dat Type: application/ms-tnef Size: 18011 bytes Desc: not available Url : http://lists.mobilerobots.com/pipermail/aria-users/attachments/20110211/b1630b53/attachment-0001.bin From angello.pozo at email.ucr.edu Mon Feb 14 03:29:17 2011 From: angello.pozo at email.ucr.edu (Angello Patricio Pozo) Date: Mon, 14 Feb 2011 00:29:17 -0800 Subject: [Aria-users] Lockwarning and Arsync warnings In-Reply-To: <38B0EB303E4E804F8A93B5CFA8FFF15F02C54A13CB@SRV-APP-6.adept.local> References: <4D51C48B.5050101@ucr.edu> <38B0EB303E4E804F8A93B5CFA8FFF15F02C54A10A1@SRV-APP-6.adept.local> <4D559AA3.9080409@ucr.edu> <38B0EB303E4E804F8A93B5CFA8FFF15F02C54A13CB@SRV-APP-6.adept.local> Message-ID: I have a question about ArRecurringTask. If i redefine the task() to include be: task(){ //do something go()} Does the recurring task make a new thread, or does it exist in its own recurring task thread that was initially created? i think the answer is the latter. I ask because if i was thinking of creating an ArRecurringTask in my Client class. Hence the client class will have a normal thread A, and new ArRecurringTask thread B. If i call SendConfirmToRobotX() which is a client function from thread B, will it hold thread B or does it act as a signal to thread A? Thank you Angello Pozo On Fri, Feb 11, 2011 at 1:18 PM, Reed Hedges wrote: > > An ArCondition object is a condition variable which can be used to signal > one thread from another which blocks waiting for that signal. For example, > the main thread or another thread would wait for the ArCondition to be > signaled, after which it checks the vector and sends the data to the other > robots, while ReviewBids in the user task would signal that ArCondition > object when necessary. > > Or, if the result of SendConfirmToRobotX() is not necessary for the rest of > the ReviewBids task to execute afterwards, you can create a new thread which > does that work and then ends when done (see the ArASyncTask class), and just > create that thread and forget about it ("fire and forget"). > > Reed > > > > From: aria-users-bounces at lists.mobilerobots.com [mailto: > aria-users-bounces at lists.mobilerobots.com] On Behalf Of angellopozo > Sent: Friday, February 11, 2011 3:23 PM > To: ariausers > Subject: Re: [Aria-users] Lockwarning and Arsync warnings > > Given what you said, the delay is probably coming from my > "SendConfirmToRobotX()" function. I use the ReviewBids function to check a > timer, and if the timer has passed a computation is done and then one of > several "SendConfirmToRobotX()" is called. > > The issue is that ReviewBids is a recurring ArUserTask function, and the > "SendConfirmToRobotX()" takes too long. Is there a way i can call the > "sendConfirmToRobotX()" function in an async matter from the main? Or create > a thread for calling the "sendConfirmToRobotX()." > > My initial solution would be to have review bids output a vector. In main I > create a function called "checkVector()" with a for loop that check the > vector and calls whatever "SendConfirmToRobotX()" function. But the issue is > that I do not know prior to the experimentation when the timer will be up. > Hence I will be forced to incrementally have the "checkVector()" in main. I > do not like this solution because randomly populating the main seems > inefficient. > > Ideally, i would like my "ReviewBids()" to check the timer, and then set a > flag for a specific robot. Then in some other thread, if possible, have the > robot call the "SendConfirmToRobotX()." All the while leaving my main thread > intact. > > Can i do something with the callbacks? If i have "ReviewBids" set a call > back instead of directly calling the "SendConfirmToRobotX()" will the > ReviewBids function thread close? Or will it be free? > > Angello Pozo > > > > > > > > But I have a fair amount of communication required in an async matter. What > would you recommend i do? I already have the server and client running > async. > > > ________________________________ > > [cid:image001.jpg at 01CBCA07.55000E80] > > Reed Hedges > February 9, 2011 1:00 PM > > > Hi Angello, > > >From the output you attached it looks like sometimes your "ReviewBids" > user task is taking almost 5 seconds to run, which is much longer than the > ArRobot task cycle ought to run (it should match the rate at which the robot > sends SIP packets, i.e. no more than 100ms.) So both warnings are coming > from this problem. I would take a look at your ReviewBids task and see if > there is a condition in which it does a long loop, long computation, or does > any waiting or blocking calls which may be waiting for I/O (e.g. network IO > from interrobot communications??) > > I don't think the lock warning is a problem, it's just a debugging tool > that is on for some reason. It is just displaying how long a particular > mutex lock operation is taking in ARNL-- if it was a long time then it would > indicate other locks blocking, but if it's always 0ms or so then it's fine. > > > -----Original Message----- > From: aria-users-bounces at lists.mobilerobots.com aria-users-bounces at lists.mobilerobots.com> [mailto: > aria-users-bounces at lists.mobilerobots.com] On Behalf Of angellopozo > Sent: Tuesday, February 08, 2011 5:33 PM > To: ariausers > Subject: [Aria-users] Lockwarning and Arsync warnings > > I want to know what the "LockWarning: locking ArPathplanningTask::myMutex" > is referring too. Additionally, is there a method i could use to find out > what specific ArRobot sync tasks are delaying execution? > > Our Setup: > > We have 3 robots: p3at, peoplebot, and patrol bots. Each is running windows > XP on their internal computers. Our goal is to have each compute a location, > then communicate that location to other robots, do some deliberation and > then confirms are set to each robot to move to a location. From the image > you can see that ReviewBids also took to long. > ReviewBids is a recurring ArUserTask that checks a value and then tells the > server to send data to a specific client. The function will not tell the > server to send data on every call. > > The problem: > > I receive a fair amount of ArSync tasks too long warnings. is there some > inspection method i can use to find out what function is taking long? > What are possible reason arSync task gets delayed? What are some things i > can possibly do to reduce these types of delays? Am i dong too much and > hence the computer is unable to keep up? > > Additionally The lockwarning also pops up from time to time. Mostly on our > patrol bot. But i would like to know what that warning means. > > Angello Pozo > > > _______________________________________________ > Aria-users mailing list > Aria-users at lists.mobilerobots.com > > http://lists.mobilerobots.com/mailman/listinfo/aria-users > > To unsubscribe visit the above webpage or send an e-mail to: > > aria-users-leave at lists.mobilerobots.com aria-users-leave at lists.mobilerobots.com> > > Visit http://robots.mobilerobots.com for information including > documentation, FAQ, tips, manuals, and software, firmware and driver > downloads. > > Mailing list archives are at http://lists.mobilerobots.com/ > ________________________________ > > [cid:image001.jpg at 01CBCA07.55000E80] > > angellopozo > February 8, 2011 2:32 PM > > > I want to know what the "LockWarning: locking ArPathplanningTask::myMutex" > is referring too. Additionally, is there a method i could use to find out > what specific ArRobot sync tasks are delaying execution? > > Our Setup: > > We have 3 robots: p3at, peoplebot, and patrol bots. Each is running windows > XP on their internal computers. Our goal is to have each compute a location, > then communicate that location to other robots, do some deliberation and > then confirms are set to each robot to move to a location. From the image > you can see that ReviewBids also took to long. ReviewBids is a recurring > ArUserTask that checks a value and then tells the server to send data to a > specific client. The function will not tell the server to send data on every > call. > > The problem: > > I receive a fair amount of ArSync tasks too long warnings. is there some > inspection method i can use to find out what function is taking long? What > are possible reason arSync task gets delayed? What are some things i can > possibly do to reduce these types of delays? Am i dong too much and hence > the computer is unable to keep up? > > Additionally The lockwarning also pops up from time to time. Mostly on our > patrol bot. But i would like to know what that warning means. > > Angello Pozo > > > > _______________________________________________ > Aria-users mailing list > Aria-users at lists.mobilerobots.com > http://lists.mobilerobots.com/mailman/listinfo/aria-users > > To unsubscribe visit the above webpage or send an e-mail to: > > aria-users-leave at lists.mobilerobots.com > > Visit http://robots.mobilerobots.com for information including > documentation, FAQ, tips, manuals, and software, firmware and driver > downloads. > > Mailing list archives are at http://lists.mobilerobots.com/ > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.mobilerobots.com/pipermail/aria-users/attachments/20110214/a1402352/attachment.html From takisps2 at hotmail.com Tue Feb 15 07:51:27 2011 From: takisps2 at hotmail.com (takis chionis) Date: Tue, 15 Feb 2011 14:51:27 +0200 Subject: [Aria-users] help Message-ID: How can i compile ARIA examples from windows? thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.mobilerobots.com/pipermail/aria-users/attachments/20110215/d7a5512b/attachment.html From pxionis at gmail.com Tue Feb 15 08:16:44 2011 From: pxionis at gmail.com (Takis C) Date: Tue, 15 Feb 2011 15:16:44 +0200 Subject: [Aria-users] help Message-ID: How can I compile ARIA examples from windows? thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.mobilerobots.com/pipermail/aria-users/attachments/20110215/4e260d8f/attachment.html From RHARLAN at sbu.edu Tue Feb 15 13:45:58 2011 From: RHARLAN at sbu.edu (Harlan, Robert) Date: Tue, 15 Feb 2011 13:45:58 -0500 Subject: [Aria-users] Creating a map for MobileEyes Message-ID: Dear Group: We are trying to get MobileEyes to work with a map created in Mapper 3 Basic by following these instructions given by SonARNL guiServerSonar when it is executed without a map parameter. ### No map file is set up, you can make a map with the following procedure 0) You can find this information in README.txt or docs/SonarMapping.txt 1) Start up Mapper3Basic 2) Go to File->New 3) Draw a line map of your area (make sure it is to scale) 4) Go to File->Save on Robot 5) In MobileEyes, go to Tools->Robot Config 6) Choose the Files section 7) Enter the path and name of your new .map file for the value of the Map parameter. 8) Press OK and your new map should become the map used We are able to create a map in Mapper 3 Basic, but when we try to save the map on the robot (with guiServerSonar running), we get the following messages: Robot localhost does not have a map. Modify the configuration to use this map (Walsh.map) instead? [Yes] An error occurred while saving the configuration on robot localhost. Parameter Map appeared to be in error. (Map invalid: cannot open file 'Walsh.map') On a few occasions, we were told the map could not be saved because it was opened by another program, or something along those lines. If we run MobileEyes, go to Robot Config, and try to change the Map value parameter, we get the following message: File Walsh.map does not appear to be a valid configuration file. No sections were found. Continue to load file? [Yes] Loading the file does nothing. At this point, even the original map columbia.map does not work anymore, although it did work last week before we made our own map. ***************************************** * Robert M. Harlan, Ph.D. * Professor of Computer Science * Department of Computer Science * St. Bonaventure University * St. Bonaventure, NY 14778 * Office: Walsh 111 * Email * Web Page * 716.375.2019 ***************************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.mobilerobots.com/pipermail/aria-users/attachments/20110215/a163e697/attachment-0001.html From ynilsiam at mtu.edu Wed Feb 16 06:44:13 2011 From: ynilsiam at mtu.edu (Yuenyong Nilsiam) Date: Wed, 16 Feb 2011 06:44:13 -0500 (EST) Subject: [Aria-users] help In-Reply-To: Message-ID: <1458380784.279241297856653525.JavaMail.root@zcs-mbs03.it.mtu.edu> Hi, You need Visual Studio 2008. Ake ----- Original Message ----- From: "takis chionis" To: "????" Sent: Tuesday, February 15, 2011 7:51:27 AM GMT -05:00 US/Canada Eastern Subject: [Aria-users] help How can i compile ARIA examples from windows? thanks _______________________________________________ Aria-users mailing list Aria-users at lists.mobilerobots.com http://lists.mobilerobots.com/mailman/listinfo/aria-users To unsubscribe visit the above webpage or send an e-mail to: aria-users-leave at lists.mobilerobots.com Visit http://robots.mobilerobots.com for information including documentation, FAQ, tips, manuals, and software, firmware and driver downloads. Mailing list archives are at http://lists.mobilerobots.com/ From Reed.Hedges at Adept.com Wed Feb 16 17:22:19 2011 From: Reed.Hedges at Adept.com (Reed Hedges) Date: Wed, 16 Feb 2011 14:22:19 -0800 Subject: [Aria-users] How to use ARIA in Java In-Reply-To: <38B0EB303E4E804F8A93B5CFA8FFF15F02C2959B19@SRV-APP-6.adept.local> References: <38B0EB303E4E804F8A93B5CFA8FFF15F02C2959B19@SRV-APP-6.adept.local> Message-ID: <38B0EB303E4E804F8A93B5CFA8FFF15F02C54A19A7@SRV-APP-6.adept.local> The "OUTPUT" type maps in wrapper.i aren't right. Remove them all and instead simply add the following after the comment about "Typemaps to make ARIA classes more accessible..." but before #ifdef SWIGPYTHON: %include "typemaps.i" %apply int *OUTPUT { int *x, int *y, int *z}; Then rebuild the SWIG wrappers entirely. Or if you can't easily set up SWIG let (e.g. on Windows) let me know and I can make new versions that include this rule. This rule essentially replaces void getAdjusted(int *x, int *y, int *z)... In Python, the getAdjusted() method takes no arguments and returns a tuple of values. In Java, it's unfortunately kind of weird. The method will take three (or two) int arrays, and it will set the first member of each array with the value: int[] xout = {0}; int[] yout = {0}; int[] zout = {0}; joyhandler.getAdjusted(xout, yout, zout); int x = xout[0]; int y = yout[0]; int z = zout[0]; It's awkward but I guess this is a straightforward implementation of the concept within the constraints of the Java language. (Why not return an array? Well the output parameters in C++ might be different types. Swig could have defined a small class to hold the values, maybe? I guess more complex than they wanted.) Maybe I will add something like int getAdjustedX(), int getAdjustedY(), int getAdjustedZ() for the future. Reed -----Original Message----- From: aria-users-bounces at lists.mobilerobots.com [mailto:aria-users-bounces at lists.mobilerobots.com] On Behalf Of Reed Hedges Sent: Wednesday, February 02, 2011 4:04 PM To: ariausers Subject: Re: [Aria-users] How to use ARIA in Java It looks like retrieving the values is not implemented in the wrapper, thanks for finding this. I'm looking at how to set this up in the wrapper, when I find out I'll let you know what to change in the swig wrapper definitions. Reed -- Reed Hedges Research Support and Software Adept Technology Inc. - Mobile Robots reed.hedges at adept.com http://www.mobilerobots.com - http://www.adept.com For documentation and support, visit http://robots.mobilerobots.com ________________________________________ From: aria-users-bounces at lists.mobilerobots.com [aria-users-bounces at lists.mobilerobots.com] On Behalf Of shishir kumar singh [shishir08 at gmail.com] Sent: Monday, January 31, 2011 4:29 AM To: ariausers Subject: [Aria-users] How to use ARIA in Java Dear All, Does anybody know how to extract values of x and y from method "public void getAdjusted(SWIGTYPE_p_int x, SWIGTYPE_p_int y)" of class ArJoyHandler. i didn't find any document on this issue. Even in the Wrapper provided by SWIG there is no method to extract the data from SWIGTYPE_p_int x, SWIGTYPE_p_int y ( these are for handling the pointers in java) . Thanks in advance -------------- next part -------------- A non-text attachment was scrubbed... Name: winmail.dat Type: application/ms-tnef Size: 5469 bytes Desc: not available Url : http://lists.mobilerobots.com/pipermail/aria-users/attachments/20110216/01626b57/attachment.bin From smobley at broncos.uncfsu.edu Fri Feb 18 12:33:20 2011 From: smobley at broncos.uncfsu.edu (sean mobley) Date: Fri, 18 Feb 2011 17:33:20 -0000 Subject: [Aria-users] Wireless adapter Message-ID: Hi, I have been experiencing some connectivity problems with the peoplebot. I am working with the Pioneer and the peoplebot. And in comparison the wireless range/performance of the peoplebot is halt that of the P3DX. i can only go a few feet(20-30) before the connection drops. I have installed new higher gain antennas onto both robots. THe performance doubled, and I have no problems using the P3DX. But I still dont get anything close to the results with the peoplebot. I'm thinking it's hardware issue. Unmounting the range finder would take a while, so I was going to ask here first. Any tips or advice? Best, Sean Sean Mobley Fayettville State University Computer Science '2010 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.mobilerobots.com/pipermail/aria-users/attachments/20110218/2b2960fe/attachment.html From smobley at broncos.uncfsu.edu Mon Feb 28 11:16:30 2011 From: smobley at broncos.uncfsu.edu (sean mobley) Date: Mon, 28 Feb 2011 16:16:30 -0000 Subject: [Aria-users] Cyton 7D Robotic Arm not working Message-ID: Hi, Our department has recently purchased the Cyton 7D robotic arm, to mount on the pioneer.. Our problem is that the software failes to initialize. ("Cannot initialize Cyton viewer plugin. Exiting.") I had to alter the configuration of the intial 4 pin ATX power supply cable. Since the robot come with a DC plug, I had to attach a DC Jack to the other end of the 4 pin cable. I'm not sure if I'm doing anything wrong here, and there arent really any good instructions on how to install this device. The arm came with a "black box" which has 3 connections. A power connection (4 pin ATX), a data connection that probably powers the robot as well as acting as the data cable, and a USB port that connects arm with the embedded computer. Everything is connected, the power on the black box is on. But the arm doesnt even initialize, like for example the pan tilt unit for the stereo vision camera. Any tips? Best regards, Sean Mobley Fayettville State University Computer Science '2010 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.mobilerobots.com/pipermail/aria-users/attachments/20110228/9653c104/attachment.html