From sabrinam83 at hotmail.com Fri Oct 10 10:50:47 2008 From: sabrinam83 at hotmail.com (Sabrina Magni) Date: Fri Oct 10 10:50:55 2008 Subject: [Pyro-users] Problem with Camera Device with Pyro on MAC Message-ID: Hi everybody! I have installed Pyro on my Mac OSX (10.4.11) and with an access point connected to an Aibo ERS-7. Everything worked well untill I tried connecting to the Aibo camera. An error occured like if there is no camera device existing. I tried then to use the Fake Camera (with the Test robot) and it still didn't work. It creates the following script: Pyrobot Verion 5.0.0: Ready... Attempting to import 'Test'... Loaded '/Users/sabry/Desktop/Pyro/pyrobot/plugins/robots/Test.pyc' ! Attempting to import 'FakeCamera'... Exception in Tkinter callback Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/2.4//lib/python2.4/lib-tk/Tkinter.py", line 1345, in __call__ return self.func(*args) File "./gui/Tk.py", line 198, in loadDevice gui.loadDevice(self) File "./gui/__init__.py", line 491, in loadDevice self.engine.robot.startDevices(f) File "./robot/__init__.py", line 285, in startDevices return self.startDevices(system.loadINIT(file, self), **args ) File "./system/__init__.py", line 86, in loadINIT exec("import " + module + " as userspace") File "", line 1, in ? File "./plugins/devices/FakeCamera.py", line 1, in ? from pyrobot.camera.fake import FakeCamera File "./camera/fake/__init__.py", line 1, in ? from pyrobot.camera.fake.fake import Fake # cameraDevice ImportError: No module named fake Is this caused by the C++ code used in the vision and camera operations that only work on Linux?!? Can anyone please give me some advice to resolve this problem? Thank you very much!!!! Ciao, Sabrina _________________________________________________________________ Cerchi un locale per la serata? Chiedilo a Live Maps! http://maps.live.it/ From dblank at brynmawr.edu Fri Oct 10 14:44:57 2008 From: dblank at brynmawr.edu (Douglas S. Blank) Date: Fri Oct 10 14:45:13 2008 Subject: [Pyro-users] Problem with Camera Device with Pyro on MAC In-Reply-To: References: Message-ID: <48EFA2A9.10109@brynmawr.edu> Sabrina Magni wrote: [snip] > Is this caused by the C++ code used in the vision and camera > operations that only work on Linux?!? This is definitely caused by not generating the C++ wrappers for Python on the Mac. Anyone using the vision/camera code on the Mac? Anyone used SWIG on the Mac? If someone wanted to look at this, one needs to be able to: % cd pyrobot/camera/fake % make That calls SWIG and cc. > Can anyone please give me some advice to resolve this problem? Unless someone has a fix to the above, then you should use Linux. The LiveCD has this ready to use, and I think has all of the drivers for talking to the Aibo pre-built. -Doug > Thank you very much!!!! > > Ciao, Sabrina From bradford.barr at gmail.com Mon Oct 20 10:06:00 2008 From: bradford.barr at gmail.com (Bradford Barr) Date: Mon Oct 20 06:08:10 2008 Subject: [Pyro-users] Problems with V4LCamera Message-ID: <359db8300810200706u27fac5f9gad5d63643b5fe210@mail.gmail.com> Hey all, I'm new to Pyro, and I'm having some issues with the V4LCamera. When I run a Test robot with a V4LCamera device it asks me for the device, width, height and channel. I leave all of those default and get an error: V4L constructor '/dev/video0' (160 x 120) x 3 ch = 0 Initializing Video4Linux /dev/video0..Error: with Videochannelioctl VIDIOCGCHAN: Invalid argument lsmod shows that I have v4l1_compat installed, and I've used the camera with other programs (mplayer and opencv). I'm runnning Archlinux, kernel 2.6.27.Any help would be greatly appreciated. Thanks in advance, Brad -------------- next part -------------- An HTML attachment was scrubbed... URL: http://emergent.brynmawr.edu/pipermail/pyro-users/attachments/20081020/18db00eb/attachment.htm From dblank at brynmawr.edu Mon Oct 20 11:43:55 2008 From: dblank at brynmawr.edu (Douglas S. Blank) Date: Mon Oct 20 07:46:13 2008 Subject: [Pyro-users] Problems with V4LCamera In-Reply-To: <359db8300810200706u27fac5f9gad5d63643b5fe210@mail.gmail.com> References: <359db8300810200706u27fac5f9gad5d63643b5fe210@mail.gmail.com> Message-ID: <48FCA73B.2090203@brynmawr.edu> Bradford Barr wrote: > Hey all, > > I'm new to Pyro, and I'm having some issues with the V4LCamera. When I > run a Test robot with a V4LCamera device it asks me for the device, > width, height and channel. I leave all of those default and get an error: > > V4L constructor '/dev/video0' (160 x 120) x 3 ch = 0 > Initializing Video4Linux /dev/video0..Error: with Videochannelioctl > VIDIOCGCHAN: Invalid argument > > lsmod shows that I have v4l1_compat installed, and I've used the camera > with other programs (mplayer and opencv). I'm runnning Archlinux, kernel > 2.6.27. Any help would be greatly appreciated. > > Thanks in advance, > Brad Brad, I don't have time to dig into this this week, but I would suspect it might be a V4L1 vs V4L2 issue. Take a look at: pyrobot/camera/v4l/V4L.cpp it looks like there is a section of code marked with DUMMY_VIDIOC_QUERYCAP that might work for you. You could use that init rather than the other, and re-make the file. Let us know if that helps (or if you solve the problem). Thanks, -Doug From bradford.barr at gmail.com Mon Oct 20 13:13:34 2008 From: bradford.barr at gmail.com (Bradford Barr) Date: Mon Oct 20 09:15:44 2008 Subject: [Pyro-users] Problems with V4LCamera In-Reply-To: <48FCA73B.2090203@brynmawr.edu> References: <359db8300810200706u27fac5f9gad5d63643b5fe210@mail.gmail.com> <48FCA73B.2090203@brynmawr.edu> Message-ID: <359db8300810201013j6402c804o21fe6d67ed43f3ce@mail.gmail.com> Excuse my ignorance, but I'm not exactly sure what you mean by using the other init. Do I just throw a #define DUMMY_VIDIOC_QUERYCAP at the top of V4L.cpp and recompile? Brad On Mon, Oct 20, 2008 at 11:43 AM, Douglas S. Blank wrote: > Bradford Barr wrote: > >> Hey all, >> >> I'm new to Pyro, and I'm having some issues with the V4LCamera. When I run >> a Test robot with a V4LCamera device it asks me for the device, width, >> height and channel. I leave all of those default and get an error: >> >> V4L constructor '/dev/video0' (160 x 120) x 3 ch = 0 >> Initializing Video4Linux /dev/video0..Error: with Videochannelioctl >> VIDIOCGCHAN: Invalid argument >> >> lsmod shows that I have v4l1_compat installed, and I've used the camera >> with other programs (mplayer and opencv). I'm runnning Archlinux, kernel >> 2.6.27. Any help would be greatly appreciated. >> >> Thanks in advance, >> Brad >> > > Brad, > > I don't have time to dig into this this week, but I would suspect it might > be a V4L1 vs V4L2 issue. Take a look at: > > pyrobot/camera/v4l/V4L.cpp > > it looks like there is a section of code marked with DUMMY_VIDIOC_QUERYCAP > that might work for you. You could use that init rather than the other, and > re-make the file. > > Let us know if that helps (or if you solve the problem). Thanks, > > -Doug > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://emergent.brynmawr.edu/pipermail/pyro-users/attachments/20081020/c87022ca/attachment.htm From dblank at brynmawr.edu Mon Oct 20 21:24:19 2008 From: dblank at brynmawr.edu (Douglas S. Blank) Date: Mon Oct 20 17:26:27 2008 Subject: [Pyro-users] Pyro 5.0 Yum Repository for Fedora 9 Message-ID: <48FD2F43.7000908@brynmawr.edu> I've just updated our Python Robotics RPM to Pyro 5.0. This means that you can install Pyro with "yum install pyrobot" and it will stay updated as we change it. Below, you'll find the instructions for setting up the repository. I didn't get the old versions of player/stage/gazebo to work with the new Fedora, but Fedora 9 does come with version of each. These haven't been tested with Pyro5---perhaps it works, but more than likely the interface between Pyro and P/S/G will need to be adjusted. Patches accepted! -Doug ------- To add the Python Robotics Yum Repository to your Linux system: 1) As root, put the following in the file /etc/yum.repos.d/pyrobot.repo: [pyrobot] name=Python Robotics baseurl=http://165.106.10.249/pyro/fedora/$releasever/$basearch gpgkey=http://165.106.10.249/pyro/fedora/RPM-GPG-KEY-dblank enabled=1 gpgcheck=1 2) Then, you (as root) can "yum install pyrobot" 3) Pyro will then be updated with your normal system updates. From dblank at brynmawr.edu Mon Oct 20 21:31:40 2008 From: dblank at brynmawr.edu (Douglas S. Blank) Date: Mon Oct 20 17:33:48 2008 Subject: [Pyro-users] Problems with V4LCamera In-Reply-To: <359db8300810201013j6402c804o21fe6d67ed43f3ce@mail.gmail.com> References: <359db8300810200706u27fac5f9gad5d63643b5fe210@mail.gmail.com> <48FCA73B.2090203@brynmawr.edu> <359db8300810201013j6402c804o21fe6d67ed43f3ce@mail.gmail.com> Message-ID: <48FD30FC.2020707@brynmawr.edu> Bradford Barr wrote: > Excuse my ignorance, but I'm not exactly sure what you mean by using the > other init. > > Do I just throw a #define DUMMY_VIDIOC_QUERYCAP at the top of V4L.cpp > and recompile? You'll probably need to make sure that both of the V4L::init methods are not defined. There is one for V4L1 and one for V4L2, and you should make sure only one gets evaluated. Obviously we need a way of testing which V4L a user has, and then using that version. I'm not sure Pyro has been tested with V4L2, so there very well may be other issues. Of course, I'm only guessing that this is the problem to begin with... -Doug > Brad > > On Mon, Oct 20, 2008 at 11:43 AM, Douglas S. Blank > wrote: > > Bradford Barr wrote: > > Hey all, > > I'm new to Pyro, and I'm having some issues with the V4LCamera. > When I run a Test robot with a V4LCamera device it asks me for > the device, width, height and channel. I leave all of those > default and get an error: > > V4L constructor '/dev/video0' (160 x 120) x 3 ch = 0 > Initializing Video4Linux /dev/video0..Error: with > Videochannelioctl VIDIOCGCHAN: Invalid argument > > lsmod shows that I have v4l1_compat installed, and I've used the > camera with other programs (mplayer and opencv). I'm runnning > Archlinux, kernel 2.6.27. Any > help would be greatly appreciated. > > Thanks in advance, > Brad > > > Brad, > > I don't have time to dig into this this week, but I would suspect it > might be a V4L1 vs V4L2 issue. Take a look at: > > pyrobot/camera/v4l/V4L.cpp > > it looks like there is a section of code marked with > DUMMY_VIDIOC_QUERYCAP that might work for you. You could use that > init rather than the other, and re-make the file. > > Let us know if that helps (or if you solve the problem). Thanks, > > -Doug > > From kent.brake at gmail.com Tue Oct 21 10:38:16 2008 From: kent.brake at gmail.com (kent brake) Date: Tue Oct 21 06:40:24 2008 Subject: [Pyro-users] Panasonic BL-C1A with Pyro Message-ID: <89d40a0e0810210738q42d8814ai5cedeb6474001863@mail.gmail.com> Hi, I am building a bot using a client/server model on a wifi hotspot and have a Panasonic BL-C1A IP camera that I would like to use as the pyro camera device. I was wondering if anyone has used a IP camera as a vision system and if so, could share their implementation details? Thanks, -Kent -------------- next part -------------- An HTML attachment was scrubbed... URL: http://emergent.brynmawr.edu/pipermail/pyro-users/attachments/20081021/7d21fe6d/attachment.htm From shannon at centre.edu Tue Oct 21 17:21:08 2008 From: shannon at centre.edu (Christine A. Shannon) Date: Tue Oct 21 13:23:18 2008 Subject: [Pyro-users] Wumpus World problem Message-ID: I've downloaded the newest version of pyro and tried to run the Pyrobot simulator with the Wumpus World.py and got the following message -- looks like missing modules Traceback (most recent call last): File "/usr/lib/python2.5/site-packages/pyrobot/plugins/simulators/PyrobotSimulator", line 83, in gui = INIT(worldFile) File "/usr/lib/python2.5/site-packages/pyrobot/plugins/simulators/PyrobotSimulator", line 18, in INIT exec("import " + module + " as userspace") File "", line 1, in File "/usr/lib/python2.5/site-packages/pyrobot/plugins/worlds/Pyrobot/WumpusWorld.py", line 2, in import Image, ImageTk, ImageDraw, ImageFont ImportError: No module named ImageTk Thanks for your help. Incidentally, I have a couple more improvements to the WumpusWorld.py that allows pits in the 0th row and column. I thought we had corrected that last time but it still has the pits only in rows and col 1-3. Christine Shannon From dblank at brynmawr.edu Tue Oct 21 20:40:10 2008 From: dblank at brynmawr.edu (Douglas Blank) Date: Tue Oct 21 16:42:28 2008 Subject: [Pyro-users] Wumpus World problem In-Reply-To: Message-ID: <943341187.5736101224636010274.JavaMail.root@ganesh.brynmawr.edu> ----- Christine A. Shannon wrote: > I've downloaded the newest version of pyro and tried to run the Pyrobot simulator with the Wumpus World.py > > and got the following message -- looks like missing modules > > > Traceback (most recent call last): > File "/usr/lib/python2.5/site-packages/pyrobot/plugins/simulators/PyrobotSimulator", line 83, in > gui = INIT(worldFile) > File "/usr/lib/python2.5/site-packages/pyrobot/plugins/simulators/PyrobotSimulator", line 18, in INIT > exec("import " + module + " as userspace") > File "", line 1, in > File "/usr/lib/python2.5/site-packages/pyrobot/plugins/worlds/Pyrobot/WumpusWorld.py", line 2, in > import Image, ImageTk, ImageDraw, ImageFont > ImportError: No module named ImageTk Did you use the yum install method? Looks like we need to list python-imaging-tk as a dependency. You can fix that with: yum install python-imaging-tk > Thanks for your help. Incidentally, I have a couple more improvements to the WumpusWorld.py that allows pits in the 0th row and column. I thought we had corrected that last time but it still has the pits only in rows and col 1-3. If you send me a fixed version, I'll update it. Thanks! -Doug > Christine Shannon > > _______________________________________________ > Pyro-users mailing list > Pyro-users@pyrorobotics.org > http://emergent.brynmawr.edu/mailman/listinfo/pyro-users From bradford.barr at gmail.com Wed Oct 22 15:59:34 2008 From: bradford.barr at gmail.com (Bradford Barr) Date: Wed Oct 22 12:01:45 2008 Subject: [Pyro-users] Problems with V4LCamera In-Reply-To: <48FD30FC.2020707@brynmawr.edu> References: <359db8300810200706u27fac5f9gad5d63643b5fe210@mail.gmail.com> <48FCA73B.2090203@brynmawr.edu> <359db8300810201013j6402c804o21fe6d67ed43f3ce@mail.gmail.com> <48FD30FC.2020707@brynmawr.edu> Message-ID: <359db8300810221259y37d9688eq1427918099ad14f4@mail.gmail.com> Sadly, no dice using the other init. No rush either. I tried using the live CD that has pyro installed, but it doesn't support my hardware well enough to find my webcam (EeePC 901). Thanks for all the help. Brad On Mon, Oct 20, 2008 at 9:31 PM, Douglas S. Blank wrote: > Bradford Barr wrote: > >> Excuse my ignorance, but I'm not exactly sure what you mean by using the >> other init. >> >> Do I just throw a #define DUMMY_VIDIOC_QUERYCAP at the top of V4L.cpp and >> recompile? >> > > You'll probably need to make sure that both of the V4L::init methods are > not defined. There is one for V4L1 and one for V4L2, and you should make > sure only one gets evaluated. > > Obviously we need a way of testing which V4L a user has, and then using > that version. I'm not sure Pyro has been tested with V4L2, so there very > well may be other issues. > > Of course, I'm only guessing that this is the problem to begin with... > > -Doug > > Brad >> >> On Mon, Oct 20, 2008 at 11:43 AM, Douglas S. Blank > dblank@brynmawr.edu>> wrote: >> >> Bradford Barr wrote: >> >> Hey all, >> >> I'm new to Pyro, and I'm having some issues with the V4LCamera. >> When I run a Test robot with a V4LCamera device it asks me for >> the device, width, height and channel. I leave all of those >> default and get an error: >> >> V4L constructor '/dev/video0' (160 x 120) x 3 ch = 0 >> Initializing Video4Linux /dev/video0..Error: with >> Videochannelioctl VIDIOCGCHAN: Invalid argument >> >> lsmod shows that I have v4l1_compat installed, and I've used the >> camera with other programs (mplayer and opencv). I'm runnning >> Archlinux, kernel 2.6.27. Any >> help would be greatly appreciated. >> >> Thanks in advance, >> Brad >> >> >> Brad, >> >> I don't have time to dig into this this week, but I would suspect it >> might be a V4L1 vs V4L2 issue. Take a look at: >> >> pyrobot/camera/v4l/V4L.cpp >> >> it looks like there is a section of code marked with >> DUMMY_VIDIOC_QUERYCAP that might work for you. You could use that >> init rather than the other, and re-make the file. >> >> Let us know if that helps (or if you solve the problem). Thanks, >> >> -Doug >> >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://emergent.brynmawr.edu/pipermail/pyro-users/attachments/20081022/6c449c6f/attachment.htm