OTL / rosruby

ruby ROS client.
http://otl.github.com/rosruby/
BSD 3-Clause "New" or "Revised" License
25 stars 5 forks source link

Kinetic Kame support #36

Open sdalu opened 7 years ago

sdalu commented 7 years ago

It would be nice to have it running on the ROS Kinetic Kame version (and would avoid the pain to learn python :) )

bakongo commented 7 years ago

I was able to build on kinetic using the last change in the indigo-devel branch. I am using ruby 2.4

I then copied your sample publisher to src/rosruby, changed it to be executable, and ran it with rosrun rosruby publisher.rb. The failure is now this:

 rosrun rosruby publisher.rb
/home/ubuntu/.rbenv/versions/2.4.1/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- gserver (LoadError)
    from /home/ubuntu/.rbenv/versions/2.4.1/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /home/ubuntu/pincair/devel/.private/rosruby/lib/ruby/vendor_ruby/ros/tcpros/server.rb:8:in `<top (required)>'

It seems that gserver is no longer part of ruby core, and is now a gem. (see similar issue).

Do you have any suggestions on how to fix this? Is there anyplace I can specify a Gemfile?

bakongo commented 7 years ago

update. solved the gserver issue by copying the gserver code to the rosruby lib/ directory. Like so:

curl -fsSL https://raw.githubusercontent.com/ruby/gserver/master/lib/gserver.rb > $HOME/<stuff>/rosruby/lib/gserver.rb

OTL commented 7 years ago

hi, thank you for debugging.

rosruby does not use gem in the core system now (using only for tests or docs). copying might become a quick fix. (I cannot replace it with other default ruby library, because i dont have enough time now.)

Do you know the license of the gserver?

Another possibility is using rosdep. It seems that it supports gem(i dont know the details).

https://github.com/ros/rosdistro/blob/master/rosdep/ruby.yaml

2017/07/21 7:11 "Daniel Wiesmann" notifications@github.com:

update. solved the gserver issue by copying the gserver code to the rosruby lib/ directory. Like so:

curl -fsSL https://raw.githubusercontent.com/ruby/gserver/master/lib/ gserver.rb > $HOME//rosruby/lib/gserver.rb

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/OTL/rosruby/issues/36#issuecomment-316844750, or mute the thread https://github.com/notifications/unsubscribe-auth/AAMpJq_f46cCVfeli3pkMUzChy2DdZEnks5sP9CrgaJpZM4LpJeZ .

bakongo commented 7 years ago

Hi @OTL, the license is the ruby license: https://github.com/ruby/gserver/blob/master/LICENSE.txt

Here is the project repo: https://github.com/ruby/gserver