Each time I need to run a gazebo simulation I have to enter source devel/setup.bash [closed]

asked 2020-06-01 06:59:24 -0500

Shankrith gravatar image

updated 2020-06-01 07:11:47 -0500

gvdhoorn gravatar image

Each time I need to run a gazebo simulation I have to enter source devel/setup.bash from the catkin workspace directory. For instance I am not able to run :

roslaunch turtlebot3_gazebo turtlebot3_world.launch

directly. I have to :

cd ~/catkin_ws && source devel/setup.bash

Do I have to do this each time or am I missing a way to make this automatic The results of the environment variables are

shankrith@Jarvis:~$ printenv |grep ROS
ROS_ETC_DIR=/opt/ros/melodic/etc/ros
ROS_ROOT=/opt/ros/melodic/share/ros
ROS_MASTER_URI=http://localhost:11311
ROS_VERSION=1
ROS_PYTHON_VERSION=2
ROS_PACKAGE_PATH=/opt/ros/melodic/share
ROSLISP_PACKAGE_DIRECTORIES=
ROS_DISTRO=melodic
edit retag flag offensive reopen merge delete

Closed for the following reason duplicate question by gvdhoorn
close date 2020-06-01 07:11:21.946996

Comments

I'm going to close this as a duplicate question.

It's a duplicate of at least #q286466, #q229365, #q239131, #q196452, #q206876 and #q269784 (but there are more).

@Shankrith: I'm not closing this because it's not a valid question, but we should really not keep answering the same question over-and-over.

Could you please try to use the search (or use Google: append site:answers.ros.org to your search query) first? If you did, please link to Q&As you already saw/read and explain what was not clear about them.

gvdhoorn gravatar image gvdhoorn  ( 2020-06-01 07:11:12 -0500 )edit

@gvdhoorn sorry for not searching in google before posting the question. Ill keep that in mind. The links were very helpful, thanks a ton

Shankrith gravatar image Shankrith  ( 2020-06-01 08:16:43 -0500 )edit