Robotics StackExchange | Archived questions

Missing setup.bash

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!

Asked by swilliams704 on 2012-03-28 04:09:14 UTC

Comments

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

Asked by DimitriProsser on 2012-03-28 04:25:17 UTC

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

Asked by swilliams704 on 2012-03-28 06:24:33 UTC

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).

Asked by joq on 2012-03-28 06:46:32 UTC

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?

Asked by swilliams704 on 2012-03-28 11:49:11 UTC

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.

Asked by Kevin on 2012-03-29 13:24:30 UTC

Answers