0
$\begingroup$

Rosanswers logo

I am new in ROS. I have a question.

When I use ROS, I have to do like this every time I start new window of Terminal.

$ source ~/catkin_ws/devel/setup.bash

and this step enable me to use "roscd".

Do I have to do this step every time? Or does anyone know how to skip this step? If there is a website about this, please let me know.


Originally posted by Izumi Hayashi on ROS Answers with karma: 1 on 2014-10-21

Post score: 0

$\endgroup$

2 Answers 2

0
$\begingroup$

Rosanswers logo

Put this line in your .bashrc and it will be executed every time you open a terminal automatically.


Originally posted by dornhege with karma: 31395 on 2014-10-21

This answer was ACCEPTED on the original site

Post score: 2

$\endgroup$
0
$\begingroup$

Rosanswers logo

As explained by domhege open your ~/.bashrc and change the following line

source /opt/ros/indigo/setup.bash

into:

source ~/your_ros_workspace/setup.bash

or if you don't have it, just add it. You don't need to type it anymore


Originally posted by Andromeda with karma: 893 on 2014-10-22

This answer was NOT ACCEPTED on the original site

Post score: 1

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.