Running components using Ruby

Dear Sir,

I am very satisfied with orogen capabilities and now I am trying
to follow the examples under the section "Running components using Ruby".

I wrote the following script named "test.rb"

require 'orocos'

include Orocos

Orocos.initialize

Orocos.run 'controller' do
end

Then I tried to run it with the following command

ruby test.rb

I got the following errors

ruby test.rb
/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require': no such file to load -- orocos (LoadError)
from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require'
from test.rb:1

What are the right actions to do to connect and to start module using ruby?
I apologize for my inexperience with rubby.

More over on the web site I found, in the introduction page of the section "Running components using ruby", a reference to orocos.rb but I don't have such file on my computer. Have I missed something during installation?

Thank you in advance for your support.

Gianpaolo Rizzi

Running components using Ruby

On 11/10/2010 08:43 PM, gprizzi [..] ... wrote:
> I am very satisfied with orogen capabilities and
I am glad you find orogen satisfying.

> now I am trying
> to follow the examples under the section "Running components using Ruby".

> What are the right actions to do to connect and to start module using ruby?
> I apologize for my inexperience with rubby.
The script you wrote is basically fine.

> More over on the web site I found, in the introduction page of the
> section "Running components using ruby", a reference to orocos.rb but I
> don't have such file on my computer. Have I missed something during
> installation?
The issue is that the other orocos developers did not find that part of
the toolchain worthy to be in the orocos toolchain, as they are not
interested in such capability.

What that means in practice is that the orocos toolchain ships right now
without most of the ruby-based stuff. As you might have not seen on the
documentation, the documentation is mostly about the orocos/dfki toolchain.

In practice, we are working at DFKI right now to publish not only our
extensions to the orocos toolchain, but also a lot of oroGen-based
components. We are in the process of publishing those.

If you are willing to wait a week or two for that to happen -- with
associated installation instructions and such -- then everything is OK.
If you would prefer trying it out right now, I can quickly check the
orocos-dfki-toolchain autoproj configuration and documentation so that
you get a preview of the final thing. In the latter case, obviously, you
will probably have to deal with more problems.
--
Sylvain Joyeux (Dr. Ing.)
Researcher - Space and Security Robotics
DFKI Robotics Innovation Center
Bremen, Robert-Hooke-Straße 5, 28359 Bremen, Germany

Phone: +49 421 218-64136
Fax: +49 421 218-64150
Email: sylvain [dot] joyeux [..] ...

Weitere Informationen: http://www.dfki.de
--
Orocos-Users mailing list
Orocos-Users [..] ...
http://lists.mech.kuleuven.be/mailman/listinfo/orocos-users