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

Cannot run the demo #16

Closed ghost closed 7 years ago

ghost commented 7 years ago

I compiled torch ros by luarocks make within the torch-ros folder. (I also tried catkin_make in the ROS workspace with torch-ros in it). I had roscore running. But when I tried some demos, it kept returning errors screen

I'm not sure what's going wrong or how should run those demos correctly? Can someone please help?

andreaskoepf commented 7 years ago

Are you using torch with luajit or lua 5.2? torch-ros only supports luajit. Does it compile without errors (using luarocks make)? what is the output if you evaluate the global ros variable in th? It should normally contain the NodeHandle() ctor.

ghost commented 7 years ago

I have luajit and lua5.1.5 installed, but luajit returned same error as th. There is no error coming out during make & make install or just luarocks make (I tried both). 3

When require 'ros' in th, it shows me: 2

It doesn't look like correct (red colour looks like error, or probably not). I'm not sure what goes wrong.

ghost commented 7 years ago

I removed all the stuff related to torch and lua. Re install them, luarocks make the torch-ros. Now it's working. Close issue. Thanks!