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

Lua 5.1/5.2 supported? #10

Open vkee opened 8 years ago

vkee commented 8 years ago

Is Lua 5.1/5.2 supported? I updated to that from the default installed with Torch for other packages and it seems to have broken torch-ros.

andreaskoepf commented 8 years ago

Hi Vincent,

I have not yet tested with Lua 5.1/5.2 - probably it is not working out of the box. I guess there could be some minor differences between the luajit ffi and the facebook luaffifb (https://github.com/facebook/luaffifb) and I am not sure if there is an equivalent of the lua bit operation module (http://bitop.luajit.org/) for Lua 5.1/5.2. What error messages are you seeing? Is torch7 itself still working correctly?

Andreas

vkee commented 8 years ago

Torch7 itself works fine for me.

The error comes up when I try to make a publisher. This is the error message.

/home/rosie/torch/install/bin/lua: /home/rosie/torch/install/share/lua/5.2/ros/utils.lua:42: type void* has no member cdata stack traceback: [C]: in function '__index' /home/rosie/torch/install/share/lua/5.2/ros/utils.lua:42: in function 'cdata' /home/rosie/torch/install/share/lua/5.2/ros/NodeHandle.lua:199: in function 'advertise' ...e/rosie/catkin_ws/src/live_torch/scripts/segment_img.lua:50: in main chunk [C]: in function 'dofile' ...osie/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:145: in main chunk [C]: in ?