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

how to place a file inside .bashrc

asked 2017-02-03 06:33:37 -0500

fundamentals gravatar image

I am following a tutorial on the link https://github.com/birlrobotics/birl_... and I was told as folows:

Finally, after doing catkin_make, place the newly created ~/ros/indigo/catkin_ws/devel/setup.bash file inside .bashrc

cd ~
emacs .bashrc
source ~/ros/indigo/rbx_ws/devel/setup.bash

When I run the command emacs .bashrc the emacs editor opens but I am not sure what I am expected to do after that .

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2017-02-03 06:37:56 -0500

gvdhoorn gravatar image

updated 2017-02-03 06:39:48 -0500

Go to the end of the file that you just opened and paste the following:

source ~/ros/indigo/catkin_ws/devel/setup.bash

then save the file, exit the editor.

Now continue with whatever the documentation tells you to do.


Note that this of course assumes that you actually have a directory ros/indigo/catkin_ws in your home directory and that you built the workspace.

Note also that if you ever delete ~/ros/indigo/catkin_ws/devel/setup.bash, every new terminal that you open will complain about ~/ros/indigo/catkin_ws/devel/setup.bash not existing.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2017-02-03 06:33:37 -0500

Seen: 124 times

Last updated: Feb 03 '17