compilation of basic pkg made with Orocreate-pkg fails

Dear all,

When I try to complile the pkg resulting from orocreate, using my ros/orocos installation used for the ERF workshop, I get the following problem...


u0052802@machine:~/OrocosPkg/lwr_fri$ echo $ROS_PACKAGE_PATH
/home/u0052802/OrocosPkg:/home/u0052802/RosPkg:/opt/ros/electric/stacks:/opt/ros/electric/ros:/home/u0052802/erf/cob_common:/home/u0052802/erf/youbot-ros-pkg-kdl:/home/u0052802/erf/youbot-ros-pkg:/home/u0052802/erf/motion_control:/home/u0052802/erf/youbot_hardware:/home/u0052802/erf/soem:/home/u0052802/erf/itasc_examples:/home/u0052802/erf/rtt_geometry:/home/u0052802/erf/trajectory_generators:/home/u0052802/erf/rttlua_completion:/home/u0052802/erf/rfsm-rtt-example:/home/u0052802/erf/rFSM:/home/u0052802/erf/itasc_robots_objects:/home/u0052802/erf/itasc_tasks:/home/u0052802/erf/itasc_solvers:/home/u0052802/erf/itasc_core:/home/u0052802/erf/itasc
u0052802@machine:~/OrocosPkg/lwr_fri$
u0052802@machine:~/OrocosPkg/lwr_fri$ cd ..
u0052802@machine:~/OrocosPkg$ orocreate-pkg testen
Using templates at /opt/ros/electric/stacks/orocos_toolchain/ocl/scripts/pkg/templates...
Package testen created in directory /home/u0052802/OrocosPkg/testen
u0052802@machine:~/OrocosPkg$ cd testen/
u0052802@machine:~/OrocosPkg/testen$ ls
CMakeLists.txt  Makefile  manifest.xml  support.cpp  testen-component.cpp  testen-component.hpp  testen-plugin.cpp  testen-service.cpp  testen-types.hpp
u0052802@machine:~/OrocosPkg/testen$ make
mkdir -p bin
cd build && cmake -Wdev -DCMAKE_TOOLCHAIN_FILE=`rospack find rosbuild`/rostoolchain.cmake  ..

Ruben Smits's picture

compilation of basic pkg made with Orocreate-pkg fails

Can you provide the testen-component.cpp and testend-component.hpp
files? Can provide provide the commits at which you're OCL/RTT HEADS
are? Did you try with the latest toolchain 2.5 branches?

Ruben

On Mon, Sep 10, 2012 at 1:36 PM, Bert Willaert
<Bert [dot] Willaert [..] ...> wrote:
> Dear all,
>
> When I try to complile the pkg resulting from orocreate, using my ros/orocos
> installation used for the ERF workshop, I get the following problem...
>
> &#10;&gt; u0052802@machine:~/OrocosPkg/lwr_fri$ echo $ROS_PACKAGE_PATH&#10;&gt; /home/u0052802/OrocosPkg:/home/u0052802/RosPkg:/opt/ros/electric/stacks:/opt/ros/electric/ros:/home/u0052802/erf/cob_common:/home/u0052802/erf/youbot-ros-pkg-kdl:/home/u0052802/erf/youbot-ros-pkg:/home/u0052802/erf/motion_control:/home/u0052802/erf/youbot_hardware:/home/u0052802/erf/soem:/home/u0052802/erf/itasc_examples:/home/u0052802/erf/rtt_geometry:/home/u0052802/erf/trajectory_generators:/home/u0052802/erf/rttlua_completion:/home/u0052802/erf/rfsm-rtt-example:/home/u0052802/erf/rFSM:/home/u0052802/erf/itasc_robots_objects:/home/u0052802/erf/itasc_tasks:/home/u0052802/erf/itasc_solvers:/home/u0052802/erf/itasc_core:/home/u0052802/erf/itasc&#10;&gt; u0052802@machine:~/OrocosPkg/lwr_fri$&#10;&gt; u0052802@machine:~/OrocosPkg/lwr_fri$ cd ..&#10;&gt; u0052802@machine:~/OrocosPkg$ orocreate-pkg testen&#10;&gt; Using templates at&#10;&gt; /opt/ros/electric/stacks/orocos_toolchain/ocl/scripts/pkg/templates...&#10;&gt; Package testen created in directory /home/u0052802/OrocosPkg/testen&#10;&gt; u0052802@machine:~/OrocosPkg$ cd testen/&#10;&gt; u0052802@machine:~/OrocosPkg/testen$ ls&#10;&gt; CMakeLists.txt  Makefile  manifest.xml  support.cpp  testen-component.cpp&#10;&gt; testen-component.hpp  testen-plugin.cpp  testen-service.cpp&#10;&gt; testen-types.hpp&#10;&gt; u0052802@machine:~/OrocosPkg/testen$ make&#10;&gt; mkdir -p bin&#10;&gt; cd build &amp;&amp; cmake -Wdev -DCMAKE_TOOLCHAIN_FILE=`rospack find&#10;&gt; rosbuild`/rostoolchain.cmake  ..

