How many ROS paths can ~/.bashrc file store? Will the path influence each other
I met a strange problem. This is the path in my bashrc
#source /opt/ros/indigo/setup.bash
#export ROS_PACKAGE_PATH=$ROS_PACKAGE_PATH:/home/chaoqun/catkin_test/src/ORB_SLAM
#source /home/chaoqun/active_exploring/devel/setup.bash
#source /home/chaoqun/catkin_test/devel/setup.bash
#source /home/chaoqun/active_exploring/devel/setup.bash
And when I typed echo $ROS_PACKAGE_PATH in the terminal ,I got nothing, that's right according to my knowledge even I have to restart the terminal instead of typed soure ~/.bashrc while if I change the bashrc like this:
source /opt/ros/indigo/setup.bash
#export ROS_PACKAGE_PATH=$ROS_PACKAGE_PATH:/home/chaoqun/catkin_test/src/ORB_SLAM
source /home/chaoqun/catkin_test/devel/setup.bash
#source /home/chaoqun/active_exploring/devel/setup.bash
when I echo the ROS path ,I got:
/home/chaoqun/catkin_test/src:/home/chaoqun/active_exploring/src:/opt/ros/indigo/share:/opt/ros/indigo/stacks
It's really strange why I got the path :/home/chaoqun/active_exploring/src:, it is clearly that I have moved this path in bashrc file. why I still get this ? But If I write like below:
source /opt/ros/indigo/setup.bash
#export ROS_PACKAGE_PATH=$ROS_PACKAGE_PATH:/home/chaoqun/catkin_test/src/ORB_SLAM
#source /home/chaoqun/catkin_test/devel/setup.bash
source /home/chaoqun/active_exploring/devel/setup.bash
Then I can get desired output:
/home/chaoqun/active_exploring/src:/opt/ros/indigo/share:/opt/ros/indigo/stacks
What's wrong?
Please use the preformatted text button (with 1s and 0s) to copy in terminal output.