Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error when running /demo/advertiseService.lua #3

Open
jingweiz opened this issue Jun 16, 2016 · 1 comment
Open

error when running /demo/advertiseService.lua #3

jingweiz opened this issue Jun 16, 2016 · 1 comment

Comments

@jingweiz
Copy link

jingweiz commented Jun 16, 2016

Hi,
I tried to run the advertiseService.lua from the demo but get the following error msg:

Service roscpp/GetLoggers
MD5: 32e97e85527d4678a8f9279894bb64b0
Message roscpp/GetLoggers_Request
Fields:
MD5: d41d8cd98f00b204e9800998ecf8427e

Message roscpp/GetLoggers_Response
Fields:
roscpp/Logger[] loggers
Message roscpp/Logger
Fields:
string name
string level
MD5: a6069a2ff40db7bd32143dd66e1f408e
MD5: 32e97e85527d4678a8f9279894bb64b0

~/deepnet/torch/install/bin/luajit: ...g/deepnet/torch/install/share/lua/5.1/ros/NodeHandle.lua:168: Invalid type of explicitly specified callback queue.
stack traceback:
[C]: in function 'error'
...g/deepnet/torch/install/share/lua/5.1/ros/NodeHandle.lua:168: in function 'advertiseService'
advertiseService.lua:36: in main chunk
[C]: in function 'dofile'
...pnet/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:145: in main chunk
[C]: at 0x00406670

Can you help me look into this issue? Thanks in advance.
btw, this is a super cool repository, exactly what I'm looking for and it is really helpful, thanks for the effort put into this!

@andreaskoepf
Copy link
Member

@ jingweiz could you please paste the following code block it into a th session and check whether the last statement evaluates to true?

ros = require 'ros'
q = ros.CallbackQueue()
torch.isTypeOf(q, ros.CallbackQueue)

If this is not working for you please check whether you have a current version of torch installed which allows to specify a namespace for classes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants