ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
5

RGBDSLAM with ROS electric on Linux Mint 12

asked 2011-12-01 23:23:25 -0600

garoth gravatar image

updated 2014-01-28 17:10:55 -0600

ngrennan gravatar image

When I was trying to install rgdbslam stack on Linux Mint 12, I recive this information:

[ rosmake ] Packages requested are: ['rgbdslam']                                                                                                              
[ rosmake ] Logging to directory/home/majkel/.ros/rosmake/rosmake_output-20111202-133828                                                                      
[ rosmake ] Expanded args ['rgbdslam'] to:
['rgbdslam']                                                                                                       
[ rosmake ] Checking rosdeps compliance for packages rgbdslam.  This may take a few seconds.                                                                  
Traceback (most recent call last):
  File "/opt/ros/electric/ros/bin/rosmake", line 65, in <module>
    if rma.main():
  File "/opt/ros/electric/ros/tools/rosmake/src/rosmake/engine.py", line 865, in main
    self.rosdep_check_result = self.check_rosdep(buildable_packages)
  File "/opt/ros/electric/ros/tools/rosmake/src/rosmake/engine.py", line 295, in check_rosdep
    r = rosdep.core.Rosdep(packages, robust=True)
  File "/opt/ros/electric/ros/tools/rosdep/src/rosdep/core.py", line 343, in __init__
    self.osi = roslib.os_detect.OSDetect(os_list)
  File "/opt/ros/electric/ros/core/roslib/src/roslib/os_detect.py", line 535, in __init__
    self.detect_os()
  File "/opt/ros/electric/ros/core/roslib/src/roslib/os_detect.py", line 554, in detect_os
    self._os_version = os_class.get_version()
  File "/opt/ros/electric/ros/tools/rosdep/src/rosdep/debian.py", line 133, in get_version
    return self.version_map[self.mint_detector.get_version()]
KeyError: '12'
Traceback (most recent call last):
  File "/opt/ros/electric/ros/bin/rosmake", line 65, in <module>
    if rma.main():
  File "/opt/ros/electric/ros/tools/rosmake/src/rosmake/engine.py", line 865, in main
    self.rosdep_check_result = self.check_rosdep(buildable_packages)
  File "/opt/ros/electric/ros/tools/rosmake/src/rosmake/engine.py", line 295, in check_rosdep
    r = rosdep.core.Rosdep(packages, robust=True)
  File "/opt/ros/electric/ros/tools/rosdep/src/rosdep/core.py", line 343, in __init__
    self.osi = roslib.os_detect.OSDetect(os_list)
  File "/opt/ros/electric/ros/core/roslib/src/roslib/os_detect.py", line 535, in __init__
    self.detect_os()
  File "/opt/ros/electric/ros/core/roslib/src/roslib/os_detect.py", line 554, in detect_os
    self._os_version = os_class.get_version()
  File "/opt/ros/electric/ros/tools/rosdep/src/rosdep/debian.py", line 133, in get_version
    return self.version_map[self.mint_detector.get_version()]
KeyError: '12'

Next step, I edited /opt/ros/electric/ros/tools/rosdep/src/rosdep/debian.py and added my OS version

def __init__(self):
    self.mint_detector = roslib.os_detect.Mint()
    self.version_map = {'12':'11.10',
                 '11':'11.04',
                        '10':'10.10',
                        '9':'10.04',
                        '8':'9.10', 
                        '7':'9.04',
                        '6':'8.10',
                        '5':'8.04'}

... Now I have new information

majkel@laptop-mk /opt/ros/electric/stacks $ rosmake --rosdep-install rgbdslam
[ rosmake ] Packages requested are: ['rgbdslam']                                                                                                              
[ rosmake ] Logging to directory/home/majkel/.ros/rosmake/rosmake_output-20111202-135209                                                                      
[ rosmake ] Expanded args ['rgbdslam'] to:
['rgbdslam']                                                                                                       
[ rosmake ] Generating Install Script using rosdep then executing. This may take a minute, you will be prompted for permissions. . .                          
No installers found for rosdep [boost], OS version [11.10].  Rule:
{{{
{'lucid': {'apt': {'packages': ['libboost1.40-all-dev']}}, 'maverick': {'apt': {'packages': ['libboost1.42-all-dev']}}, 'natty': {'apt': {'packages': ['libboost1.42-all-dev']}}, 'oneiric': {'apt': {'packages': ['libboost1.46-all-dev']}}}
}    }}

No installers found for rosdep [opencv2.3], OS version [11.10].  Rule:
{{{
{'lucid': {'apt': {'packages': ['libopencv2.3-dev=2.3.1+svn6514+branch23-9~lucid']}}, 'maverick': {'apt': {'packages': ['libopencv2.3-dev=2.3.1+svn6514 ...
(more)
edit retag flag offensive close merge delete

3 Answers

Sort by ยป oldest newest most voted
3

answered 2011-12-03 09:41:02 -0600

garoth gravatar image

updated 2011-12-03 10:00:12 -0600

My new code:

def __init__(self):
    self.mint_detector = roslib.os_detect.Mint()
    self.version_map = {'12':'oneric',
                        '11':'11.04',
                        '10':'10.10',
                        '9':'10.04',
                        '8':'9.10',
                        '7':'9.04',
                        '6':'8.10',
                        '5':'8.04'}

Before I add a ticket, I would say that the compiler jumps to the next step, but turned the information that can't find some packages.

...
Failed to find rosdep eigen for package rgbdslam on OS:ubuntu version:11.10
Failed to find rosdep glut for package rgbdslam on OS:ubuntu version:11.10
Failed to find rosdep boost for package rgbdslam on OS:ubuntu version:11.10
Failed to find rosdep opencv2.3 for package rgbdslam on OS:ubuntu version:11.10
WARNING: Rosdeps [u'eigen', u'glut', u'boost', u'opencv2.3'] could not be resolved
Failed to find rosdep eigen for package rgbdslam on OS:ubuntu version:11.10
Failed to find rosdep glut for package rgbdslam on OS:ubuntu version:11.10
Failed to find rosdep boost for package rgbdslam on OS:ubuntu version:11.10
Failed to find rosdep opencv2.3 for package rgbdslam on OS:ubuntu version:11.10
...

... but generaly it works, so it is some kind of solution. Unfortunetly there is another problem with grahp_manager.cpp file. I met this problem both Unbuntu and Linux Mint. It is global bug I think, but mayby it is http://answers.ros.org/question/2857/rgbdslam-compile-errors.

edit flag offensive delete link more
3

answered 2011-12-02 14:51:58 -0600

tfoote gravatar image

That's the right file to patch. From looking at the rule, it looks like you should use the code name not the version. Likely all of the version maps should be switched. A patch would be greatly appreciated in trac. https://code.ros.org/trac/ros/newticket?component=rosdep&type=defect&&rosdep

edit flag offensive delete link more
0

answered 2012-02-19 04:15:18 -0600

bd.at.rivenhill gravatar image

I patched debian.py as you did, but I also patched core.py as suggested by the first answer to http://answers.ros.org/question/27905/install-problem-on-linux-mint-12 and had no subsequent problems. See my ticket at https://code.ros.org/trac/ros/ticket/3858 for details.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2011-12-01 23:23:25 -0600

Seen: 1,544 times

Last updated: Feb 19 '12