Missing setup.bash [closed]

asked 2012-03-28 04:09:14 -0600

swilliams704 gravatar image

updated 2012-03-28 04:23:36 -0600

DimitriProsser gravatar image

Hello, I installed the asctec_driver using apt-get install.

I saved setup.sh in the

#!/bin/sh
source /opt/ros/electric/setup.bash
export ROS_ROOT=/opt/ros/electric/ros
export PATH=$ROS_ROOT/bin:$PATH
export PYTHONPATH=$ROS_ROOT/core/roslib/src:$PYTHONPATH
export ROS_PACKAGE_PATH=~/ros_workspace:/opt/ros/electric/stacks:$ROS_PACKAGE_PATH

when I try to run source /opt/ros/electric/setup.bash, the terminal says setup.bash : no such file or directory. Any ideas of what I did wrong?

Thanks!

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by tfoote
close date 2012-04-23 07:27:14

Comments

So you added these lines to /opt/ros/electric/setup.bash?

DimitriProsser gravatar image DimitriProsser  ( 2012-03-28 04:25:17 -0600 )edit

I added these lines to opt/ros/electric/setup.sh

swilliams704 gravatar image swilliams704  ( 2012-03-28 06:24:33 -0600 )edit

This is not a good way to add a ROS workspace. See http://www.ros.org/wiki/rosinstall (or the new rosws that comes with the most recent version).

joq gravatar image joq  ( 2012-03-28 06:46:32 -0600 )edit

I uninstalled ros and then reinstalled the ubuntu version of ros and then followed the instructions on Installing and Configuring Your ROS Environment. I still resulted in the same error. Is the setup.bash something that should be installed with the software?

swilliams704 gravatar image swilliams704  ( 2012-03-28 11:49:11 -0600 )edit

Yes ... in the electric directory (on my Mac) setup.bash, setup.sh, and setup.zsh are all there. Note, these files might be in your top ros directory depending on how you set things up.

Kevin gravatar image Kevin  ( 2012-03-29 13:24:30 -0600 )edit