tum-vision / tum_ardrone

Repository for the tum_ardrone ROS package, implementing autonomous flight with PTAM-based visual navigation for the Parrot AR.Drone.
http://wiki.ros.org/tum_ardrone
GNU General Public License v3.0
226 stars 192 forks source link

Trying to compile with cakin #27

Closed gariepyalex closed 10 years ago

gariepyalex commented 10 years ago

Hi, I followed the instructions in the README and get the following errors:

$ rosdep install tum_ardrone

ERROR: Rosdep cannot find all required resources to answer your query
Missing resource tum_ardrone
ROS path [0]=/opt/ros/hydro/share/ros
ROS path [1]=/opt/ros/hydro/share
ROS path [2]=/opt/ros/hydro/stacks

I tried running catkin_make anyway and I got this :

$ catkin_make
Base path: /home/alexandre/ros-ws
Source space: /home/alexandre/ros-ws/src
Build space: /home/alexandre/ros-ws/build
Devel space: /home/alexandre/ros-ws/devel
Install space: /home/alexandre/ros-ws/install
####
#### Running command: "cmake /home/alexandre/ros-ws/src -DCATKIN_DEVEL_PREFIX=/home/alexandre/ros-ws/devel -DCMAKE_INSTALL_PREFIX=/home/alexandre/ros-ws/install" in "/home/alexandre/ros-ws/build"
####
-- Using CATKIN_DEVEL_PREFIX: /home/alexandre/ros-ws/devel
-- Using CMAKE_PREFIX_PATH: /opt/ros/hydro
-- This workspace overlays: /opt/ros/hydro
-- Using PYTHON_EXECUTABLE: /usr/bin/python
-- Python version: 2.7
-- Using Debian Python package layout
-- Using CATKIN_ENABLE_TESTING: ON
-- Call enable_testing()
-- Using CATKIN_TEST_RESULTS_DIR: /home/alexandre/ros-ws/build/test_results
-- Found gtest sources under '/usr/src/gtest': gtests will be built
-- catkin 0.5.86
-- BUILD_SHARED_LIBS is on
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- ~~  traversing 1 packages in topological order:
-- ~~  - tum_ardrone
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- +++ processing catkin package: 'tum_ardrone'
-- ==> add_subdirectory(tum_ardrone)
-- Using these message generators: gencpp;genlisp;genpy
-- tum_ardrone: 1 messages, 5 services
CMake Error at /usr/share/cmake-2.8/Modules/FindQt4.cmake:1216 (message):
  Found unsuitable Qt version "5.0.1" from /usr/bin/qmake, this code requires
  Qt 4.x
Call Stack (most recent call first):
  tum_ardrone/CMakeLists.txt:199 (find_package)

-- Configuring incomplete, errors occurred!
Invoking "cmake" failed

I'm on Ubuntu 13.04, using ROS Hydro. libqt4-dev is installed. I would also like to point out I'm new to ROS.

Thanks in advance

rohanbhargava11 commented 10 years ago

I don't have Ubuntu 13.04 installed on my system right now. I will try to install a VM next week and figure out the problem.

A little google search gave me this solution

http://ubuntuforums.org/showthread.php?t=2181116

Let me know if this helps you.

For the rosdep error I think your ros-ws (workspace) is not in the path. Add the following command to your bashrc

source /home/alexandre/ros-ws/devel/setup.bash

After restarting the terminal the workspace you have created should be in the package path.

gariepyalex commented 10 years ago

Those two solutions worked. Thank you for your fast response, it is appreciated.