Xamla / torch-ros

Torch7/lua wrapper of roscpp via ffi.
http://www.xamla.com/
BSD 3-Clause "New" or "Revised" License
20 stars 5 forks source link

error when running /demo/advertiseService.lua #3

Open jingweiz opened 8 years ago

jingweiz commented 8 years ago

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 commented 8 years ago

@ 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.