VerifiableRobotics / LTLMoP

A toolkit for designing and implementing LTL-based task specifications.
http://ltlmop.github.io
GNU General Public License v3.0
56 stars 69 forks source link

handlers in robot files could not be loaded #51

Closed garthbjerk closed 10 years ago

garthbjerk commented 10 years ago

I am attempting to use a nao robot in the execution environment but it appears the handlers for most robot types could not be loaded from .robot file in handlerSubsystem.py. Do I need to create custom handlers or are these available somewhere? Namely, the init handler is missing for the nao robot. Looking at the init python file in lib/handlers/robots/nao gives me a blank file.

cfinucane commented 10 years ago

Do you have the Python SDK for the Nao installed? You can check this by seeing whether a plain import naoqi succeeds in an interactive Python session.

__init__.py files are generally always blank, so that should be unrelated (see http://stackoverflow.com/questions/448271/what-is-init-py-for)

garthbjerk commented 10 years ago

Hi,

After installing the Nao Python SDK, I am able to select the NAO robot. Thanks for the information. Yet, once I go to run the simulation, there are connection problems. Attached are the status log messages.

Garth

On Mon, Dec 2, 2013 at 1:37 PM, Cameron Finucane notifications@github.comwrote:

Do you have the Python SDK for the Nao installed? You can check this by seeing whether a plain import naoqi succeeds in an interactive Python session.

init.py files are generally always blank, so that should be unrelated (see http://stackoverflow.com/questions/448271/what-is-init-py-for)

— Reply to this email directly or view it on GitHubhttps://github.com/LTLMoP/LTLMoP/issues/51#issuecomment-29655016 .

[20:30:25] >> Connecting... [20:30:46] Traceback (most recent call last): [20:30:46] File "lib\execute.py", line 427, in [20:30:46] execute_main(listen_port, spec_file, aut_file, show_gui) [20:30:46] File "lib\execute.py", line 381, in execute_main [20:30:46] e.initialize(spec_file, aut_file, firstRun=True) [20:30:46] File "lib\execute.py", line 213, in initialize [20:30:46] self.proj.importHandlers() [20:30:46] File "g:\LTLMoP\LTLMoP-LTLMoP-c80af99\src\lib\project.py", line 326, in importHandlers [20:30:46] self.hsub.importHandlers(self.currentConfig, all_handler_types) [20:30:46] File "g:\LTLMoP\LTLMoP-LTLMoP-c80af99\src\lib\handlerSubsystem.py", line 638, in importHandlers [20:30:46] self.proj.h_instance[handler_type] = eval('handlerClass'+handlerObj.toString(False)) [20:30:46] File "", line 1, in [20:30:46] File "g:\LTLMoP\LTLMoP-LTLMoP-c80af99\src\lib\handlers\pose\viconPose.py", line 31, in init [20:30:46] self.s.connect(self.host,self.port) [20:30:46] File "g:\LTLMoP\LTLMoP-LTLMoP-c80af99\src\lib\handlers\pose_pyvicon.py", line 22, in connect [20:30:46] self.sock.connect((host, port)) [20:30:46] File "g:\Python27\lib\socket.py", line 224, in meth [20:30:46] return getattr(self._sock,name)(*args) [20:30:46] socket [20:30:46] . [20:30:46] error [20:30:46] : [20:30:46] [Errno 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond

cfinucane commented 10 years ago

It looks like you are trying to use the Vicon pose handler (the default setting for the Nao), but I imagine that this is not what you want (or, at the very least, the IP address needs to be configured to something appropriate for your setup). You can try the NullPose pose handler if you just want to get the Nao doing something, though.

garthbjerk commented 10 years ago

Thanks for the help. It appears there is no virtual simulator for the Nao though? I'll have to wait until I can get back in the robotics lab here. If this ticket is still open you can close it.

On Mon, Dec 16, 2013 at 11:50 AM, Cameron Finucane <notifications@github.com

wrote:

It looks like you are trying to use the Vicon pose handler (the default setting for the Nao), but I imagine that this is not what you want (or, at the very least, the IP address needs to be configured to something appropriate for your setup). You can try the NullPose pose handler if you just want to get the Nao doing something, though.

— Reply to this email directly or view it on GitHubhttps://github.com/LTLMoP/LTLMoP/issues/51#issuecomment-30688251 .

cfinucane commented 10 years ago

Yeah, it would be great if someone implemented support for Webots or something eventually :) Closing.