compilation of basic pkg made with Orocreate-pkg fails

Hi Ruben,

I installed ros/orocos using the Debian Packages. My orocos version is 0.5.1-s1336558277~lucid.
The files are in attachment, but also other pkgs (older pkgs that worked fined for another installation) give the same error...

Bert
________________________________________
Van: ruben [dot] smits [..] ... [ruben [dot] smits [..] ...] namens Ruben Smits [ruben [dot] smits [..] ...]
Verzonden: maandag 10 september 2012 16:07
To: Bert Willaert
Cc: orocos-users [..] ...
Onderwerp: Re: [Orocos-users] compilation of basic pkg made with Orocreate-pkg fails

Can you provide the testen-component.cpp and testend-component.hpp
files? Can provide provide the commits at which you're OCL/RTT HEADS
are? Did you try with the latest toolchain 2.5 branches?

Ruben

On Mon, Sep 10, 2012 at 1:36 PM, Bert Willaert
<Bert [dot] Willaert [..] ...> wrote:
> Dear all,
>
> When I try to complile the pkg resulting from orocreate, using my ros/orocos
> installation used for the ERF workshop, I get the following problem...
>
> &#10;&gt; u0052802@machine:~/OrocosPkg/lwr_fri$ echo $ROS_PACKAGE_PATH&#10;&gt; /home/u0052802/OrocosPkg:/home/u0052802/RosPkg:/opt/ros/electric/stacks:/opt/ros/electric/ros:/home/u0052802/erf/cob_common:/home/u0052802/erf/youbot-ros-pkg-kdl:/home/u0052802/erf/youbot-ros-pkg:/home/u0052802/erf/motion_control:/home/u0052802/erf/youbot_hardware:/home/u0052802/erf/soem:/home/u0052802/erf/itasc_examples:/home/u0052802/erf/rtt_geometry:/home/u0052802/erf/trajectory_generators:/home/u0052802/erf/rttlua_completion:/home/u0052802/erf/rfsm-rtt-example:/home/u0052802/erf/rFSM:/home/u0052802/erf/itasc_robots_objects:/home/u0052802/erf/itasc_tasks:/home/u0052802/erf/itasc_solvers:/home/u0052802/erf/itasc_core:/home/u0052802/erf/itasc&#10;&gt; u0052802@machine:~/OrocosPkg/lwr_fri$&#10;&gt; u0052802@machine:~/OrocosPkg/lwr_fri$ cd ..&#10;&gt; u0052802@machine:~/OrocosPkg$ orocreate-pkg testen&#10;&gt; Using templates at&#10;&gt; /opt/ros/electric/stacks/orocos_toolchain/ocl/scripts/pkg/templates...&#10;&gt; Package testen created in directory /home/u0052802/OrocosPkg/testen&#10;&gt; u0052802@machine:~/OrocosPkg$ cd testen/&#10;&gt; u0052802@machine:~/OrocosPkg/testen$ ls&#10;&gt; CMakeLists.txt  Makefile  manifest.xml  support.cpp  testen-component.cpp&#10;&gt; testen-component.hpp  testen-plugin.cpp  testen-service.cpp&#10;&gt; testen-types.hpp&#10;&gt; u0052802@machine:~/OrocosPkg/testen$ make&#10;&gt; mkdir -p bin&#10;&gt; cd build &amp;&amp; cmake -Wdev -DCMAKE_TOOLCHAIN_FILE=`rospack find&#10;&gt; rosbuild`/rostoolchain.cmake  ..

