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

What is the main task of adding some directories in Bashrc file ?

asked 2018-09-24 14:37:22 -0500

gktg1514 gravatar image

I am new to robotic operating system; hence, this can be very trivial and redundant question, but I could not understand why we add the directories below to bashrc file.

source /opt/ros/indigo/setup.bash

source ~/catkin_ws/devel/setup.bash

Could anyone please explain the benefits of adding these directories to bashrc file ?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2018-09-24 15:15:06 -0500

gvdhoorn gravatar image

Those are not directories, but command lines causing your bash session to source those files.

For why we do this, see #q251292 fi and many of the other Q&As that it links to.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2018-09-24 14:37:22 -0500

Seen: 71 times

Last updated: Sep 24 '18