From stevendang233 at gmail.com Thu Sep 2 22:26:56 2010 From: stevendang233 at gmail.com (Steven Dang) Date: Fri, 3 Sep 2010 09:26:56 +0700 Subject: [Aria-users] SonarReading in Mobile SIm Message-ID: Hi everybody. I dont know what the value return. I just edit some lines to understand clearly the acitionSample.cpp (in Aria example) but I dont know what happens. Here my Code: // all variable are *double* d1 = myRobot->getSonarRange(7); d2 = myRobot->getSonarRange(8); alpha = asin(abs(d1-d2)/a); alpha_degree = alpha*180/3.14; d = (d1+d2)/2+b/(cos(alpha)); // if the range is greater than the stop distance, find some speed to go if (d < 1000) { TurnAlarm =0; fprintf (pFile, "dxx = %f \n",d); // just an arbitrary speed based on the range speed = 200; // if that speed is greater than our max, cap it myDesired.setVel(speed); } // the range was less than the stop distance, so request stop if (d>10000) { TurnAlarm =1; printf ("dXXXXXX = %.2f \n",d); ArLog::log(ArLog::Normal, "dxxxxxxx = %d", d); if(d1>d2) { Turndirection =1; // turn left myDesired.setVel(0); } if(d1 I will really appreciate if u can help me. Thks. -- Steven Dang Mechatronics Department Faculty of Mechanical Engineering HCMC University of Technology stevendang233 at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.mobilerobots.com/pipermail/aria-users/attachments/20100903/4165e0bc/attachment-0001.html -------------- next part -------------- A non-text attachment was scrubbed... Name: untitled.bmp Type: image/bmp Size: 153237 bytes Desc: not available Url : http://lists.mobilerobots.com/pipermail/aria-users/attachments/20100903/4165e0bc/attachment-0001.bin From Reed.Hedges at Adept.com Wed Sep 8 10:00:50 2010 From: Reed.Hedges at Adept.com (Reed Hedges) Date: Wed, 8 Sep 2010 07:00:50 -0700 Subject: [Aria-users] SonarReading in Mobile SIm In-Reply-To: References: Message-ID: <38B0EB303E4E804F8A93B5CFA8FFF15F0252BE675D@SRV-APP-6.adept.local> Hello, Have you been able to solve this yet? I don't think it's an overflow if the variables are doubles. Is the example output you give that shows the value of 'd' generated by printing the values before the if statement? From: aria-users-bounces at lists.mobilerobots.com [mailto:aria-users-bounces at lists.mobilerobots.com] On Behalf Of Steven Dang Sent: Thursday, September 02, 2010 10:27 PM To: aria-users Subject: [Aria-users] SonarReading in Mobile SIm Hi everybody. I dont know what the value return. I just edit some lines to understand clearly the acitionSample.cpp (in Aria example) but I dont know what happens. Here my Code: // all variable are double d1 = myRobot->getSonarRange(7); d2 = myRobot->getSonarRange(8); alpha = asin(abs(d1-d2)/a); alpha_degree = alpha*180/3.14; d = (d1+d2)/2+b/(cos(alpha)); // if the range is greater than the stop distance, find some speed to go if (d < 1000) { TurnAlarm =0; fprintf (pFile, "dxx = %f \n",d); // just an arbitrary speed based on the range speed = 200; // if that speed is greater than our max, cap it myDesired.setVel(speed); } // the range was less than the stop distance, so request stop if (d>10000) { TurnAlarm =1; printf ("dXXXXXX = %.2f \n",d); ArLog::log(ArLog::Normal, "dxxxxxxx = %d", d); if(d1>d2) { Turndirection =1; // turn left myDesired.setVel(0); } if(d1 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.mobilerobots.com/pipermail/aria-users/attachments/20100908/3cc2a7f7/attachment.html From stevendang233 at gmail.com Tue Sep 14 04:51:09 2010 From: stevendang233 at gmail.com (Steven Dang) Date: Tue, 14 Sep 2010 15:51:09 +0700 Subject: [Aria-users] Connect Windows Client with Linux Server Message-ID: Hi everyone, I have a P3 AT Robot in my lab, and I find it difficult when I write code in my laptop (Windows), test with MobileSim already. But I still have to write it again in Linux Embedded Computer (of robot) to check it in real environment - and it took me a lot of time & mistakes, anyone can tell me how to copy code from Windows to Linux??? Best Regards, -- Steven Dang Mechatronics Department Faculty of Mechanical Engineering HCMC University of Technology stevendang233 at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.mobilerobots.com/pipermail/aria-users/attachments/20100914/100515f6/attachment.html From iamkyunh at gmail.com Tue Sep 14 13:26:03 2010 From: iamkyunh at gmail.com (july moe) Date: Wed, 15 Sep 2010 02:26:03 +0900 Subject: [Aria-users] UTM30Lx interface Message-ID: Hello, I would like to use URG through ARIA. When I read the ArUrg class document, it is explained as URG is needed to connect through a serial interface. However, I only find out USB interface on my UTM30Lx. So how can I use ArUrg class with my URG? And what are needed for interface? Please... July -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.mobilerobots.com/pipermail/aria-users/attachments/20100915/98a0148c/attachment.html From Reed.Hedges at Adept.com Tue Sep 14 14:49:55 2010 From: Reed.Hedges at Adept.com (Reed Hedges) Date: Tue, 14 Sep 2010 11:49:55 -0700 Subject: [Aria-users] Connect Windows Client with Linux Server In-Reply-To: References: Message-ID: <38B0EB303E4E804F8A93B5CFA8FFF15F0252BE6FE1@SRV-APP-6.adept.local> Hello, You can copy the source files to the onboard computer using SCP or SFTP (SSH) (here is WinSCP for Windows: http://www.winscp.net), or use a revision control system such as SVN (Subversion), CVS or similar, which would use SSH/SCP to copy the files. Then recompile the program on the robot under Linux. See the ARIA Readme for some basic instructions on compiling a program on Linux using Make and g++. Reed From: aria-users-bounces at lists.mobilerobots.com [mailto:aria-users-bounces at lists.mobilerobots.com] On Behalf Of Steven Dang Sent: Tuesday, September 14, 2010 4:51 AM To: pioneerusers; ariausers Subject: [Aria-users] Connect Windows Client with Linux Server Hi everyone, I have a P3 AT Robot in my lab, and I find it difficult when I write code in my laptop (Windows), test with MobileSim already. But I still have to write it again in Linux Embedded Computer (of robot) to check it in real environment - and it took me a lot of time & mistakes, anyone can tell me how to copy code from Windows to Linux??? Best Regards, -- Steven Dang Mechatronics Department Faculty of Mechanical Engineering HCMC University of Technology stevendang233 at gmail.com -------------- next part -------------- A non-text attachment was scrubbed... Name: winmail.dat Type: application/ms-tnef Size: 8270 bytes Desc: not available Url : http://lists.mobilerobots.com/pipermail/aria-users/attachments/20100914/8b5cb513/attachment-0001.bin From stevendang233 at gmail.com Sat Sep 18 02:23:04 2010 From: stevendang233 at gmail.com (Steven Dang) Date: Sat, 18 Sep 2010 13:23:04 +0700 Subject: [Aria-users] ACTS In-Reply-To: References: Message-ID: I dont know how to run ACTS on remote client laptop [?] Please help me. Best regards, -- Steven Dang Mechatronics Department Faculty of Mechanical Engineering HCMC University of Technology stevendang233 at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.mobilerobots.com/pipermail/aria-users/attachments/20100918/c48b8cd1/attachment.html -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/gif Size: 104 bytes Desc: not available Url : http://lists.mobilerobots.com/pipermail/aria-users/attachments/20100918/c48b8cd1/attachment.gif