Ruben Smits's picture

compilation of basic pkg made with Orocreate-pkg fails

You probably updated your gcc version, a while ago it got a lot more
restrictive on the use of std types. The header is using a string,
without defining the std namespace

You should adapt all your component as such that the string class is
known: prefix all strings, vectors etc with std or add the
using namespace std;
line somewhere at the top of your file.

Ruben

On Mon, Sep 10, 2012 at 4:30 PM, Bert Willaert
<Bert [dot] Willaert [..] ...> wrote:
> Hi Ruben,
>
> I installed ros/orocos using the Debian Packages. My orocos version is 0.5.1-s1336558277~lucid.
> The files are in attachment, but also other pkgs (older pkgs that worked fined for another installation) give the same error...
>
> Bert
> ________________________________________
> Van: ruben [dot] smits [..] ... [ruben [dot] smits [..] ...] namens Ruben Smits [ruben [dot] smits [..] ...]
> Verzonden: maandag 10 september 2012 16:07
> To: Bert Willaert
> Cc: orocos-users [..] ...
> Onderwerp: Re: [Orocos-users] compilation of basic pkg made with Orocreate-pkg fails
>
> Can you provide the testen-component.cpp and testend-component.hpp
> files? Can provide provide the commits at which you're OCL/RTT HEADS
> are? Did you try with the latest toolchain 2.5 branches?
>
> Ruben
>
> On Mon, Sep 10, 2012 at 1:36 PM, Bert Willaert
> <Bert [dot] Willaert [..] ...> wrote:
>> Dear all,
>>
>> When I try to complile the pkg resulting from orocreate, using my ros/orocos
>> installation used for the ERF workshop, I get the following problem...
>>
>> &#10;&gt;&gt; u0052802@machine:~/OrocosPkg/lwr_fri$ echo $ROS_PACKAGE_PATH&#10;&gt;&gt; /home/u0052802/OrocosPkg:/home/u0052802/RosPkg:/opt/ros/electric/stacks:/opt/ros/electric/ros:/home/u0052802/erf/cob_common:/home/u0052802/erf/youbot-ros-pkg-kdl:/home/u0052802/erf/youbot-ros-pkg:/home/u0052802/erf/motion_control:/home/u0052802/erf/youbot_hardware:/home/u0052802/erf/soem:/home/u0052802/erf/itasc_examples:/home/u0052802/erf/rtt_geometry:/home/u0052802/erf/trajectory_generators:/home/u0052802/erf/rttlua_completion:/home/u0052802/erf/rfsm-rtt-example:/home/u0052802/erf/rFSM:/home/u0052802/erf/itasc_robots_objects:/home/u0052802/erf/itasc_tasks:/home/u0052802/erf/itasc_solvers:/home/u0052802/erf/itasc_core:/home/u0052802/erf/itasc&#10;&gt;&gt; u0052802@machine:~/OrocosPkg/lwr_fri$&#10;&gt;&gt; u0052802@machine:~/OrocosPkg/lwr_fri$ cd ..&#10;&gt;&gt; u0052802@machine:~/OrocosPkg$ orocreate-pkg testen&#10;&gt;&gt; Using templates at&#10;&gt;&gt; /opt/ros/electric/stacks/orocos_toolchain/ocl/scripts/pkg/templates...&#10;&gt;&gt; Package testen created in directory /home/u0052802/OrocosPkg/testen&#10;&gt;&gt; u0052802@machine:~/OrocosPkg$ cd testen/&#10;&gt;&gt; u0052802@machine:~/OrocosPkg/testen$ ls&#10;&gt;&gt; CMakeLists.txt  Makefile  manifest.xml  support.cpp  testen-component.cpp&#10;&gt;&gt; testen-component.hpp  testen-plugin.cpp  testen-service.cpp&#10;&gt;&gt; testen-types.hpp&#10;&gt;&gt; u0052802@machine:~/OrocosPkg/testen$ make&#10;&gt;&gt; mkdir -p bin&#10;&gt;&gt; cd build &amp;&amp; cmake -Wdev -DCMAKE_TOOLCHAIN_FILE=`rospack find&#10;&gt;&gt; rosbuild`/rostoolchain.cmake  ..