Error Rosmake usb_camera
Good evening
We are trying to "rosmake" the package usb_camera but rosmake fail. Here is the output :
mkdir -p bin
cd build && cmake -Wdev -DCMAKE_TOOLCHAIN_FILE=/opt/ros/groovy/share/ros/core/rosbuild/rostoolchain.cma$
-- The C compiler identification is GNU 4.6.3
-- The CXX compiler identification is GNU 4.6.3
-- 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/python (found version "2.7.3")
[rosbuild] Building package usb_cam
Failed to invoke /opt/ros/groovy/bin/rospack deps-manifests usb_cam
[rospack] Error: the rosdep view is empty: call 'sudo rosdep init' and 'rosdep update'
CMake Error at /opt/ros/groovy/share/ros/core/rosbuild/public.cmake:129 (message):
Failed to invoke rospack to get compile flags for package 'usb_cam'.
Look above for errors from rospack itself. Aborting. Please fix the broken dependency!Call Stack (most recent call first):
/opt/ros/groovy/share/ros/core/rosbuild/public.cmake:203 (rosbuild_invoke_rospack)
CMakeLists.txt:5 (rosbuild_init)-- Configuring incomplete, errors occurred! make: * [all] Error 1
I´ve tried to do sudo rosdep init and the rosdep update but the update also failed :
pi@raspberrypi ~ $ rosdep update reading in sources list data from /etc/ros/rosdep/sources.list.d Hit https://github.com/ros/rosdistro/raw/... Hit https://github.com/ros/rosdistro/raw/... Hit https://github.com/ros/rosdistro/raw/... Hit https://github.com/ros/rosdistro/raw/... Hit https://github.com/ros/rosdistro/raw/... Hit https://github.com/ros/rosdistro/raw/... Query rosdistro index https://raw.github.com/ros/rosdistro/...
ERROR: Rosdep experienced an error: Unable to handle 'index' format version '2', please update rosdistro Please go to the rosdep page [1] and file a bug report with the stack trace below. [1] : http://www.ros.org/wiki/rosdep
rosdep version: 0.10.20
Traceback (most recent call last):
File "/usr/lib/pymodules/python2.7/rosdep2/main.py", line 118, in rosdep_main exit_code = _rosdep_main(args)
File "/usr/lib/pymodules/python2.7/rosdep2/main.py", line 261, in _rosdep_main return _no_args_handler(command, parser, options, args)
File "/usr/lib/pymodules/python2.7/rosdep2/main.py", line 269, in _no_args_handler return command_handlerscommand
File "/usr/lib/pymodules/python2.7/rosdep2/main.py", line 426, in command_update error_handler=update_error_handler)
File "/usr/lib/pymodules/python2.7/rosdep2/sources_list.py", line 422, in update_sources_list for d, dist in get_index().distributions.iteritems():
File "/usr/lib/pymodules/python2.7/rosdep2/rosdistrohelper.py", line 58, in get_index _RDCache.index = rosdistro.get_index(_RDCache.index_url)
File "/usr/lib/pymodules/python2.7/rosdistro/__init__.py", line 106, in get_index return Index(data, base_url)
File "/usr/lib/pymodules/python2.7/rosdistro/index.py", line 51, in __init__ assert int(data['version']) == 1, "Unable to handle '%s' format version '%d', please update rosdistro" % (Index._type, int(data ...
I have also followed this " http://answers.ros.org/question/122266/how-can-i-fix-unable-to-handle-index-format-version-2-please-update-rosdistro/" but everything is up to date ...
What are your ROS and OS versions?
Ros groovy and Raspbian wheezy
It sounds like the version of python-rosdep that's available in the repository that you're using isn't up to date. I would try to get in contact with the repository maintainer.
Thanks for your help. I´ll try to get in contact witg him.