Gazebo 2.2 Can't open /usr/share/gazebo//setup.sh
BH
I installed the gazebo 2.2 packages and while typing the roslaunch turtlebotgazebo `turtlebotworld.launch` command I continue to get this comment:
Can't open /usr/share/gazebo//setup.sh
By the way, I'm using this command in order to set the ROS environment variables:
source /opt/ros/indigo/setup.bash
.
What should I do in order to get rid of this problem?
Asked by Haz88 on 2015-04-24 09:01:18 UTC
Answers
If you copy from your terminal for the error information and paste here:
"Can't open /usr/share/gazebo//setup.sh"
Then you have two "//" before setup.sh
Asked by Ying Lu on 2015-04-28 15:59:44 UTC
Comments
If the problem still persists, update the setup_path
variable in /opt/ros/lunar/lib/gazebo_ros/gzclient
and /opt/ros/lunar/lib/gazebo_ros/gzserver
to /usr/share/gazebo
Also, as mentioned in the other comment, "//" isn't the problem here. I tried without removing a "/" and it works fine.
Asked by bonag on 2018-12-21 01:21:20 UTC
Comments
it is not working still have same problem
Asked by ebinsunny on 2019-01-22 04:59:03 UTC
sorry if I sound dumb, but how to update the setup_path? I am new to ROS and Ubuntu.
edit: figured that out but problem still exists
Asked by SAGAR SHENOY on 2020-10-28 01:30:11 UTC
type vim /opt/ros/lunar/lib/gazebo_ros/gzserver
in terminal.
You will see the following line: setup_path=$(pkg-config --variable=prefix gazebo)/share/gazebo/
Replace this line with: setup_path=/usr/share/gazebo
This did the trick for me
Asked by den-globotix on 2021-11-01 08:44:59 UTC
- You can just delete the devel and build folder.
- Go to your
/src - catkin_make
- Launch your file again.
This worked for me!
Asked by Tehnan Manna on 2022-08-31 04:22:23 UTC
Comments
What is your linux distribution? Are you using the ROS repo? or are you using the packages.osrfoundation.org repo together with the ROS one?
Asked by Jose Luis Rivero on 2015-04-24 16:46:45 UTC
Hi, My linux distribution is Ubuntu 14.04(Trusty). I'm using the repo that is mentioned in the Indigo installation tutorial at the Ros website (http://wiki.ros.org/indigo/Installation/Ubuntu) , hope that answers your second question.
Asked by Haz88 on 2015-04-25 16:17:10 UTC
I've verified that the gazebo2 package is installing the setup.sh. Could you tell me the result of dpkg -l | grep gazebo?
Asked by Jose Luis Rivero on 2015-04-26 09:18:52 UTC
This is what I got after copying that command:ii gazebo2 2.2.5-1~trusty amd64 Gazebo simulator - Main package rc gazebo4 4.1.1-1~trusty amd64 Open Source Robotics Simulator
Asked by Haz88 on 2015-04-26 13:00:37 UTC
ii ros-indigo-gazebo-msgs 2.4.8-0trusty-20150326-1001-+0000 amd64 Message and service data structures for interacting with Gazebo from ROS.
Asked by Haz88 on 2015-04-26 13:00:43 UTC
rc libgazebo4:amd64 4.1.1-1~trusty amd64 Open Source Robotics Simulator - shared library
Asked by Haz88 on 2015-04-26 13:05:37 UTC
ii ros-indigo-gazebo-plugins 2.4.8-0trusty-20150328-2138-+0000 amd64 Robot-independent Gazebo plugins for sensors, motors and dynamic reconfigurable components.
Asked by Haz88 on 2015-04-26 13:07:29 UTC
ii ros-indigo-gazebo-ros 2.4.8-0trusty-20150328-2131-+0000 amd64 Provides ROS plugins that offer message and service publishers for interfacing with Gazebo through ROS. Formally simulator_gazebo/gazebo
Asked by Haz88 on 2015-04-26 13:07:54 UTC
ii ros-indigo-gazebo-ros-control 2.4.8-0trusty-20150328-2344-+0000 amd64 gazebo_ros_control ii ros-indigo-gazebo-ros-pkgs 2.4.8-0trusty-20150328-2334-+0000 amd64 Interface for using ROS with the Gazebo simulator.
Asked by Haz88 on 2015-04-26 13:08:02 UTC
Sorry for the countless posts, I'm limited to post small messages.
Asked by Haz88 on 2015-04-26 13:08:58 UTC
Thanks, you are using the gazebo2 package from packages.osrfoundation.org. It is providing setup.sh under /usr/share/gazebo. What happen if you run
source /usr/share/gazebo/setup.sh
?Asked by Jose Luis Rivero on 2015-04-26 15:24:50 UTC
I receive this error: [turtlebot_world.launch] is neither a launch file in package [turtlebot_gazebo] nor is [turtlebot_gazebo] a launch file name The traceback for the exception was written to the log file
Asked by Haz88 on 2015-04-27 15:31:36 UTC