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

Having trouble recompiling ROS Source / What to do when you have two versions of ROS installed?

asked 2017-03-21 11:20:56 -0600

corcorant gravatar image

updated 2017-03-21 12:17:54 -0600

Good morning,

I have successfully installed ROS Indigo from source following the instructions at:

Everything works great as far as I can tell, the installation succeed without errors. I am trying to verify that I am running off of the source install rather than the installation I had on my computer previously(regular indigo v. source indigo). I attempted to test this by editing a std:cout in rosout.cpp so that I would see a change at the beginning of a log after I recompiled. It did not change though.

This is how I recompiled after making the changes to rosout.cpp:

./src/catkin/bin/catkin_make_isolated --pkg rosout --force-cmake

Then I ran:

rosrun turtlesim turtlesim_node
rosrun turtlesim turtle_teleop_key

to regenerate some log files. The log files did not change though which leads me to believe that I didn't compile the source code correctly, or I a not running my turtlesim example off of the source installation.

Some Info:

dev@dev-VirtualBox:/opt$ printenv | grep ROS

I am not sure how to confirm / solve those issues. Does anyone know if I should be adding something to my bashrc?


edit retag flag offensive close merge delete


At the bottom of my bashrc file, I found this line:

source /opt/ros/indigo/setup.bash

and replaced it with

source ~/ros_catkin_ws/install_isolated/setup.bash

Everything works great now. Thank you so much for taking your time to answer this.

corcorant gravatar image corcorant  ( 2017-03-21 13:32:28 -0600 )edit

Cool, I converted my comment to an answer. Please mark it as accepted when you get a chance.

William gravatar image William  ( 2017-03-21 13:51:55 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2017-03-21 13:11:53 -0600

William gravatar image

Make sure you are not sourcing the /opt/ros/.../setup.bash file in your ~/.bashrc. Then make sure you source the result of your workspace, like source /path/to/catkin_ws/install_isolated/setup.bash.

edit flag offensive delete link more

Question Tools



Asked: 2017-03-21 11:20:56 -0600

Seen: 261 times

Last updated: Mar 21 '17