Compiling error when using ros-diamondback-orocos-toolchain-ros

Hi all,

I have an Orocos component (PEA_Orocos_Right) using the rtt_ros_integration for communication with ROS. When using ROS cturtle and RTT v2.1.0 it does compile. However when i switch to ROS diamondback with RTT v2.2.0 I get the error message as shown below. Variables and ports appear to be not declared all off a sudden while they are. Does anybody know how this problem can be solved?

Errormessage:

... ... ... [ rosmake ] Last 40 linesA_Orocos_Right: 2.9 sec ] [ 1 Active 23/24 Complete ] {-------------------------------------------------------------------------------

  /home/s051045/tue-ros-pkg/trunk/PEA_Orocos_Right/src/PEA_Orocos_Right.cpp:328: error: ‘initTime’ was not declared in this scope
  /home/s051045/tue-ros-pkg/trunk/PEA_Orocos_Right/src/PEA_Orocos_Right.cpp:329: error: ‘deltaTime’ was not declared in this scope
  /home/s051045/tue-ros-pkg/trunk/PEA_Orocos_Right/src/PEA_Orocos_Right.cpp:329: error: ‘prevTime’ was not declared in this scope
  /home/s051045/tue-ros-pkg/trunk/PEA_Orocos_Right/src/PEA_Orocos_Right.cpp: In member function ‘void PEA::PEA_Orocos_Right::stopHook()’:
  /home/s051045/tue-ros-pkg/trunk/PEA_Orocos_Right/src/PEA_Orocos_Right.cpp:432: error: ‘myfile’ was not declared in this scope
  /home/s051045/tue-ros-pkg/trunk/PEA_Orocos_Right/src/PEA_Orocos_Right.cpp: In member function ‘bool PEA::PEA_Orocos_Right::readReferences()’:
  /home/s051045/tue-ros-pkg/trunk/PEA_Orocos_Right/src/PEA_Orocos_Right.cpp:438: error: ‘NewData’ was not declared in this scope
  /home/s051045/tue-ros-pkg/trunk/PEA_Orocos_Right/src/PEA_Orocos_Right.cpp:438: error: ‘invKinDataPort’ was not declared in this scope
  /home/s051045/tue-ros-pkg/trunk/PEA_Orocos_Right/src/PEA_Orocos_Right.cpp:449: error: ‘timeNow’ was not declared in this scope
  /home/s051045/tue-ros-pkg/trunk/PEA_Orocos_Right/src/PEA_Orocos_Right.cpp:457: error: ‘NewData’ was not declared in this scope
  /home/s051045/tue-ros-pkg/trunk/PEA_Orocos_Right/src/PEA_Orocos_Right.cpp:457: error: ‘gripperDataPort’ was not declared in this scope
  /home/s051045/tue-ros-pkg/trunk/PEA_Orocos_Right/src/PEA_Orocos_Right.cpp: In member function ‘bool PEA::PEA_Orocos_Right::logData()’:
  /home/s051045/tue-ros-pkg/trunk/PEA_Orocos_Right/src/PEA_Orocos_Right.cpp:696: error: ‘dataPort1’ was not declared in this scope
  /home/s051045/tue-ros-pkg/trunk/PEA_Orocos_Right/src/PEA_Orocos_Right.cpp:697: error: ‘dataPort2’ was not declared in this scope
  /home/s051045/tue-ros-pkg/trunk/PEA_Orocos_Right/src/PEA_Orocos_Right.cpp:698: error: ‘dataPort3’ was not declared in this scope
... ... ... ...
  /home/s051045/tue-ros-pkg/trunk/PEA_Orocos_Right/src/PEA_Orocos_Right.cpp:711: error: ‘dataPort15’ was not declared in this scope
  /home/s051045/tue-ros-pkg/trunk/PEA_Orocos_Right/src/PEA_Orocos_Right.cpp:723: error: ‘invKinDataPortOut’ was not declared in this scope
  In file included from /home/s051045/tue-ros-pkg/trunk/PEA_Orocos_Right/src/PEA_Orocos_Right.cpp:12:
  /opt/ros/diamondback/stacks/orocos_toolchain_ros/ocl/install/include/ocl/Component.hpp: In static member function ‘static RTT::TaskContext* OCL::ComponentFactoryLoader0::createComponent(std::string) [with C = PEA::PEA_Orocos_Right]’:
  /opt/ros/diamondback/stacks/orocos_toolchain_ros/ocl/install/include/ocl/Component.hpp:87:   instantiated from ‘OCL::ComponentFactoryLoader1::ComponentFactoryLoader(std::string) [with C = PEA::PEA_Orocos_Right]’
  /home/s051045/tue-ros-pkg/trunk/PEA_Orocos_Right/src/PEA_Orocos_Right.cpp:742:   instantiated from here
  /opt/ros/diamondback/stacks/orocos_toolchain_ros/ocl/install/include/ocl/Component.hpp:92: error: cannot convert ‘PEA::PEA_Orocos_Right*’ to ‘RTT::TaskContext*’ in return
  make[3]: *** [CMakeFiles/PEA_Orocos_Right.dir/src/PEA_Orocos_Right.o] Error 1
  make[3]: Leaving directory `/home/s051045/tue-ros-pkg/trunk/PEA_Orocos_Right/build'
  make[2]: *** [CMakeFiles/PEA_Orocos_Right.dir/all] Error 2
  make[2]: Leaving directory `/home/s051045/tue-ros-pkg/trunk/PEA_Orocos_Right/build'
  make[1]: *** [all] Error 2
  make[1]: Leaving directory `/home/s051045/tue-ros-pkg/trunk/PEA_Orocos_Right/build'
-------------------------------------------------------------------------------} [ rosmake ] Output from build of package PEA_Orocos_Right written to: [ rosmake ] /home/s051045/.ros/rosmake/rosmake_output-20110208-121850/PEA_Orocos_Right/build_output.log [rosmake-1] Finished <<< PEA_Orocos_Right [FAIL] [ 2.92 seconds ] [ rosmake ] Halting due to failure in package PEA_Orocos_Right. [ rosmake ] Waiting for other threads to complete. [ rosmake ] Results: [ rosmake ] Built 24 packages with 1 failures. [ rosmake ] Summary output to directory [ rosmake ] /home/s051045/.ros/rosmake/rosmake_output-20110208-121850

Compiling error when using

The errormessage when doing make instead of rosmake might be more useful. I only copied the beginning of the errormessage. It seems to be unable to find certain Orocos files.

/home/s051045/tue-ros-pkg/trunk/PEA_Orocos_Right/src/PEA_Orocos_Right.cpp:11:31: error: rtt/TaskContext.hpp: No such file or directory
In file included from /opt/ros/diamondback/stacks/orocos_toolchain_ros/ocl/install/include/ocl/Component.hpp:42,
                 from /home/s051045/tue-ros-pkg/trunk/PEA_Orocos_Right/src/PEA_Orocos_Right.cpp:12:
/opt/ros/diamondback/stacks/orocos_toolchain_ros/ocl/install/include/ocl/OCL.hpp:4:23: error: rtt/RTT.hpp: No such file or directory
In file included from /opt/ros/diamondback/stacks/orocos_toolchain_ros/ocl/install/include/ocl/OCL.hpp:5,
                 from /opt/ros/diamondback/stacks/orocos_toolchain_ros/ocl/install/include/ocl/Component.hpp:42,
                 from /home/s051045/tue-ros-pkg/trunk/PEA_Orocos_Right/src/PEA_Orocos_Right.cpp:12:
/opt/ros/diamondback/stacks/orocos_toolchain_ros/ocl/install/include/ocl/ocl-config.h:9:28: error: rtt/rtt-config.h: No such file or directory
In file included from /home/s051045/tue-ros-pkg/trunk/PEA_Orocos_Right/src/PEA_Orocos_Right.cpp:12:
/opt/ros/diamondback/stacks/orocos_toolchain_ros/ocl/install/include/ocl/Component.hpp:165:2: warning: #warning "You're compiling with static library settings. The resulting component library  will not be loadable at runtime with the deployer. Compile with -DRTT_COMPONENT to enable dynamic loadable components,  or use -DRTT_STATIC to suppress this warning."
/home/s051045/tue-ros-pkg/trunk/PEA_Orocos_Right/src/PEA_Orocos_Right.cpp:13:34: error: rtt/os/TimeService.hpp: No such file or directory
/home/s051045/tue-ros-pkg/trunk/PEA_Orocos_Right/src/PEA_Orocos_Right.cpp:14:24: error: rtt/Port.hpp: No such file or directory
In file included from /opt/ros/diamondback/stacks/orocos_toolchain_ros/ocl/install/include/ocl/Component.hpp:42,
                 from /home/s051045/tue-ros-pkg/trunk/PEA_Orocos_Right/src/PEA_Orocos_Right.cpp:12:
/opt/ros/diamondback/stacks/orocos_toolchain_ros/ocl/install/include/ocl/OCL.hpp:25: error: ‘RTT’ is not a namespace-name
/opt/ros/diamondback/stacks/orocos_toolchain_ros/ocl/install/include/ocl/OCL.hpp:25: error: expected namespace-name before ‘;’ token
In file included from /home/s051045/tue-ros-pkg/trunk/PEA_Orocos_Right/src/PEA_Orocos_Right.cpp:23:
/home/s051045/tue-ros-pkg/trunk/PEA_Orocos_Right/src/PEA_Orocos_Right.hpp:28: error: invalid use of incomplete type ‘struct RTT::TaskContext/opt/ros/diamondback/stacks/orocos_toolchain_ros/ocl/install/include/ocl/Component.hpp:45: error: forward declaration of ‘struct RTT::TaskContext

Compiling error when using

On Wed, Feb 9, 2011 at 10:37 AM, <b [dot] willems [..] ...> wrote:
> The errormessage when doing make instead of rosmake might be more useful. I only copied the beginning of the errormessage. It seems to be unable to find certain Orocos files.

Are you using the UseOrocos-RTT.cmake macros ? What is the output of a
run of cmake ? Does your manifest depend on rtt, ie, is rtt correctly
built and installed when you run 'rosmake' ?

Peter