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

zoltan's profile - activity

2012-12-14 09:26:26 -0500 commented answer rosinstall on ubuntu 11.04

Hi Florian, I am just checking your site, looks very cool! Thanks! I am going to try your howto and read the other stuff too. Best, Zoltan

2012-11-28 01:42:56 -0500 received badge  Teacher (source)
2012-11-28 01:42:56 -0500 received badge  Self-Learner (source)
2012-11-14 17:57:18 -0500 received badge  Famous Question (source)
2012-10-31 02:15:15 -0500 answered a question rosinstall on ubuntu 11.04

Thanks KruseT for the answer. In the meantime I have managed to come up with a simple PYHTONPATH that works with ros and morse too.

/opt/ros/electric/ros/core/roslib/src:/opt/morse/lib/python3/dist-packages

In my .bashrc file I have the following regarding morse and ROS:

source /opt/ros/electric/setup.bash
export PYTHONPATH=$PYTHONPATH:$ROS_ROOT/core/roslib/src

#   
# MORSE Setup
#
export MORSE_ROOT=/opt/morse
export PATH=/opt/morse/bin:${PATH}
export MORSE_BLENDER=/opt/blender/bin/blender
#export PYTHONPATH=/opt/morse/lib/python3/site-packages:${PYTHONPATH}

export PYTHONPATH=$PYTHONPATH:/opt/morse/lib/python3/dist-packages
source /home/myuser/electric_workspace/setup.bash

Now it seems to work:

  • I can run roscore and roslaunch without any errors
  • I can run rosinstall without any error message
  • I can run morse check

However, I don't know yet, whether it works with other software, I haven't fully tested it.

2012-10-31 01:56:30 -0500 received badge  Notable Question (source)
2012-10-30 02:16:49 -0500 received badge  Popular Question (source)
2012-10-29 22:37:11 -0500 received badge  Editor (source)
2012-10-29 06:51:54 -0500 asked a question rosinstall on ubuntu 11.04

Hi!

I am trying to install ROS on Ubuntu 11.04. I tried to follow howtos and similar documents, but it didn't work for me. My main goal is to get a working system with MORSE, ROS and Blender. I managed to install Blender and MORSE, they work together. I also installed python 3.2.1 and ROS electric from the repositories. Now, when I try to run roscore or roslaunch I get the following errors:

Traceback (most recent call last):
  File "/opt/ros/electric/ros/bin/roslaunch", line 2, in <module>
    from ros import roslaunch
ImportError: cannot import name roslaunch

I thought that it is maybe because I hadn't yet installed the rosinstall software. So I tried to install it from the repositories using sudo apt-get install python-rosinstall as it was written here: http://www.ros.org/doc/api/rosinstall/html/ Unfortunately, it seems to only work for fuerte not for electric, so I tried to install it using pip:

sudo pip install -U rosinstall vcstools

Then I try to run rosinstall, but I always get errors like this:

    Traceback (most recent call last):
  File "/home/zsarosi/.local/bin/rosinstall", line 5, in <module>
    from rosinstall.rosinstall_cli import rosinstall_main
  File "/home/zsarosi/.local/lib/python2.7/site-packages/rosinstall/__init__.py", line 33, in <module>
    import rosinstall.helpers
  File "/home/zsarosi/.local/lib/python2.7/site-packages/rosinstall/helpers.py", line 35, in <module>
    from rosinstall.config_elements import SetupConfigElement
  File "/home/zsarosi/.local/lib/python2.7/site-packages/rosinstall/config_elements.py", line 38, in <module>
    from vcstools import VcsClient
  File "/home/zsarosi/.local/lib/python2.7/site-packages/vcstools/__init__.py", line 45, in <module>
    from vcstools.tar import TarClient
  File "/home/zsarosi/.local/lib/python2.7/site-packages/vcstools/tar.py", line 52, in <module>
    import yaml
  File "/usr/local/lib/python3.2/dist-packages/yaml/__init__.py", line 284
    class YAMLObject(metaclass=YAMLObjectMetaclass):
                              ^
SyntaxError: invalid syntax

Since it shows directories with the version 2.7 in them instead of 3.2, I suspect that my PYTHONPATH environmental variable is still missing something, at the moment it looks like this:

/opt/morse/lib/python3/site-packages:/opt/ros/electric/ros/core/roslib/src::/usr/local/lib/python3.2:/usr/local/lib/python3.2/site-packages:/usr/local/lib/python3.2/dist-packages:/home/zsarosi/builds/morse/bindings/pymorse:/opt/morse/lib/python3/dist-packages:/opt/ros/electric/ros/core/roslib/src

I am stucked now. Can anyone please help me?