How to make roscd go to ~/catkin_ws/devel instead of /opt/ros/kinetic?
I have sourced the setup.bash
in the devel
folder of catkin_ws
but still the roscd
command takes to /opt/ros/kinetic
On env | grep ROS
, the output is:
ROS_ROOT=/opt/ros/kinetic/
ROS_PACKAGE_PATH=/home/username/catkin_ws/src:/opt/ros/kinetic/share
ROS_MASTER_URI=http://localhost:11311
ROS_VERSION=1
ROS_HOSTNAME=localhost
ROSLISP_PACKAGE_DIRECTORIES=
ROS_DISTRO=kinetic
ROS_ETC_DIR=/opt/ros/kinetic/etc/ros
Just to make sure: did you only add the
source /home/username/catkin_ws/devel/setup.bash
line to your .bashrc, or did you actually sourcesetup.bash
/open up a new terminal after adding the line?I added it to
.bashrc
as well. And then sourced it through terminal also.source /opt/ros/kinetic/setup.bash source ~/catkin_ws/devel/setup.bash export ROS_HOSTNAME=localhost export ROS_MASTER_URI=http://localhost:11311 export ROS_ROOT=/opt/ros/kinetic/ export ROS_PACKAGE_PATH=/home/username/catkin_ws/src:${ROS_PACKAGE_PATH}