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

The Question is regarding setting up the new workspace in the bashrc file.

asked 2019-04-11 00:55:04 -0600

Yash gravatar image

updated 2022-07-14 14:52:23 -0600

lucasw gravatar image

I had created catkin_ws before and now i have another workspace called my_ws. I have changed the path in the bashrc file to the my_ws and yet whenever i type roscd, it takes me to catkin_ws. Why is that and what needs to be done in order to resolve the issue?

source /opt/ros/kinetic/setup.bash
#source ~/catkin_ws/devel/setup.bash
#source /home/yash/catkin_ws/devel/setup.bash
source ~/my_ws/devel/setup.bash
source /home/yash/my_ws/devel/setup.bash
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2019-04-11 04:26:49 -0600

Reamees gravatar image

updated 2019-04-11 04:27:56 -0600

your .bashrc has some duplicates. It should probaly look something like

...
source /opt/ros/kinetic/setup.bash
source ~/my_ws/devel/setup.bash

As to why roscd still takes you to your old ws, this would happen if you are not using a terminal loaded without the changes in place. So for the changes you made to take effect you will need to reload .bashrc.

Either open a new terminal and try there.

Or type exec bash into the already open terminal to reload .bashrc.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2019-04-11 00:55:04 -0600

Seen: 145 times

Last updated: Apr 11 '19