Compiling ROS to Virtual Nao
Hello there,
I have been attempting to complete the tutorial (I can't publish links! Simply google "ros compile nao virtual" and click the 1st result) which attempts to compile ROS to a virtual Nao, before copying the files across to the actual robot.
There have been a number of problems throughout the process, however it is of my understanding that these have been dealt with successfully. I have followed the Wiki as closely as possible.
I am using VirtualBox Graphical User Interface Version 4.2.10_Ubuntu r84101.
The OpenNao image is "opennao-vm-2.0.1.54.ova"
I have managed to "emerge" all packages mentioned in the Wiki. I decided to add "Boost" as well. Problems have arisen when attempting to compile the packages, using the command:
$ src/catkin/bin/catkin_make_isolated --install -DCMAKE_BUILD_TYPE=Release
This attempts to compile 81 separate packages - I can only make it as far as the 37th package before I get an error, specifically (I have to type all of this since my VM won't allow me to cut & paste: please excuse any spelling errors!)
;pluginlib [37 of 81]==> Processing catkin package: 'pluginlib'
==> Building with env: '/home/nao/nao_ros_ws/install_isolated/env.sh'
==> cmake /home/nao/nao_ros_ws/src/pluginlib -DCATKIN_DEVEL_PREFIX=/home/nao/nao
_ros_ws/devel_isolated/pluginlib -DCMAKE_INSTALL_PREFIX=/home/nao/nao_ros_ws/ins
tall_isolated -DCMAKE_BUILD_TYPE=Release in '/home/nao/nao_ros_ws/build_isolated
/pluginlib'
-- Using CATKIN_DEVEL_PREFIX: /home/nao/nao_ros_ws/devel_isolated/pluginlib
-- Using CMAKE_PREFIX_PATH: /home/nao/nao_ros_ws/install_isolated
-- This workspace overlays: /home/nao/nao_ros_ws/install_isolated
-- Using PYTHON_EXECUTABLE: /usr/bin/python
-- Using default Python package layout
-- Using empy: /usr/lib/python2.7/site-packages/empy-3.3.2-py2.7.egg/em.pyc
-- Using CATKIN_ENABLE_TESTING: ON
-- Call enable_testing()
-- Using CATKIN_TEST_RESULTS_DIR: /home/nao/nao_ros_ws/build_isolated/pluginlib/
test_results
-- gtest not found, C++ tests can not be built. Please install the gtest headers
globally in your system to enable gtests
-- Using Python nosetests: /usr/bin/nosetest-2.7
-- catkin 0.6.6
-- Boost version: 1.48.0
-- Found the following Boost libraries:
-- filesystem
-- system
CMake Warning at /home/nao/nao_ros_ws/install_isolated/share/catkin/cmake/test/g
test.cmake:29 (message):
skipping gtest 'pluginlib_utest' in project 'pluginlib'
Call Stack (most recent call first):
CMakeLists.txt:35 (catkin_add_gtest)
CMake Error at CMakeLists.txt:36 (target_link_libraries):
Cannot specify link libraries for target "pluginlib_utest" which is not
built by this project.
-- Configuring incomplete, errors occurred!
<== Failed to process package 'pluginlib':
Command '/home/nao/nao_ros_ws/install_isolated/env.sh cmake /home/nao/nao_ros_
ws/src/pluginlib -DCATKIN_DEVEL_PREFIX=/home/nao/nao_ros_ws/devel_isolated/plugi
nlib -DCMAKE_INSTALL_PREFIX=/home/nao/nao_ros_ws/install_isolated -DCMAKE_BUILD_
TYPE=Release' returned non-zero exit status 1
Reproduce this error by running:
==> cd /home/nao/nao_ros_ws/build_isolated/pluginlib && /home/nao/nao_ros_ws/ins
tall_isolated/env.sh cmake /home/nao/nao_ros_ws/pluginlib -DCATKIN_DEVEL_PRE
FIX=/home/nao/nao_ros_ws/devel_isolated/pluginlib -DCMAKE_INSTALL_PREFIX=/home/n
ao/nao_ros_ws/install_isolated -DCMAKE_BUILD_TYPE=Release
Command failed, exiting.
Of course, this is only stage 37 of 81, so I assume fixing this error could open up more. Either way, any suggestions would be greatly appreciated.
Asked by Dominic on 2014-06-10 08:38:21 UTC
Answers
I'm tracking this at https://github.com/ros/pluginlib/issues/29, but it looks a bit weird since catkin depends on gtest. I'm spawning an OpenNAO vm and see if I can reproduce this issue.
Asked by esteve on 2014-06-10 10:29:58 UTC
Comments
This was an upstream bug in the instructions as mentioned in the comments. It was fixed. Please up that answer so that we can close it. Thx.
Asked by Vincent Rabaud on 2014-06-12 02:14:58 UTC
Comments
The answer is in the output:
-- gtest not found, C++ tests can not be built. Please install the gtest headers globally in your system to enable gtests
Is gtest really installed there ? (is it part of your workspace or emerged ?)
Asked by Vincent Rabaud on 2014-06-10 09:19:48 UTC
This has resolved all of my issues - thanks very much! Now to try to copy the files to the real robot. I will update the wiki and add the command: $ sudo emerge -u gtest
Asked by Dominic on 2014-06-11 04:16:12 UTC
Please "check" the answer to accept it, so others will know your question has been resolved.
Asked by joq on 2014-06-11 09:58:38 UTC
@joq, that was basically a bug in the instructions that got fixed. What do you mean by "check" ? (no real answer appeared). Thx !
Asked by Vincent Rabaud on 2014-06-11 10:32:24 UTC
There is one answer below, or you could convert your original comment into an answer. The Q&A site works best when every question has an "accepted" answer, so people who find it later can figure out what to do.
Asked by joq on 2014-06-11 10:53:05 UTC