From gdweber at indiana.edu Sun Apr 17 23:30:39 2005 From: gdweber at indiana.edu (Gregory D. Weber) Date: Sun Apr 17 23:20:22 2005 Subject: [Pyro-users] Cannot load a robot after installing pyrorobotics Message-ID: Hello, I am very interested in using pyro robotics -- I've just installed it, but I cannot get a robot selected. Starting Pyro, I choose Server: KheperaSimulator and world: home world. The Khepera Simulator window pops up. Then I choose Robot: KheperaSimulated.py and get these messages: Pyro Version 3.6.1: Ready... Attempting to import 'KheperaSimulated'... /usr/local/pyro/robot/device.py:133: Warning: 'yield' will become a reserved keyword in the future Exception in Tkinter callback Traceback (most recent call last): File "/usr/lib/python2.2/lib-tk/Tkinter.py", line 1316, in __call__ return apply(self.func, args) File "./gui/__init__.py", line 450, in loadRobot self.engine.loadRobot(f) File "./engine/__init__.py", line 138, in loadRobot self.robot = system.loadINIT(file) File "./system/__init__.py", line 76, in loadINIT exec("import " + module + " as userspace") File "", line 1, in ? File "./plugins/robots/KheperaSimulated.py", line 3, in ? from pyro.robot.khepera import * File "./robot/__init__.py", line 25, in ? from pyro.robot.device import * File "/usr/local/pyro/robot/device.py", line 133 yield self.getSensorValue(pos) ^ SyntaxError: invalid syntax (end messages) On http://emergent.brynmawr.edu/emergent/PyroBugs I see that known bug #7 is very similar -- maybe even the same -- but although the bug is listed, there is no hint of any workaround. Is this a bug that afflicts everybody or is it only a few unlucky people? Should I try Pyro4 from CVS, or the PyroLiveCD? Or installing a different simulator? Here are the details: I. I followed the instructions on http://pyrorobotics.org/pyro/?page=PyroInstallation, steps 0-6. I wanted to do a minimal installation so I could quickly try it out, so I didn't install any of the extras (Player/Stage/Gazebo, Robocup simulator, camera and video, Khepera robot, Pioneer2 robot, Aria, SRIsim, or PyOpenGL) -- but if I understood correctly the Khepera robot simulator is installed. II. System configuration: Fedora Core 1 with a special kernel from PlanetCCRMA (http://ccrma.stanford.edu/planetccrma/software/planetccrma.html) $ uname -a Linux moose.privatenet 2.4.26-1.ll.rhfc1.ccrma #1 Sat Apr 17 19:59:18 PDT 2004 i686 i686 i386 GNU/Linux a. SWIG is installed; v. 1.3.19 >= 1.3.17 b. Python is installed, v. 2.2.3 >= 2.2 c. Installed Numeric v. 22.0 d. Installed PIL (Python Image Library) using PIL-1.1.4-4.rhfc1.at.i386.rpm from http://atrpms.net/dist/fc1/PIL/ e. Installed Tkinter, etc.; versions are tkinter-2.2.3-7 itcl-3.2-96.0.1 tix-8.1.4-96.0.1 f. Installed Pyro version 3.6.1 III. Pyro configuration dialog: [root@moose pyro]# python configure.py --------------------------------------------------------------------- This is the configure.py script for installing Pyro, Python Robotics. Pressing ENTER by itself will accept the default (shown in brackets). --------------------------------------------------------------------- What version of Python do you want to build Pyro for? (Leave empty if your Python binary is just "python") If you need to type 'python2.2' to run Python, then enter "2.2". ------------------------------------------------------------------- 1. Python version number? Default = []: ------------------------------------------------------------------- 2. Where are Python's include files? Default = [/usr/include/python2.2]: ------------------------------------------------------------------- 3. What is Python's binary? (enter path and name) Default = [/usr/bin/python2]: ------------------------------------------------------------------- 4. Where is the X11 include directory? Default = [/usr/X11R6]: 5. Options: [no to most options; yes to the following:] ------------------------------------------------------------------- Option: Do you want to build Self-organizing Map (SOM)? (y/n) Default = [n]: y ------------------------------------------------------------------- Option: Do you want to build Cluster Analysis Tool? (y/n) Default = [n]: y ------------------------------------------------------------------- Option: Do you want to build Khepera Simulator? (y/n) Default = [n]: y -- Gregory D. Weber http://mypage.iu.edu/~gdweber/ Telephone (765) 973-8420 Associate Professor of Computer Science; Chair, Informatics Committee Indiana University East 2325 Chester Boulevard, Richmond, Indiana 47374-1289, U.S.A. ---- Plain text is the document format that maximizes readability and minimizes hassle and hazard. It is the format of the official documents defining Internet protocols (http://www.rfc-editor.org/). From dblank at brynmawr.edu Mon Apr 18 01:52:15 2005 From: dblank at brynmawr.edu (Douglas S. Blank) Date: Mon Apr 18 01:42:24 2005 Subject: [Pyro-users] Cannot load a robot after installing pyrorobotics In-Reply-To: References: Message-ID: <42634B0F.50203@brynmawr.edu> Hi Gregory, (That was fast!) You have encountered a transitional issue. Pyro4 will require Python 2.3 or greater, and some of the new Pyro items have already been implemented in Pyro3 (and thus require advanced Python features). You can get around this in two ways: 1) update your python 2) near the top of pyro/build/pyro, you can add: from __future__ import generators then run "make" again. That should do it. -Doug Gregory D. Weber wrote: > Hello, I am very interested in using pyro robotics -- I've > just installed it, but I cannot get a robot selected. > Starting Pyro, I choose Server: KheperaSimulator and world: home world. > The Khepera Simulator window pops up. > > Then I choose Robot: KheperaSimulated.py and get these messages: > > Pyro Version 3.6.1: Ready... > Attempting to import 'KheperaSimulated'... > /usr/local/pyro/robot/device.py:133: Warning: 'yield' will become a reserved keyword in the future > Exception in Tkinter callback > Traceback (most recent call last): > File "/usr/lib/python2.2/lib-tk/Tkinter.py", line 1316, in __call__ > return apply(self.func, args) > File "./gui/__init__.py", line 450, in loadRobot > self.engine.loadRobot(f) > File "./engine/__init__.py", line 138, in loadRobot > self.robot = system.loadINIT(file) > File "./system/__init__.py", line 76, in loadINIT > exec("import " + module + " as userspace") > File "", line 1, in ? > File "./plugins/robots/KheperaSimulated.py", line 3, in ? > from pyro.robot.khepera import * > File "./robot/__init__.py", line 25, in ? > from pyro.robot.device import * > File "/usr/local/pyro/robot/device.py", line 133 > yield self.getSensorValue(pos) > ^ > SyntaxError: invalid syntax > > (end messages) > > On http://emergent.brynmawr.edu/emergent/PyroBugs I see that > known bug #7 is very similar -- maybe even the same -- but > although the bug is listed, there is no hint of any workaround. > Is this a bug that afflicts everybody or is it only a > few unlucky people? Should I try Pyro4 from CVS, > or the PyroLiveCD? Or installing a different simulator? > > Here are the details: > > I. I followed the instructions > on http://pyrorobotics.org/pyro/?page=PyroInstallation, steps 0-6. > I wanted to do a minimal installation so I could quickly > try it out, so I didn't install any of the extras (Player/Stage/Gazebo, > Robocup simulator, camera and video, Khepera robot, Pioneer2 robot, > Aria, SRIsim, or PyOpenGL) -- but if I understood correctly the Khepera > robot simulator is installed. > > II. System configuration: > > Fedora Core 1 with a special kernel from PlanetCCRMA > (http://ccrma.stanford.edu/planetccrma/software/planetccrma.html) > > $ uname -a > Linux moose.privatenet 2.4.26-1.ll.rhfc1.ccrma #1 Sat Apr 17 19:59:18 PDT 2004 i686 i686 i386 GNU/Linux > > a. SWIG is installed; v. 1.3.19 >= 1.3.17 > b. Python is installed, v. 2.2.3 >= 2.2 > c. Installed Numeric v. 22.0 > d. Installed PIL (Python Image Library) using PIL-1.1.4-4.rhfc1.at.i386.rpm > from http://atrpms.net/dist/fc1/PIL/ > e. Installed Tkinter, etc.; versions are > tkinter-2.2.3-7 > itcl-3.2-96.0.1 > tix-8.1.4-96.0.1 > f. Installed Pyro version 3.6.1 > > III. Pyro configuration dialog: > > [root@moose pyro]# python configure.py > > --------------------------------------------------------------------- > This is the configure.py script for installing Pyro, Python Robotics. > Pressing ENTER by itself will accept the default (shown in brackets). > --------------------------------------------------------------------- > > > What version of Python do you want to build Pyro for? > (Leave empty if your Python binary is just "python") > If you need to type 'python2.2' to run Python, then > enter "2.2". > > ------------------------------------------------------------------- > 1. Python version number? > Default = []: > ------------------------------------------------------------------- > 2. Where are Python's include files? > Default = [/usr/include/python2.2]: > ------------------------------------------------------------------- > 3. What is Python's binary? (enter path and name) > Default = [/usr/bin/python2]: > ------------------------------------------------------------------- > 4. Where is the X11 include directory? > Default = [/usr/X11R6]: > > 5. Options: > > [no to most options; yes to the following:] > ------------------------------------------------------------------- > Option: Do you want to build Self-organizing Map (SOM)? (y/n) > Default = [n]: y > ------------------------------------------------------------------- > Option: Do you want to build Cluster Analysis Tool? (y/n) > Default = [n]: y > ------------------------------------------------------------------- > Option: Do you want to build Khepera Simulator? (y/n) > Default = [n]: y > > > -- Douglas S. Blank, Assistant Professor dblank@brynmawr.edu, (610)526-6501 Bryn Mawr College, Computer Science Program 101 North Merion Ave, Park Science Bld. Bryn Mawr, PA 19010 dangermouse.brynmawr.edu From Kathryn.Rivard at students.olin.edu Wed Apr 27 14:37:40 2005 From: Kathryn.Rivard at students.olin.edu (Kathryn Rivard) Date: Wed Apr 27 14:27:03 2005 Subject: [Pyro-users] Hello, and Documentation? Message-ID: <81F8DFD002DFF14697B4F5FE420FEB6801CC9DD7@OLINEXVS01.olin.edu> Hi -- found Pyro a few days ago, and it's been lovely so far. Is there documenation online somewhere for all these modules, or is it easiest to just go code-diving? Thanks, Katie Rivard Olin College '06 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://emergent.brynmawr.edu/pipermail/pyro-users/attachments/20050427/856dd030/attachment.htm From dblank at brynmawr.edu Wed Apr 27 16:52:51 2005 From: dblank at brynmawr.edu (Douglas S. Blank) Date: Wed Apr 27 16:42:20 2005 Subject: [Pyro-users] Hello, and Documentation? In-Reply-To: <81F8DFD002DFF14697B4F5FE420FEB6801CC9DD7@OLINEXVS01.olin.edu> References: <81F8DFD002DFF14697B4F5FE420FEB6801CC9DD7@OLINEXVS01.olin.edu> Message-ID: <426FFBA3.4030402@brynmawr.edu> Katie, Depending on what type of documentation you're looking for, we have either quite a bit, or not much. We have some extensive notes on using Pyro with AI and Robotics topics starting at: http://pyrorobotics.org/pyro/?page=PyroModulesContents There is a reference manual coming for a new version of Pyro, but it will be another month before that's on-line. You can get bits of that from the web site above, especially if you follow the links from the frontpage: http://pyrorobotics.org/ You can also try the search at the bottom of: http://emergent.brynmawr.edu/emergent/ which searches the wiki pages on which the above website is based. Let us know if that doesn't help, or if you have specific questions. -Doug Kathryn Rivard wrote: > > Hi -- found Pyro a few days ago, and it's been lovely so far. Is there > documenation online somewhere for all these modules, or is it easiest to > just go code-diving? > > Thanks, > Katie Rivard > Olin College '06 > > > ------------------------------------------------------------------------ > > _______________________________________________ > Pyro-users mailing list > Pyro-users@emergent.brynmawr.edu > http://emergent.brynmawr.edu/mailman/listinfo/pyro-users -- Douglas S. Blank, Assistant Professor dblank@brynmawr.edu, (610)526-6501 Bryn Mawr College, Computer Science Program 101 North Merion Ave, Park Science Bld. Bryn Mawr, PA 19010 dangermouse.brynmawr.edu From Kathryn.Rivard at students.olin.edu Wed Apr 27 17:19:37 2005 From: Kathryn.Rivard at students.olin.edu (Kathryn Rivard) Date: Wed Apr 27 17:09:11 2005 Subject: [Pyro-users] Hello, and Documentation? Message-ID: <81F8DFD002DFF14697B4F5FE420FEB6801CC9DD9@OLINEXVS01.olin.edu> I've been working through the Overview stuff (looks like course notes), which works so long as I remember which python modules are documented on which pages. I'll try the search, but what I was really looking for was something like PyDoc output, or an API for the system -- something to tell me what metehods are in what classes in what library files. So it looks like the answer is "not yet," though I may try just running pydoc on all the pyro code and see if what it spits out by default is useful. I'll let you know if I do anything astounding... Thanks Katie -----Original Message----- From: Douglas S. Blank [mailto:dblank@brynmawr.edu] Sent: Wed 4/27/2005 4:52 PM To: Kathryn Rivard Cc: pyro-users@dangermouse.brynmawr.edu Subject: Re: [Pyro-users] Hello, and Documentation? Katie, Depending on what type of documentation you're looking for, we have either quite a bit, or not much. We have some extensive notes on using Pyro with AI and Robotics topics starting at: http://pyrorobotics.org/pyro/?page=PyroModulesContents There is a reference manual coming for a new version of Pyro, but it will be another month before that's on-line. You can get bits of that from the web site above, especially if you follow the links from the frontpage: http://pyrorobotics.org/ You can also try the search at the bottom of: http://emergent.brynmawr.edu/emergent/ which searches the wiki pages on which the above website is based. Let us know if that doesn't help, or if you have specific questions. -Doug Kathryn Rivard wrote: > > Hi -- found Pyro a few days ago, and it's been lovely so far. Is there > documenation online somewhere for all these modules, or is it easiest to > just go code-diving? > > Thanks, > Katie Rivard > Olin College '06 > > > ------------------------------------------------------------------------ > > _______________________________________________ > Pyro-users mailing list > Pyro-users@emergent.brynmawr.edu > http://emergent.brynmawr.edu/mailman/listinfo/pyro-users -- Douglas S. Blank, Assistant Professor dblank@brynmawr.edu, (610)526-6501 Bryn Mawr College, Computer Science Program 101 North Merion Ave, Park Science Bld. Bryn Mawr, PA 19010 dangermouse.brynmawr.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://emergent.brynmawr.edu/pipermail/pyro-users/attachments/20050427/cacb844b/attachment.htm From dblank at brynmawr.edu Wed Apr 27 17:30:03 2005 From: dblank at brynmawr.edu (Douglas S. Blank) Date: Wed Apr 27 17:19:29 2005 Subject: [Pyro-users] Hello, and Documentation? In-Reply-To: <81F8DFD002DFF14697B4F5FE420FEB6801CC9DD9@OLINEXVS01.olin.edu> References: <81F8DFD002DFF14697B4F5FE420FEB6801CC9DD9@OLINEXVS01.olin.edu> Message-ID: <4270045B.70109@brynmawr.edu> Katie, Yep, you got it. We are planning an auto-generated pydoc-like manual; you can see a prototype version at: http://emergent.brynmawr.edu/emergent/PyroReferenceManual We need to finish putting comments in code to get that to be useful, though. -Doug Kathryn Rivard wrote: > I've been working through the Overview stuff (looks like course notes), > which works so long as I remember which python modules are documented on > which pages. I'll try the search, but what I was really looking for was > something like PyDoc output, or an API for the system -- something to > tell me what metehods are in what classes in what library files. > > So it looks like the answer is "not yet," though I may try just running > pydoc on all the pyro code and see if what it spits out by default is > useful. I'll let you know if I do anything astounding... > > Thanks > Katie > > > -----Original Message----- > From: Douglas S. Blank [mailto:dblank@brynmawr.edu] > Sent: Wed 4/27/2005 4:52 PM > To: Kathryn Rivard > Cc: pyro-users@dangermouse.brynmawr.edu > Subject: Re: [Pyro-users] Hello, and Documentation? > > Katie, > > Depending on what type of documentation you're looking for, we have > either quite a bit, or not much. > > We have some extensive notes on using Pyro with AI and Robotics topics > starting at: > > http://pyrorobotics.org/pyro/?page=PyroModulesContents > > There is a reference manual coming for a new version of Pyro, but it > will be another month before that's on-line. You can get bits of that > from the web site above, especially if you follow the links from the > frontpage: > > http://pyrorobotics.org/ > > You can also try the search at the bottom of: > > http://emergent.brynmawr.edu/emergent/ > > which searches the wiki pages on which the above website is based. > > Let us know if that doesn't help, or if you have specific questions. > > -Doug > > Kathryn Rivard wrote: > > > > Hi -- found Pyro a few days ago, and it's been lovely so far. Is there > > documenation online somewhere for all these modules, or is it easiest to > > just go code-diving? > > > > Thanks, > > Katie Rivard > > Olin College '06 > > > > > > ------------------------------------------------------------------------ > > > > _______________________________________________ > > Pyro-users mailing list > > Pyro-users@emergent.brynmawr.edu > > http://emergent.brynmawr.edu/mailman/listinfo/pyro-users > > > -- > Douglas S. Blank, Assistant Professor > dblank@brynmawr.edu, (610)526-6501 > Bryn Mawr College, Computer Science Program > 101 North Merion Ave, Park Science Bld. > Bryn Mawr, PA 19010 dangermouse.brynmawr.edu > -- Douglas S. Blank, Assistant Professor dblank@brynmawr.edu, (610)526-6501 Bryn Mawr College, Computer Science Program 101 North Merion Ave, Park Science Bld. Bryn Mawr, PA 19010 dangermouse.brynmawr.edu