Dear all,
When I try to complile the pkg resulting from orocreate, using my ros/orocos installation used for the ERF, 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 .. -- The C compiler identification is GNU -- The CXX compiler identification is GNU -- Check for working C compiler: /usr/bin/gcc -- Check for working C compiler: /usr/bin/gcc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Found PythonInterp: /usr/bin/python2.6 [rosbuild] Building package testen [rosbuild] Cached build flags older than manifests; calling rospack to get flags [rosbuild] Including /opt/ros/electric/stacks/ros_comm/clients/roslisp/cmake/roslisp.cmake [rosbuild] Including /opt/ros/electric/stacks/ros_comm/clients/rospy/cmake/rospy.cmake [rosbuild] Including /opt/ros/electric/stacks/ros_comm/clients/cpp/roscpp/cmake/roscpp.cmake Orocos-RTT found in /opt/ros/electric/stacks/orocos_toolchain/rtt/install/lib/cmake/orocos-rtt/orocos-rtt-gnulinux-libraries.cmake -- Found orocos-rtt 2.5.0 for the gnulinux target. Available transports: corba mqueue This package is in your ROS_PACKAGE_PATH, so I'm using rosbuild-style package building. [UseOrocos] Building package testen [UseOrocos] Building component testen in library testen-gnulinux [UseOrocos] Building plugin library testen-plugin in ROS tree. [UseOrocos] Building plugin library testen-service in ROS tree. [UseOrocos] Generating typekit for testen... -- Performing Test , -- Performing Test , - Failed -- checking for module 'orocos-rtt-gnulinux>=1.99.4' -- found orocos-rtt-gnulinux, version 2.5.0 -- Found orocos-rtt 2.5.0 for the gnulinux target. Available transports: corba mqueue -- - Found requested orocos-rtt components: rtt-transport-mqueue -- checking for module 'rtt_typelib-gnulinux' -- found rtt_typelib-gnulinux, version 1.0 -- checking for module 'orocos-rtt-corba-gnulinux>=2.1.0' -- found orocos-rtt-corba-gnulinux, version 2.5.0 -- Orocos reports in /opt/ros/electric/stacks/orocos_toolchain/install/include/rtt/transports/corba/rtt-corba-config.h to use the OMNIORB -- checking for module 'typelib' -- found typelib, version 1.1 [UseOrocos] Building library support [UseOrocos] Generating package version 1.0 (default version). -- Configuring done -- Generating done -- Build files have been written to: /home/u0052802/OrocosPkg/testen/build cd build && make make[1]: Entering directory `/home/u0052802/OrocosPkg/testen/build' make[2]: Entering directory `/home/u0052802/OrocosPkg/testen/build' make[3]: Entering directory `/home/u0052802/OrocosPkg/testen/build' Scanning dependencies of target rospack_genmsg_libexe make[3]: Leaving directory `/home/u0052802/OrocosPkg/testen/build' [ 0%] Built target rospack_genmsg_libexe make[3]: Entering directory `/home/u0052802/OrocosPkg/testen/build' Scanning dependencies of target rosbuild_precompile make[3]: Leaving directory `/home/u0052802/OrocosPkg/testen/build' [ 0%] Built target rosbuild_precompile make[3]: Entering directory `/home/u0052802/OrocosPkg/testen/build' Scanning dependencies of target support make[3]: Leaving directory `/home/u0052802/OrocosPkg/testen/build' make[3]: Entering directory `/home/u0052802/OrocosPkg/testen/build' [ 4%] Building CXX object CMakeFiles/support.dir/support.cpp.o Linking CXX shared library ../lib/libsupport-gnulinux.so make[3]: Leaving directory `/home/u0052802/OrocosPkg/testen/build' [ 4%] Built target support make[3]: Entering directory `/home/u0052802/OrocosPkg/testen/build' Scanning dependencies of target testen make[3]: Leaving directory `/home/u0052802/OrocosPkg/testen/build' make[3]: Entering directory `/home/u0052802/OrocosPkg/testen/build' [ 9%] Building CXX object CMakeFiles/testen.dir/testen-component.cpp.o In file included from /home/u0052802/OrocosPkg/testen/testen-component.cpp:1: /home/u0052802/OrocosPkg/testen/testen-component.hpp:11: error: expected ‘)’ before ‘const’ /home/u0052802/OrocosPkg/testen/testen-component.cpp: In function ‘RTT::TaskContext* createComponent(std::string)’: /home/u0052802/OrocosPkg/testen/testen-component.cpp:16: error: no matching function for call to ‘Testen::Testen(std::string&)’ /home/u0052802/OrocosPkg/testen/testen-component.hpp:9: note: candidates are: Testen::Testen() /home/u0052802/OrocosPkg/testen/testen-component.hpp:9: note: Testen::Testen(Testen&) make[3]: *** [CMakeFiles/testen.dir/testen-component.cpp.o] Error 1 make[3]: Leaving directory `/home/u0052802/OrocosPkg/testen/build' make[2]: *** [CMakeFiles/testen.dir/all] Error 2 make[2]: Leaving directory `/home/u0052802/OrocosPkg/testen/build' make[1]: *** [all] Error 2 make[1]: Leaving directory `/home/u0052802/OrocosPkg/testen/build' make: *** [all] Error 2
I am using Lucid. What am I doing wrong? Thanks!
Bert