Robotics StackExchange | Archived questions

error while rosmake ar_kinect

Hi all.

I get an error when I do rosmake ar_kinect.

...
[rosmake-3] Starting >>> ar_kinect [ make ]                                     
[ rosmake ] Last 40 lines_kinect: 4.2 sec ]          [ 1 Active 55/56 Complete ]
{-------------------------------------------------------------------------------
  mkdir -p bin
  cd build && cmake -Wdev -DCMAKE_TOOLCHAIN_FILE=`rospack find rosbuild`/rostoolchain.cmake  ..
  [rosbuild] Building package ar_kinect
  [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
  -- Configuring done
  -- Generating done
  -- Build files have been written to: /home/hilde/ros_workspace/ar_kinect/build
  cd build && make -l4
  make[1]: Entering directory `/home/hilde/ros_workspace/ar_kinect/build'
  make[2]: Entering directory `/home/hilde/ros_workspace/ar_kinect/build'
  make[3]: Entering directory `/home/hilde/ros_workspace/ar_kinect/build'
  make[3]: Leaving directory `/home/hilde/ros_workspace/ar_kinect/build'
  [  0%] Built target rospack_genmsg_libexe
  make[3]: Entering directory `/home/hilde/ros_workspace/ar_kinect/build'
  make[3]: Leaving directory `/home/hilde/ros_workspace/ar_kinect/build'
  [  0%] Built target rosbuild_precompile
  make[3]: Entering directory `/home/hilde/ros_workspace/ar_kinect/build'
  make[3]: Leaving directory `/home/hilde/ros_workspace/ar_kinect/build'
  make[3]: Entering directory `/home/hilde/ros_workspace/ar_kinect/build'
  [ 50%] Building CXX object CMakeFiles/ar_kinect.dir/src/ar_kinect.o
  /home/hilde/ros_workspace/ar_kinect/src/ar_kinect.cpp: In function ‘tf::Transform ar_pose::tfFromEigen(Eigen::Matrix4f)’:
  /home/hilde/ros_workspace/ar_kinect/src/ar_kinect.cpp:44: error: ‘Matrix3x3’ is not a member of ‘tf’
  /home/hilde/ros_workspace/ar_kinect/src/ar_kinect.cpp:44: error: expected ‘;’ before ‘btm’
  /home/hilde/ros_workspace/ar_kinect/src/ar_kinect.cpp:45: error: ‘btm’ was not declared in this scope
  /home/hilde/ros_workspace/ar_kinect/src/ar_kinect.cpp: In member function ‘void ar_pose::ARPublisher::getTransformationCallback(const sensor_msgs::PointCloud2ConstPtr&)’:
  /home/hilde/ros_workspace/ar_kinect/src/ar_kinect.cpp:241: error: ‘Matrix3x3’ is not a member of ‘tf’
  /home/hilde/ros_workspace/ar_kinect/src/ar_kinect.cpp:241: error: expected ‘;’ before ‘m’
  /home/hilde/ros_workspace/ar_kinect/src/ar_kinect.cpp:246: error: ‘m’ was not declared in this scope
  /home/hilde/ros_workspace/ar_kinect/src/ar_kinect.cpp:259: warning: name lookup of ‘i’ changed
  /home/hilde/ros_workspace/ar_kinect/src/ar_kinect.cpp:146: warning:   matches this ‘i’ under ISO standard rules
  /home/hilde/ros_workspace/ar_kinect/src/ar_kinect.cpp:244: warning:   matches this ‘i’ under old rules
  make[3]: *** [CMakeFiles/ar_kinect.dir/src/ar_kinect.o] Error 1
  make[3]: Leaving directory `/home/hilde/ros_workspace/ar_kinect/build'
  make[2]: *** [CMakeFiles/ar_kinect.dir/all] Error 2
  make[2]: Leaving directory `/home/hilde/ros_workspace/ar_kinect/build'
  make[1]: *** [all] Error 2
  make[1]: Leaving directory `/home/hilde/ros_workspace/ar_kinect/build'
-------------------------------------------------------------------------------}
[ rosmake ] Output from build of package ar_kinect written to:
[ rosmake ]    /home/hilde/.ros/rosmake/rosmake_output-20130419-160019/ar_kinect/build_output.log
[rosmake-3] Finished <<< ar_kinect [FAIL] [ 4.24 seconds ]                      
[ rosmake ] Halting due to failure in package ar_kinect. 
[ rosmake ] Waiting for other threads to complete.
[ rosmake ] Results:                                                            
[ rosmake ] Built 56 packages with 1 failures.                                  
[ rosmake ] Summary output to directory                                         
[ rosmake ] /home/hilde/.ros/rosmake/rosmake_output-20130419-160019   

I work with ROS fuerte (Ubuntu 10.04).
Maybe could it be a problem that ROS electric is also installed? Because I recognized that the roscomm package is used from the electric during the rosmake. (See above) (The ROSPACKAGE_PATH is /home/hilde/ros:/opt/ros/fuerte/share:/opt/ros/fuerte/stacks )

Can somebody helps me?

Thank you.

Asked by JaRu on 2013-04-19 04:11:33 UTC

Comments

Answers

Are you still using the version from albany-ros-pkg? If so, I would checkout the appropriate branch found here: https://github.com/mikeferguson/ar_kinect (also note ar_pose can be found here: https://github.com/IHeartEngineering/ar_tools)

If you have checked out from github, be sure to have the right branch (for fuerte, you want fuerte-devel)

Asked by fergs on 2013-04-19 08:10:49 UTC

Comments

No, I do not use the version from albany-ros-pkg. I use the version for ROS fuerte.

Asked by JaRu on 2013-04-22 03:34:44 UTC