Quantcast
Channel: ROS Answers: Open Source Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 2203

roscd does not return a specific workspace after sourcing setup.bash

$
0
0
Hi all, I run ROS Indigo on Ubuntu 14.04, and I have my catkin_ws in a given path. Everything worked perfectly until yesterday. However, yesterday I tried to set up the Matlab engine to see if it was compatible with ROS. I got some errors for some reasons, but I don't care right now. What bothers me is that now I cannot change directory on my catkin_ws anymore, through `roscd`, because the command redirects me to `/opt/ros/indigo`. Obviously, I tried to source both the corresponding `devel/setup.bash` again, and my `~/.bashrc` after inserting the source command inside, None of the solutions worked. So, I tried to create a second workspace, say `test_catkin_ws`, and after building it I sourced its `devel/setup.bash`. This time `roscd` command correctly worked and successfully redirected to `test_catkin_ws/devel`. However, If I try to source again the first workspace, `roscd` command wrongly redirects me to `test_catkin_ws/devel`. So, it seems that the `setup.bash` does not work for the first workspace, and the system redirects to the last workspace correctly sourced. If useful, I show here the output of `printenv | grep -i ros`: > ROS_ROOT=/opt/ros/indigo/share/ros ROS_PACKAGE_PATH=/home/marcofe1404/Documents/Software/ROS/test_catkin_ws/src:/opt/ros/indigo/share:/opt/ros/indigo/stacks:/home/marcofe1404/Documents/Software/ROS/catkin_ws/src ROS_MASTER_URI=http://localhost:11311 OLDPWD=/home/marcofe1404/Documents/Software/ROS/catkin_ws LD_LIBRARY_PATH=/home/marcofe1404/Documents/Software/ROS/test_catkin_ws/devel/lib:/opt/ros/indigo/lib:/home/marcofe1404/Documents/Software/ROS/catkin_ws/devel/lib CPATH=/home/marcofe1404/Documents/Software/ROS/test_catkin_ws/devel/include:/opt/ros/indigo/include PATH=/opt/ros/indigo/bin:/usr/local/MATLAB/R2012b:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games PWD=/home/marcofe1404/Documents/Software/ROS/test_catkin_ws/devel ROSLISP_PACKAGE_DIRECTORIES=/home/marcofe1404/Documents/Software/ROS/test_catkin_ws/devel/share/common-lisp:/home/marcofe1404/Documents/Software/ROS/catkin_ws/devel/share/common-lisp ROS_DISTRO=indigo PYTHONPATH=/home/marcofe1404/Documents/Software/ROS/test_catkin_ws/devel/lib/python2.7/dist-packages:/opt/ros/indigo/lib/python2.7/dist-packages PKG_CONFIG_PATH=/home/marcofe1404/Documents/Software/ROS/test_catkin_ws/devel/lib/pkgconfig:/opt/ros/indigo/lib/pkgconfig CMAKE_PREFIX_PATH=/home/marcofe1404/Documents/Software/ROS/test_catkin_ws/devel:/opt/ros/indigo:/home/marcofe1404/Documents/Software/ROS/catkin_ws/devel ROS_ETC_DIR=/opt/ros/indigo/etc/ros Thank you in advance for whoever can help me to solve this issue.

Viewing all articles
Browse latest Browse all 2203

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>