Each time I need to run a gazebo simulation I have to enter source devel/setup.bash [closed]
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
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 sorry for not searching in google before posting the question. Ill keep that in mind. The links were very helpful, thanks a ton