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

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

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

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


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

Question Tools

1 follower


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

Seen: 365 times

Last updated: Oct 22 '14