[Bug 848] New: deployer does not import rtt libs automatically

http://bugs.orocos.org/show_bug.cgi?id=848

Summary: deployer does not import rtt libs automatically
Product: Toolchain
Version: master
Platform: All
OS/Version: All
Status: NEW
Severity: major
Priority: P3
Component: OCL
AssignedTo: orocos-dev [..] ...
ReportedBy: tinne [dot] delaet [..] ...
CC: orocos-dev [..] ...
Estimated Hours: 0.0

The rtt libs do not get imported automatically, causing the scripting not to be
available at deployment time.
I still have to do import("FULL_PATH_TO_RTT_LIBS") by hand.
This is a really annoying one since I'm using ops scripts in all my
applications (rosrun ocl deployer-gnulinux -s deploy.ops), which are now
failing all because the scripting is not available at deployment time.

[Bug 848] deployer does not import rtt libs automatically

http://bugs.orocos.org/show_bug.cgi?id=848

Tinne De Laet <tinne [dot] delaet [..] ...> changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED

--- Comment #6 from Tinne De Laet <tinne [dot] delaet [..] ...> 2011-03-14 17:31:50 CET ---
I indeed had two pluginpaths.

./rtt/plugin/pluginpath.cpp
./build/rtt/plugin/pluginpath.cpp

Problem solved after removing both of them and recompiling!

Thanks Peter!

[Bug 848] deployer does not import rtt libs automatically

http://bugs.orocos.org/show_bug.cgi?id=848

--- Comment #5 from Peter Soetens <peter [..] ...> 2011-03-14 16:43:20 CET ---
(In reply to comment #3)
> Created attachment 670
> orocos.log with ORO_LOGLEVEL=7
>
> I think this one traces down to the problem of the gnulinux/lxrt subdirectory
> that is not included when loading libs and plugins ....

Could it be that your RTT tree has a 'stale' pluginpath.cpp file ? Ie, does
find . -name pluginpath.cpp return two matches ?

Remove both to trigger a regeneration of the correct one.

Peter

[Bug 848] deployer does not import rtt libs automatically

http://bugs.orocos.org/show_bug.cgi?id=848

--- Comment #4 from Tinne De Laet <tinne [dot] delaet [..] ...> 2011-03-14 16:05:24 CET ---
Btw: a temporary workaround is to create a deploy.xml that imports the rtt libs
(using full path) and loads the scripting service (see below) for the deployer
before starting your actual xml or ops:

rosrun ocl deployer-gnulinux -s deploy.xml -s deploy.ops

(thanks for the hint Ruben)

deploy.xml should look like this
<?xml version="1.0" encoding="UTF-8"?>
&lt;!DOCTYPE properties SYSTEM "cpf.dtd"&gt;
<properties>
<simple name="Import"
type="string"><value>/home/robotics/ros/kul-ros-pkg/stacks/orocos_toolchain_ros/rtt/install/lib/orocos<value><simple>

<struct name="Deployer" type="OCL::DeploymentComponent">
<simple name="Service" type="string"><value>scripting<value><simple>
<struct>
<properties>

[Bug 848] deployer does not import rtt libs automatically

http://bugs.orocos.org/show_bug.cgi?id=848

--- Comment #3 from Tinne De Laet <tinne [dot] delaet [..] ...> 2011-03-14 16:02:10 CET ---
Created attachment 670
--> http://bugs.orocos.org/attachment.cgi?id=670
orocos.log with ORO_LOGLEVEL=7

I think this one traces down to the problem of the gnulinux/lxrt subdirectory
that is not included when loading libs and plugins ....

[Bug 848] deployer does not import rtt libs automatically

http://bugs.orocos.org/show_bug.cgi?id=848

Peter Soetens <peter [..] ...> changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED

--- Comment #2 from Peter Soetens <peter [..] ...> 2011-03-14 15:53:45 CET ---
(In reply to comment #1)
> Forgot to mention:
> I'm using the rtt_ros_integration from gitorious, all master ....
> Pulled in latest changes this morning.
>
> Tinne

Could you attach an orocos.log file with ORO_LOGLEVEL=7 ?

Peter

[Bug 848] deployer does not import rtt libs automatically

http://bugs.orocos.org/show_bug.cgi?id=848

--- Comment #1 from Tinne De Laet <tinne [dot] delaet [..] ...> 2011-03-14 14:32:47 CET ---
Forgot to mention:
I'm using the rtt_ros_integration from gitorious, all master ....
Pulled in latest changes this morning.

Tinne