0
$\begingroup$

Rosanswers logo

why I have to source setup.bash again when restart my computer?

adminyin@adminyin-System:~$ cd catkin_ws/src/
adminyin@adminyin-System:~/catkin_ws/src$ ls
beginner_tutorials  CMakeLists.txt
adminyin@adminyin-System:~/catkin_ws/src$ rospack depends1 beginner_tutorials
[rospack] Error: no such package beginner_tutorials
adminyin@adminyin-System:~/catkin_ws/src$ cd ..
adminyin@adminyin-System:~/catkin_ws$ source devel/setup.bash 
adminyin@adminyin-System:~/catkin_ws$ cd src/
adminyin@adminyin-System:~/catkin_ws/src$ rospack depends1 beginner_tutorials
roscpp

Originally posted by yin on ROS Answers with karma: 58 on 2016-01-22

Post score: 0

$\endgroup$

1 Answer 1

0
$\begingroup$

Rosanswers logo

Because it only changes environment variables in your current bash session. Please see wiki/Ubuntu install of ROS Jade - Environment setup.


Originally posted by gvdhoorn with karma: 86574 on 2016-01-23

This answer was ACCEPTED on the original site

Post score: 1


Original comments

Comment by yin on 2016-02-21:
OK,thank you.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.