Ask Your Question
0

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

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

Rancho gravatar image

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

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

Comments

1

How was the original setup.bash created?

ahendrix gravatar imageahendrix ( 2016-01-19 15:33:37 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2016-01-19 16:19:16 -0500

lucasw gravatar image

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

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
catkin_init_workspace
cd ..
catkin_make

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

Comments

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

Rancho gravatar imageRancho ( 2016-01-20 11:48:57 -0500 )edit
1

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 imagelucasw ( 2016-01-20 12:08:50 -0500 )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 setup.sh in the /opt/ros/groovy/setup.sh is not exist.So, now what should I do,reinstall groovy?

Rancho gravatar imageRancho ( 2016-01-21 15:30:15 -0500 )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 imagelucasw ( 2016-01-22 11:38:21 -0500 )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 imagelucasw ( 2016-01-22 11:40:30 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

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

Seen: 90 times

Last updated: Jan 20 '16