OpenServo.com Forum Index OpenServo.com
Discussion of the OpenServo project
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Another OSIF console

 
Post new topic   Reply to topic    OpenServo.com Forum Index -> Utilities and Tools
View previous topic :: View next topic  
Author Message
lvmarcoux



Joined: 18 Dec 2010
Posts: 5
Location: Canada

PostPosted: Sat Dec 18, 2010 8:01 pm    Post subject: Another OSIF console Reply with quote

I have been busy during the last days programming a workbench for OpenServo. I have put together a console that can flash servos and also configure them, backup and restore the configurations, test the servos, read and record any register at any time interval, run user scripts, and more

The console can easily accept new registers mappings and new r/w protocols by adding a single module; so we can use it for any code variant.

It can also be fitted to drive adapters through parallel port, serial port, etc..

Now in late alpha phase, it is written in Python. You can have a preview and download the code at some site.

I cannot post the link, take the first letter or use the symbols to get the address:
hotel tango tango papa sierra colon slash slash sierra india tango echo sierra dot golf oscar oscar golf lima echo dot charlie oscar mike slash sierra india tango echo slash lima victor mike alpha romeo charlie oscar uniform xray slash (upper case) Hotel oscar mike echo slash oscar sierra india

[edit by Jared]
It appears my co-admin rights allow me to edit other posts. Here's that link in clickable form
https://sites.google.com/site/lvmarcoux/Home/osi
[/edit by Jared]

I will post developpement news on this thread.
Back to top
View user's profile Send private message
jharvey
co-admin


Joined: 15 Mar 2009
Posts: 352
Location: Maine USA

PostPosted: Sun Dec 19, 2010 12:01 am    Post subject: Reply with quote

I look forward to trying it out. I bet that when Ginge reads your post, he'll make some changes as you have proven your aren't spam. Once it's confirmed your a real person he gives you more permissions relative to posting and such.

Any plans for full rotation support with OE? What would you need to make allow OE support?
Back to top
View user's profile Send private message Visit poster's website
jharvey
co-admin


Joined: 15 Mar 2009
Posts: 352
Location: Maine USA

PostPosted: Sun Dec 19, 2010 12:27 pm    Post subject: Reply with quote

I just tried it, and ran into a problem. Here's what I have installed according to the add/remove manager on XP.

wxPython2.8.9.1 (unicode) for Python 2.6
Python 2.6.4
Python 2.6 pyusb-0.4.2
Python 2.5.2
Python 2.5 pyusb-0.4.1

I have intelhex-0.9.0, but haven't put it anywhere where it might be of use yet. I'll figure out where it should go a bit later on I guess. I think I simply put it in the project folder, or perhaps add it to the system path. Double clicking popped up a brief window that went away. So I launched it with idle, and here's what it told me.

Traceback (most recent call last):
File "Y:\blah\OSIF_console\src\OSIFconsole.py", line 29, in <module>
import wx.lib.agw.aui as aui
ImportError: No module named agw.aui

It appears that's part of wxPython, so I should have it. I see I'm slightly out dated, so I upgraded to wxPython 2.8.11.0 now add/remove reports

wxPython2.8.11.0 (unicode) for Python 2.6
Python 2.6 pyusb-0.4.3

So it appears you really do need 2.8.10 or higher. However, I now get this message.

IDLE 2.6.4 ==== No Subprocess ====
>>>
Traceback (most recent call last):
File "Y:\blah\OSIF_console\src\OSIFconsole.py", line 32, in <module>
import USBpanel
File "Y:\blah\OSIF_console\src\USBpanel.py", line 25, in <module>
import devices
File "Y:\blah\OSIF_console\src\devices.py", line 26, in <module>
import osif
File "Y:\blah\OSIF_console\src\osif.py", line 47, in <module>
import usb.core
ImportError: No module named core
>>>

I'll try a blind reboot and see if that helps. [edit] no luck with the reboot[/edit]
Back to top
View user's profile Send private message Visit poster's website
lvmarcoux



Joined: 18 Dec 2010
Posts: 5
Location: Canada

PostPosted: Sun Dec 19, 2010 12:56 pm    Post subject: Reply with quote

Yes I will adapt it to full rotation as it is one of my needs.

For your last error: you need pyUSB 1.0

Thank you for fixing the linlk: no machine would do such code Wink
Back to top
View user's profile Send private message
jharvey
co-admin


Joined: 15 Mar 2009
Posts: 352
Location: Maine USA

PostPosted: Sun Dec 19, 2010 1:39 pm    Post subject: Reply with quote

