Fahri,

You have some confusion about what you are doing, so you might have to read some on the http://PyroRobotics.org website. Take a look at:

http://pyrorobotics.org/?page=Using_20the_20Hemisson_20Robot

and maybe also

http://pyrorobotics.org/?page=The_20Pyro_20Interface

There is no server for a Hemisson, or rather, the Hemisson is already running the server so you don't need to start it by clicking "Server"; just turn it on.

The port /dev/rfcomm0 is hard-coded in pyrobot/plugins/robot/Hemisson.py:

http://cvs.cs.brynmawr.edu/cgi-bin/viewcvs.cgi/pyrobot/plugins/robots/Hemisson.py?rev=HEAD&content-type=text/vnd.viewcvs-markup

That should probably be written like this:

from pyrobot.robot.khepera import *
def INIT():
    retval = ask("Please enter the Hemisson Data",
                 (("Port", "6665"),
                  ("Baud", 115200),))
    if retval["ok"]:
    # For serial connected Hemisson:
        return KheperaRobot(port = retval["Port"],
                            rate = int(retval["Baud"]),
                            subtype = "Hemisson")
    else:
        raise "Cancelled!"

-Doug

Er, Fahri wrote:
Hi I am Fahri from Rowan University of New Jersey . I've just started
to use Pyro with PyroLiveCD version 4.8.5 and I'm working with a
Hemisson robot and can't get Pyro to work with the Robot.

I've connected my robot with a serial cable to the computer, and I loaded the hex file with the uploader, following the instructions
on the pyro website

http://www.pyrorobotics.org/?page=Using_20the_20Hemisson_20Robot



After loading the hex file the Hemisson doesn't have the
dance or avoid programs anymore so I'm guessing it worked.
Then I tried to use Pyro with the hemisson but it isn't working.
Here's how I do it:

I choosed different servers such as PyrobotSimulator or StageSimulator and then 
world as Tutorial.py.

Then from Robot button tried to load Hemisson.py but couldn't and had folowing 
errors



Attempting to import 'Hemisson'... Loaded '/UNIONFS/usr/lib/python2.3/site-packages/pyrobot/plugins/robots/Hemisson.pyc'! K-Team opening port /dev/rfcomm0... Exception in Tkinter callback Traceback(most recent call last): File"/usr/lib/pyhthon23/lib-tk/Tkinter.py", line 1345, in_call_return self.func(*args) File"./gui/TK.py", line 202. in loadRobot File"./gui/_init_.py"' line 518, in loadRobot File"./engine/_init_.py", line 174, in loadRobot File"./system/_init_.py", line 96, in loadINIT File"./plugins/robots/Hemisson.py", line 10, in INIT File"./robot/khepera.py", line 179, in_init_ File"./system/serial/serialutil.py", line 145, in_init_ File"./system/serial/serialposix.py", line 150, in open Serial Exception: could not open port: [Errno 6] No such device or address : '/dev/rfcomm0/


What should I do? Should I choose certain world or certain simulator? Are they about setting up cable connection and port settings for the cable? I will be appreciated if you can help me.




_______________________________________________
Pyro-users mailing list
[email protected]
http://emergent.brynmawr.edu/mailman/listinfo/pyro-users


_______________________________________________
Pyro-users mailing list
[email protected]
http://emergent.brynmawr.edu/mailman/listinfo/pyro-users

Reply via email to