Ask Your Question
0

how to omit the step of setup.bash every time?

asked 2014-10-21 08:57:15 -0500

Izumi Hayashi gravatar image

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.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
2

answered 2014-10-21 09:14:41 -0500

dornhege gravatar image

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

edit flag offensive delete link more
1

answered 2014-10-22 02:11:11 -0500

Andromeda gravatar image

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

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2014-10-21 08:57:15 -0500

Seen: 149 times

Last updated: Oct 22 '14