Orocos RTT ROS Installation

Hi,
I want to install Orocos on my RTAI 3.8 and for a first step I just try
to install the system with -DOROCOS_TARGET=gnulinux to learn more about
Orocos.
But I already start to have troubles during installation.
I did the following:

* wget
http://people.mech.kuleuven.be/~orocos/pub/stable/rtt/v2.6.0/orocos-rtt-...
* tar -xvf orocos-rtt-2.6.0-src.tar.gz
* cd orocos-toolchain-2.6.0/rtt/
* mkdir build
* cd build
* cmake .. -DOROCOS_TARGET=gnulinux -DCMAKE_PREFIX_PATH=/opt/orocos
-DCMAKE_INSTALL_PREFIX=/usr/local -DLINUX_SOURCE_DIR=/usr/src/linux
* make
* make check (should be availabe accordig to the README but results in
an error)
* make install

To my understanding make install should install the files to /opt/orocos
but it is installing everything to ../install. I now did this by hand
and copied the files from install to /opt/orocos (cd install, cp * -R
/opt/orocos).

The next question is, how can I test this installation? In the FAQ I
read that I should intall ocl and use one of the examples to see if
everything is working. So I did

* wget
http://people.mech.kuleuven.be/~orocos/pub/stable/ocl/v2.6.0/orocos-ocl-...
* tar -xvjf orocos-ocl-2.6.0-src.tar.bz2
* cd orocos-toolchain-2
* CMAKE_PREFIX_PATH=/opt/orocos cmake .

and got the following error:

* Can't build real-time logging service since log4cpp was not found.

I guess this questions/problems are just easy to solve but I tried it
for a while and can't find the solution.
Is there also a good tutorial for the connection to ROS?

Thanks

Johannes

Orocos RTT ROS Installation

On Wed, Apr 17, 2013 at 4:57 PM, Johannes Mayr <joh [dot] mayr [..] ...> wrote:
> Hi,
> I want to install Orocos on my RTAI 3.8 and for a first step I just try to
> install the system with -DOROCOS_TARGET=gnulinux to learn more about Orocos.
> But I already start to have troubles during installation.
> I did the following:
>
> wget
> http://people.mech.kuleuven.be/~orocos/pub/stable/rtt/v2.6.0/orocos-rtt-...

If you're building from source, then please use the git repository of
rtt or the orocos toolchain. We fixed many bugs since that release...

Also, it's very uncommon to only download RTT, you should download the
complete Orocos toolchain, since that is the configuration in which we
test it.

> tar -xvf orocos-rtt-2.6.0-src.tar.gz
> cd orocos-toolchain-2.6.0/rtt/
> mkdir build
> cd build
> cmake .. -DOROCOS_TARGET=gnulinux -DCMAKE_PREFIX_PATH=/opt/orocos
> -DCMAKE_INSTALL_PREFIX=/usr/local -DLINUX_SOURCE_DIR=/usr/src/linux
> make
> make check (should be availabe accordig to the README but results in an
> error)
> make install
>
> To my understanding make install should install the files to /opt/orocos but
> it is installing everything to ../install. I now did this by hand and copied
> the files from install to /opt/orocos (cd install, cp * -R /opt/orocos).

When ROS_ROOT is set, we override this, so unset ROS_ROOT.

>
> The next question is, how can I test this installation? In the FAQ I read
> that I should intall ocl and use one of the examples to see if everything is
> working. So I did
>
> wget
> http://people.mech.kuleuven.be/~orocos/pub/stable/ocl/v2.6.0/orocos-ocl-...
> tar -xvjf orocos-ocl-2.6.0-src.tar.bz2
> cd orocos-toolchain-2
> CMAKE_PREFIX_PATH=/opt/orocos cmake .
>
> and got the following error:
>
> Can't build real-time logging service since log4cpp was not found.

Part of the orocos toolchain... please use autoproj or a manual git
checkout as documented here:

