Doubts installing orocos_toolchain_ros

hello all

I am new in linux, ros and orocos, so my questions are basic and perhaps dumb. I already installed ros in my computer and tested it. I installed as well the orocos_toolchain_ros following the instructions in http://www.ros.org/wiki/orocos_toolchain_ros (since i work with Ubuntu I just put: sudo apt-get install ros-cturtle-orocos-toolchain-ros).

As far as I understand, once I install it, it also installs the Orocos Toolchain v2.3.x automatically, but when I try to execute any of the orocos programs (typegen, deployer-gnulinux, ctaskbrowser,...), the system doesnt find them.

Do i need to install also the Orocos Toolchain v2.3.x by myself (as said in http://www.orocos.org/wiki/orocos/toolchain/quick-start)???

    • In case I have to install it: after following the instructions of the quick-start site, do i have to execute any 'cmake', 'make', 'make install' command in any place of the toolchain main folder to use all Orocos programs?

BR

Doubts installing orocos_toolchain_ros

On Wednesday 11 May 2011 21:35:13 focke [dot] 85 [..] ... wrote:
> hello all
>
> I am new in linux, ros and orocos, so my questions are basic and perhaps
> dumb. I already installed ros in my computer and tested it. I installed as
> well the orocos_toolchain_ros following the instructions in
> http://www.ros.org/wiki/orocos_toolchain_ros (since i work with Ubuntu I
> just put: sudo apt-get install ros-cturtle-orocos-toolchain-ros).
>
> As far as I understand, once I install it, it also installs the Orocos
> Toolchain v2.3.x automatically, but when I try to execute any of the
> orocos programs (typegen, deployer-gnulinux, ctaskbrowser,...), the system
> doesnt find them.

In ros systems, you need to do two things:
1. source env.sh
2. use 'rosrun' to start OCL programs, for example:

rosrun ocl deployer-gnulinux

3. typegen can be used without rosrun, because it's put in your PATH by env.sh

