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

diamondback launch problem

asked 2012-03-29 07:35:37 -0500

prince gravatar image

updated 2012-03-31 04:53:43 -0500

Greetings, I am facing some problem with diamondback setup. I am not able to execute common tasks like launching a node with roslaunch. Following is an example of such problem:

/opt/ros/diamondback/stacks/navigation_experimental/sbpl_lattice_planner/launch$ roslaunch  ./move_base_sbpl_fake_localization_2.5cm.launch 
    Traceback (most recent call last):
      File "/opt/ros/diamondback/ros/bin/roslaunch", line 2, in <module>
        from ros import roslaunch
    ImportError: No module named ros

Earlier i faced no such difficulty. Any idea what could be the reason ??? Does it amounts to reinstallation?

Update1: Environment variables

 $ echo $ROS_ROOT
    /opt/ros/diamondback/ros
    $ echo $ROS_PACKAGE_PATH 
    /opt/ros/diamondback/stacks
    $ echo $PYTHONPATH 
 /opt/ros/diamondback/ros/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/opt/ros/diamondback/ros/core/roslib

rxgraph problem: may be related.

/opt/ros/diamondback/ros$ rxgraph
Traceback (most recent call last):
  File "/opt/ros/diamondback/ros/bin/rxgraph", line 34, in <module>
    import roslib; roslib.load_manifest('rxgraph')
ImportError: No module named roslib

I updated ROS_PACKAGE_PATH

/opt/ros/diamondback/ros/core/roslib$ echo $ROS_PACKAGE_PATH 
/opt/ros/diamondback/ros:/opt/ros/diamondback/stacks

but error persists. thanks

edit retag flag offensive close merge delete

Comments

1

@prince can you try rosversion ros ? does it work ?

Arkapravo gravatar image Arkapravo  ( 2012-03-29 08:56:05 -0500 )edit

No, ImportError: No module named roslib.stacks

prince gravatar image prince  ( 2012-03-31 04:51:49 -0500 )edit

@prince Now that leaves me clueless ! is your ROS PATH set ? ..... still, if I was you I may consider a fresh installation of ROS !

Arkapravo gravatar image Arkapravo  ( 2012-03-31 17:53:59 -0500 )edit

yes ROS PATH is set. I do not what caused the problem. I installed electric as well. electric is working fine but all diamondback package are not part of electric!

prince gravatar image prince  ( 2012-03-31 23:02:25 -0500 )edit

yes ROS PATH is set. I do not what caused the problem. I installed electric as well. electric is working fine but all diamondback package are not part of electric!

prince gravatar image prince  ( 2012-03-31 23:02:28 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2012-03-29 08:15:04 -0500

joq gravatar image

updated 2012-03-29 10:56:55 -0500

It's probably just an environment setup problem.

What are $PYTHONPATH, $ROS_ROOT, and $ROS_PACKAGE_PATH set to?

UPDATE: I don't have a Diamondback installation here to try, but your $ROS_PACKAGE_PATH looks suspicious. On my Electric workspace, it is set to: /opt/ros/electric/stacks:/opt/ros/electric/ros (preceded by some other stuff).

Try appending ":/opt/ros/diamondback/ros" to yours.

edit flag offensive delete link more

Comments

edited original question.

prince gravatar image prince  ( 2012-03-29 08:28:36 -0500 )edit

Appending the path did not help. It is still giving same error

prince gravatar image prince  ( 2012-03-31 04:52:10 -0500 )edit

Maybe there is something wrong with your $PYTHONPATH, then.

joq gravatar image joq  ( 2012-03-31 05:14:03 -0500 )edit

What PYTHONPATH shall point to? In my understanding, this tells where to look for python. What else?

prince gravatar image prince  ( 2012-03-31 23:03:31 -0500 )edit
2

Your python path needs to have roslib/src, typical setup scripts say: export PYTHONPATH=${ROS_ROOT}/core/roslib/src:${PYTHONPATH}

tfoote gravatar image tfoote  ( 2012-04-01 11:14:03 -0500 )edit

thanks a lot tfoote. it did work now. I was struggling with this for long time. I even installed diamondback a fresh but this problem persisted.

prince gravatar image prince  ( 2012-04-02 07:19:51 -0500 )edit

Question Tools

Stats

Asked: 2012-03-29 07:35:37 -0500

Seen: 480 times

Last updated: Mar 31 '12