http://www.orocos.org/wiki/orocos/toolchain/quick-start

>
> I guess this questions/problems are just easy to solve but I tried it for a
> while and can't find the solution.
> Is there also a good tutorial for the connection to ROS?

What we have is this:

http://www.ros.org/wiki/rtt_ros_integration
http://www.ros.org/wiki/orocos_toolchain

(use fuerte)

Peter

Orocos RTT ROS Installation

Hi,
thanks for your reply,
As recommended I installed orocos using orocos_toolchain from ros by

sudo apt-get install ros-fuerte-orocos-toolchain ros-fuerte-rtt-ros-integration ros-fuerte-rtt-geometry ros-fuerte-rtt-ros-comm ros-fuerte-rtt-common-msgs

which worked without any errors.
Now there are some things left I need to do I guess:

* recompiling rtt for RTAI (sources are in 'roscd rtt'). Can I
recompile as described in README or is there a special procedure for
ROS?
* finding the Simulink blocks for orocos again on the homepage (I
found them a while ago but can't find them anymore. Could someone
provide me a link)
* Where can I find some ocl samples in ROS? (I found 'rosrun ocl
helloworld' but I do not realy know how to use this)

Thanks Johannes

Am 17.04.2013 23:12, schrieb Peter Soetens:
> On Wed, Apr 17, 2013 at 4:57 PM, Johannes Mayr <joh [dot] mayr [..] ...> wrote:
>> Hi,
>> I want to install Orocos on my RTAI 3.8 and for a first step I just try to
>> install the system with -DOROCOS_TARGET=gnulinux to learn more about Orocos.
>> But I already start to have troubles during installation.
>> I did the following:
>>
>> wget
>> http://people.mech.kuleuven.be/~orocos/pub/stable/rtt/v2.6.0/orocos-rtt-...
> If you're building from source, then please use the git repository of
> rtt or the orocos toolchain. We fixed many bugs since that release...
>
> Also, it's very uncommon to only download RTT, you should download the
> complete Orocos toolchain, since that is the configuration in which we
> test it.
>
>> tar -xvf orocos-rtt-2.6.0-src.tar.gz
>> cd orocos-toolchain-2.6.0/rtt/
>> mkdir build
>> cd build
>> cmake .. -DOROCOS_TARGET=gnulinux -DCMAKE_PREFIX_PATH=/opt/orocos
>> -DCMAKE_INSTALL_PREFIX=/usr/local -DLINUX_SOURCE_DIR=/usr/src/linux
>> make
>> make check (should be availabe accordig to the README but results in an
>> error)
>> make install
>>
>> To my understanding make install should install the files to /opt/orocos but
>> it is installing everything to ../install. I now did this by hand and copied
>> the files from install to /opt/orocos (cd install, cp * -R /opt/orocos).
> When ROS_ROOT is set, we override this, so unset ROS_ROOT.
>
>> The next question is, how can I test this installation? In the FAQ I read
>> that I should intall ocl and use one of the examples to see if everything is
>> working. So I did
>>
>> wget
>> http://people.mech.kuleuven.be/~orocos/pub/stable/ocl/v2.6.0/orocos-ocl-...
>> tar -xvjf orocos-ocl-2.6.0-src.tar.bz2
>> cd orocos-toolchain-2
>> CMAKE_PREFIX_PATH=/opt/orocos cmake .
>>
>> and got the following error:
>>
>> Can't build real-time logging service since log4cpp was not found.
> Part of the orocos toolchain... please use autoproj or a manual git
> checkout as documented here:
>
> http://www.orocos.org/wiki/orocos/toolchain/quick-start
>
>> I guess this questions/problems are just easy to solve but I tried it for a
>> while and can't find the solution.
>> Is there also a good tutorial for the connection to ROS?
> What we have is this:
>
> http://www.ros.org/wiki/rtt_ros_integration
> http://www.ros.org/wiki/orocos_toolchain
>
> (use fuerte)
>
> Peter