Python Script For Robosapien With Complete Ez-robot Command Set

 
#1

First, you will need to follow the instructions to modify your Robosapien so that it runs with the ez-board.

The instructions are here:

http://www.ez-robot.com/Robots/RoboSapien

Then unzip these files and put the .py scripts in a folder.

robosapien.zip

You will also need to download the EZ-robot SDK:

http://www.ez-robot.com/EZ-Builder/

In a text editor, open the rosebud.py file you downloaded, and modify the two paths found near the top. They need to point to the location of the EZ_B.dll (found inside EZ-SDK\DLL\) and robosapien_commands.py (wherever you put it). Note for non-Pythonistas: Python uses '\' rather than '/' for paths, even for scripts that run in windows.

The scripts need to be run inside IronPython, rather than Python, because of heavy dependencies on the .NET framework.

IronPython can be found here:

http://ironpython.net/download/

Once installed, run the IronPython console and type

[your path here] rosebud.py

Enjoy!

#2

That is so cool Smile This is the first time I've seen a python EZ-SDK code. Python is such a strange language to read. Thank you for sharing this. Grin

#3

It's good for matrix algebra Smile

#4

I think the dependency of indentation is what bothers me. Feels so fragile when I think about using it. I'm very OCD about the appearance of my code and have super strict formatting rules. Many people hate working with me Smile I have a document that defines the DJ Programming Standard haha

But, when it comes to Python, the code indentation is obviously mandatory in any language - but the dependency on it worries me. I also find some of the function syntax a little strange. It's like they re-invented the wheel with new words, just to be different. Smile

I'm glad we have support for Python now, thanks to you!

#5

I'll try to gradually include other example libraries. I have some wiimote stuff working and I managed to move a servo with python today.

#6

WOW DALEX very nice work,glad to see support to python.

I have a python code for my LIDAR for navigation ,may be if i post it you can take a look at it.

Since there are many of us that would love to have support for NEATO XV-11 LIDAR laser used for navigation,even sold a few to EZB robot builders

#7

I can promise to look at it Smile I'm not a professional programmer, so it's always a struggle. It will take me a while to make sense of it, if at all.

Actually one of the things I am working toward is to make a LIDAR using a wiimote IR camera and a low power IR laser. For extra coolness, I was thinking of putting the Wiimote (without batteries) in one hand of my Robosapien and the IR laser mounted on the nunchuk in the other hand. The hard part is getting the Robosapien to coordinate the two Smile

#8

ITS very small script,on lower power laser the neato lidar is about 300ma and its 360 deg.

When i get to my house tonight ,since i am having a easter party at my moms and dads house i will post the file.

Was made by another programmer.

#9

here is the python script for the neato lidar,would be very cool to others to have a interface to EZB for it.
xv-11_test.zip

#10

Hey Dalex,

Do you know if this works with the latest versions of the SDK? I have a project that this could be useful on.

Thanks
David