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

How can I change the setup.bash to match the Ros version

asked 2016-01-19 15:20:33 -0600

Rancho gravatar image

updated 2016-01-19 15:52:03 -0600

Now I have install the Ros jade, but I have a setup.bash from the version groovy, so when I get"source **/setup.bash", it tell me that can not find the file. What should I do? I think this setup.bash is made from groovy

edit retag flag offensive close merge delete



How was the original setup.bash created?

ahendrix gravatar image ahendrix  ( 2016-01-19 15:33:37 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2016-01-19 16:19:16 -0600

lucasw gravatar image

updated 2016-01-20 12:14:21 -0600

Assuming you have an old catkin_ws/devel/setup.bash: Delete your catkin_ws/devel directory and the src CMakeLists.txt, then rebuild your workspace.:

cd ~/catkin_ws
rm -rf devel build install
source /opt/ros/jade/setup.bash
cd src
rm CMakeLists.txt
cd ..

If that doesn't work then maybe there is a deeper ros installation issue more information would be needed to solve.

edit flag offensive delete link more


Is that mean I need to reinstall catkin? I am a new guy in Ros, so can you explain it more specifically?

Rancho gravatar image Rancho  ( 2016-01-20 11:48:57 -0600 )edit

No, you just need to clear out built files created by earlier versions of ros, and then catkin_make will build new ones. I'm making a lot of assumptions about what your issue is, if you can cut and paste the command line and error output into the question above it would be helpful.

lucasw gravatar image lucasw  ( 2016-01-20 12:08:50 -0600 )edit

This file setup.bash in the working space is the guy before me left, I think it was made in the groovy$rosbuild, not the catkin. So if I try to source the setup.bash in the workspace, it told me that the in the /opt/ros/groovy/ is not exist.So, now what should I do,reinstall groovy?

Rancho gravatar image Rancho  ( 2016-01-21 15:30:15 -0600 )edit

If you follow my instructions it is likely you'll run into incompatibilities in your code between groovy and jade you'll have to fix, but you'll probably want to do that eventually anyhow. If you feel uncomfortable deleting those files rename install/devel/build and you can always bring them back.

lucasw gravatar image lucasw  ( 2016-01-22 11:38:21 -0600 )edit

Re-installing groovy is going to mean the code ought to work and recompile, but I don't know how easy or hard it is to re-install groovy at this point, and possibly more than a few people here (including me) haven't touched groovy in years.

lucasw gravatar image lucasw  ( 2016-01-22 11:40:30 -0600 )edit

Question Tools

1 follower


Asked: 2016-01-19 15:20:33 -0600

Seen: 235 times

Last updated: Jan 20 '16