I got my pyusb from http://sourceforge.net/projects/pyusb/files/PyUSB%201.0/1.0.0-alpha-0/

It appears to have a link to the source code (zip and tar.gz) and it specifies "Looking for the latest version?" with an exe. I'll see what happens when I try follow the install instructions in the code version? I originally grabbed the exe because it felt like it would iron out some install details.
Back to top
View user's profile Send private message Visit poster's website
jharvey
co-admin


Joined: 15 Mar 2009
Posts: 352
Location: Maine USA

PostPosted: Sun Dec 19, 2010 2:28 pm    Post subject: Reply with quote

Following the install instructions appears to have worked. It appears python isn't in my path so I ran the setup like this C:\Python26\python.exe setup.py install

Then it complained about intelhex. So I copied intelhex.py into the src directory, and that appears to have worked. Now it's complaining like this

raise ImportError, "Numeric,numarray or NumPy not found. \n" + msg
ImportError: Numeric,numarray or NumPy not found.

This module requires the Numeric/numarray or NumPy module,
which could not be imported. It probably is not installed
(it's not part of the standard Python distribution). See the
Numeric Python site (http://numpy.scipy.org) for information on
downloading source or binaries.
>>>

So it's off to download and install NumPy for py2.6 and it now fires up with out complaint. Seems there is something wrong with this OSIF I have here. It's not recognized by my machine. Not sure if that's a drive problem on this machine or not. I'll have to look at it a bit closer some time. However I'm running out of time today.
Back to top
View user's profile Send private message Visit poster's website
jharvey
co-admin


Joined: 15 Mar 2009
Posts: 352
Location: Maine USA

PostPosted: Sun Dec 19, 2010 2:46 pm    Post subject: Reply with quote

I see the web page notes the creative commons licence, and the code notes GNU. Most of OS has been MIT. I'm curious, are you particularly tied to GNU, or would you consider MIT? Darius was tied to GNU due to concerns of weak copy left. I believe your code can be different if you so choose, as I believe it's not derived work, so you can break the viral component of GNU if you feel.

I have a mild preference for MIT, because it frees me from having to worry about the licencing junk. However I don't mind GNU as I understand that some folks are concerned about maintaining some rights to their work.
Back to top
View user's profile Send private message Visit poster's website
ginge
Site Admin


Joined: 14 Jan 2006
Posts: 1029
Location: Manchester, UK

PostPosted: Mon Dec 20, 2010 9:13 pm    Post subject: Reply with quote

Nice work, looks like a nice addition to the tools we have.

Python is a particularly nice way of doing this in a portable way. You could even compile the whole thing into a self packing exe for the windows folk.

I can't do anything about you posting links, the link ban will lift once you make 3 clean posts and are around for a week or so.

Let us know if you want to put it in the CVS when ready!

Cheers
_________________
http://www.headfuzz.co.uk/
http://www.robotfuzz.co.uk/
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
lvmarcoux



Joined: 18 Dec 2010
Posts: 5
Location: Canada

PostPosted: Thu Dec 23, 2010 5:01 pm    Post subject: Version alpha 0.5 Reply with quote

There is a new version on my website. I added servo personnality modules to manage many versions of OpenServo. Stilll it is Alpha software grade, missing mainly in documentation, error recovery and user interface niceties.
Have a nice holiday!
Back to top
View user's profile Send private message
lvmarcoux



Joined: 18 Dec 2010
Posts: 5
Location: Canada

PostPosted: Wed Jan 05, 2011 9:29 pm    Post subject: Reply with quote

I just posted the first beta version (0,5) on my site. The project is 'nearly done' Smile Still missing documentation that will be the main addition for the next release.
Back to top
View user's profile Send private message
ginge
Site Admin


Joined: 14 Jan 2006
Posts: 1029
Location: Manchester, UK

PostPosted: Wed Jan 05, 2011 11:17 pm    Post subject: Reply with quote

fantastic. This is looking really good for inclusion into the project, maybe as a centerpiece!

When I get some time I will give the new version a go and see if I can port the curve engine to it Smile
_________________
http://www.headfuzz.co.uk/
http://www.robotfuzz.co.uk/
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
chrimo



Joined: 10 Sep 2010
Posts: 5

PostPosted: Wed Jan 12, 2011 11:03 pm    Post subject: Reply with quote

Hi lvmarcoux,
excelent work, osif.py
This will be a fantastic starting point for a native python OSIF-ROS-Node...

THX
Chrimo
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OpenServo.com Forum Index -> Utilities and Tools All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group