Robotics StackExchange | Archived questions

Cant run roslaunch on my macbook

I am trying to run revise for my rplidar but cannot get roslaunch to work. When i run roslaunch i get this error message.

Williams-MacBook-Pro:~ williamphoenix$ roslaunch Traceback (most recent call last): File "/opt/local/bin/roslaunch", line 34, in import roslaunch ImportError: No module named roslaunch

I have done some research and it looks like my python path is wrong but don't know if that is the full effects of this error.

my python path

:/opt/ros/hydro/lib/python2.7

Asked by Will Phoenix on 2015-07-15 11:19:16 UTC

Comments

Answers

You need to source the setup.bash file first. It looks like you're setup file would be at /opt/ros/hydro/setup.bash.

Asked by William on 2015-07-15 11:42:51 UTC

Comments

i am new to this and is there anyway i can find somewhere that can show me step by step on how to set that up

Asked by Will Phoenix on 2015-07-15 12:00:53 UTC

You just run source /opt/ros/hydro/setup.bash. If you're having trouble I'd recommend setting up a Ubuntu VM and doing the ROS tutorials as well as reading the conceptual overview on the wiki.

Asked by William on 2015-07-15 13:15:04 UTC

When i do that it just tells me that there is no file or directory

Asked by Will Phoenix on 2015-07-16 08:16:51 UTC

Well in that case I don't know, I'd have to know more about how you installed ROS on your machine.

Asked by William on 2015-07-16 18:55:26 UTC

Please explain how you installed ROS incluidng what instructions you followed and if there were any errors. Possibly run through the installation again and show the output. You can edit your question to add more details.

Asked by tfoote on 2015-07-19 07:52:54 UTC