Why source files in ros [closed]

asked 2022-05-05 19:05:47 -0500

sajid1122 gravatar image

updated 2022-05-05 19:33:10 -0500

Hi i'm an absolute beginner. i know sometimes you have to source /opt/ros/<distro>/setup.bash & sometimes we have to source/catkin_ws/devel/setup.bash and its been perhaps a few weeks or so since i started learning ros but i'm still confused about why we do this. In the first tutorial on "Installing and Configuring Your ROS Environment" they mentioned "required because ROS relies on the notion of combining spaces using the shell environment." and yeah i guess they tried to sum up evgt but i'm still not getting the idea. and yeah, for sourcing the /catkin_ws/devel/setup.bash they mentioned "Inside the 'devel' folder you can see that there are now several setup.*sh files. Sourcing any of these files will overlay this workspace on top of your environment." but even that i dont quite understand this as well It would be great if someone could just explain a little bit more of why we do this. Thanks.

edit retag flag offensive reopen merge delete

Closed for the following reason duplicate question by gvdhoorn
close date 2022-05-06 01:31:35.478943

Comments

Could you please check #q351829 and the many Q&As about source-ing setup.bash files we already have here on ROS Answers?

I'm not dismissing your question, or implying it's something trivial, but even #q351829 was already a duplicate and we should try to avoid posting more duplicates.

If, after reading #q351829 (and the linked posts there), something is still unclear, please edit your question here to clarify what is still unclear.

For now I'll mark your post as a duplicate as well -- to avoid other board members posting answers.

If it turns out it would make sense to keep yours open (and answer it), we can re-open.

gvdhoorn gravatar image gvdhoorn  ( 2022-05-06 01:31:27 -0500 )edit