Missing setup.bash [closed]
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!
So you added these lines to /opt/ros/electric/setup.bash?
I added these lines to opt/ros/electric/setup.sh
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).
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?
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.