>
> Do i need to install also the Orocos Toolchain v2.3.x by myself (as said in
> http://www.orocos.org/wiki/orocos/toolchain/quick-start)???

No.

>
> **In case I have to install it: after following the instructions of the
> quick-start site, do i have to execute any 'cmake', 'make', 'make install'
> command in any place of the toolchain main folder to use all Orocos
> programs?
>

No. Bootstrap compiles everything, but you also need to source the env.sh file.

Peter

Ruben Smits's picture

Doubts installing orocos_toolchain_ros

On Thursday 12 May 2011 02:55:45 focke [dot] 85 [..] ... wrote:
> Thank peter
>
> I did what you told me and it works. However, I haven't found the
> ctaskbrowser program,

CORBA was disabled in cturtle. It is available in the diamondback packages.

> and when I type 'typegen' or 'orogen' in the
> terminal, a run-time error appears:
>
> ~$ typegen
>
> /opt/ros/cturtle/stacks/orocos_toolchain_ros/typelib/build/orocos-toolchain-
> typelib/bindings/ruby/lib/typelib.rb:1023:in `do_import': plugin not found
> (RuntimeError) from
> /opt/ros/cturtle/stacks/orocos_toolchain_ros/typelib/build/orocos-toolchain
> -typelib/bindings/ruby/lib/typelib.rb:1023:in `import' from
> /opt/ros/cturtle/stacks/orocos_toolchain_ros/orogen/build/orocos-toolchain-
> orogen/lib/orogen/typekit.rb:608:in `initialize' from
> /opt/ros/cturtle/stacks/orocos_toolchain_ros/orogen/build/orocos-toolchain-
> orogen/bin/typegen:11:in `new' from
> /opt/ros/cturtle/stacks/orocos_toolchain_ros/orogen/build/orocos-toolchain-
> orogen/bin/typegen:11
>

I think we had a problem with the env.sh file in the orocos_toolchain_ros
directory. This should be fixed in diamondback.

Unless you have a compelling reason not to switch to diamondback I would
propose to use the diamondback packages.

>
> BR
>
> Santiago

-- Ruben

>

peter wrote:
On Wednesday 11 May 2011 21:35:13 focke [dot] 85 [..] ... wrote:
> > hello all
> >
> > I am new in linux, ros and orocos, so my questions are basic and perhaps
> > dumb. I already installed ros in my computer and tested it. I installed
> > as well the orocos_toolchain_ros following the instructions in
> > http://www.ros.org/wiki/orocos_toolchain_ros (since i work with Ubuntu I
> > just put: sudo apt-get install ros-cturtle-orocos-toolchain-ros).
> >
> > As far as I understand, once I install it, it also installs the Orocos
> > Toolchain v2.3.x automatically, but when I try to execute any of the
> > orocos programs (typegen, deployer-gnulinux, ctaskbrowser,...), the
> > system doesnt find them.
>
> In ros systems, you need to do two things:
> 1. source env.sh
> 2. use 'rosrun' to start OCL programs, for example:
>
> rosrun ocl deployer-gnulinux
>
> 3. typegen can be used without rosrun, because it's put in your PATH by
> env.sh
>
> > Do i need to install also the Orocos Toolchain v2.3.x by myself (as said
> > in http://www.orocos.org/wiki/orocos/toolchain/quick-start)???
>
> No.
>
> > **In case I have to install it: after following the instructions of the
> > quick-start site, do i have to execute any 'cmake', 'make', 'make
> > install' command in any place of the toolchain main folder to use all
> > Orocos programs?
>
> No. Bootstrap compiles everything, but you also need to source the env.sh
> file.
>
> Peter
>

Re: Doubts installing orocos_toolchain_ros

Thank peter

I did what you told me and it works. However, I haven't found the ctaskbrowser program, and when I type 'typegen' or 'orogen' in the terminal, a run-time error appears:

~$ typegen

/opt/ros/cturtle/stacks/orocos_toolchain_ros/typelib/build/orocos-toolchain-typelib/bindings/ruby/lib/typelib.rb:1023:in `do_import': plugin not found (RuntimeError)

    from /opt/ros/cturtle/stacks/orocos_toolchain_ros/typelib/build/orocos-toolchain-typelib/bindings/ruby/lib/typelib.rb:1023:in `import'
    from /opt/ros/cturtle/stacks/orocos_toolchain_ros/orogen/build/orocos-toolchain-orogen/lib/orogen/typekit.rb:608:in `initialize'
    from /opt/ros/cturtle/stacks/orocos_toolchain_ros/orogen/build/orocos-toolchain-orogen/bin/typegen:11:in `new'
    from /opt/ros/cturtle/stacks/orocos_toolchain_ros/orogen/build/orocos-toolchain-orogen/bin/typegen:11
BR

Santiago

peter wrote:
On Wednesday 11 May 2011 21:35:13 focke [dot] 85 [..] ... wrote: > hello all > > I am new in linux, ros and orocos, so my questions are basic and perhaps > dumb. I already installed ros in my computer and tested it. I installed as > well the orocos_toolchain_ros following the instructions in > http://www.ros.org/wiki/orocos_toolchain_ros (since i work with Ubuntu I > just put: sudo apt-get install ros-cturtle-orocos-toolchain-ros). > > As far as I understand, once I install it, it also installs the Orocos > Toolchain v2.3.x automatically, but when I try to execute any of the > orocos programs (typegen, deployer-gnulinux, ctaskbrowser,...), the system > doesnt find them.

In ros systems, you need to do two things: 1. source env.sh 2. use 'rosrun' to start OCL programs, for example:

rosrun ocl deployer-gnulinux

3. typegen can be used without rosrun, because it's put in your PATH by env.sh

> > Do i need to install also the Orocos Toolchain v2.3.x by myself (as said in > http://www.orocos.org/wiki/orocos/toolchain/quick-start)???

No.

> > **In case I have to install it: after following the instructions of the > quick-start site, do i have to execute any 'cmake', 'make', 'make install' > command in any place of the toolchain main folder to use all Orocos > programs? >

No. Bootstrap compiles everything, but you also need to source the env.sh file.

Peter