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

why do i have to change the environment path every time when i open a new terminal? I am a beginner and now is learning tutorials, Thank you. [closed]

asked 2016-01-12 00:48:45 -0600

Minphie gravatar image

minphie@Lenovo:~$ rosrun beginner_tutorials add_two_ints_sever [rospack] Error: package 'beginner_tutorials' not found

As above, I know enter the catkin space and $ source ./devel/setup.bash can resolve the problem. But every time when I open a new terminal I have to do this step. Is there another way to solve the problem?

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Minphie
close date 2021-10-28 02:17:22.533295

1 Answer

Sort by ยป oldest newest most voted
3

answered 2016-01-12 02:25:55 -0600

Edit the file ~/.bashrc and at the end, add the line:

source PATH_TO_YOUR_CATKIN_WS/devel/setup.bash

This way every time you open a new terminal your catkin work space will be properly setup.

edit flag offensive delete link more

Comments

Thank you very much, that works for me.

Minphie gravatar image Minphie  ( 2016-01-12 02:58:13 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2016-01-12 00:48:45 -0600

Seen: 280 times

Last updated: Jan 12 '16