Issue with gazebo and gazebo_ros

asked 2020-05-22 02:23:41 -0600

shaw gravatar image

updated 2022-01-22 16:10:34 -0600

Evgeny gravatar image

I have issues following the Install gazebo_ros_pkgs tutorial where i need to run the $ rosrun gazebo_ros gazebo command, i get the error log of:

/opt/ros/melodic/lib/gazebo_ros/gazebo: 33: .: Can't open /home/shaw/catkin_ws/devel/share/gazebo//

My system is Ubuntu 18.04 running on ROS Melodic, and gazebo version 9.13.0 installed (using the Desktop-Full Install as recommended by Roswiki). I believe the problem above was also why i encountered the following problem when i tried to roslaunch a world with the command $roslaunch turtlebot3_gazebo turtlebot3_world.launch:

/opt/ros/melodic/lib/gazebo_ros/gzclient: 31: .: Can't open /home/shaw/catkin_ws/devel/share/gazebo// /opt/ros/melodic/lib/gazebo_ros/gzserver: 31: .: Can't open /home/shaw/catkin_ws/devel/share/gazebo// 
[gazebo-1] process has enter code heredied [pid 15352, exit code 2, cmd /opt/ros/melodic/lib/gazebo_ros/gzserver
-e ode /home/shaw/catkin_ws/src/turtlebot3/turtlebot3_simulations/turtlebot3_gazebo/worlds/
__name:=gazebo __log:=/home/shaw/.ros/log/7f6b5dec-9bf7-11ea-acd1-9cb6d0156d0b/gazebo-1.log]. log file: /home/shaw/.ros/log/7f6b5dec-9bf7-11ea-acd1-9cb6d0156d0b/gazebo-1*.log
[gazebo_gui-2] process has died [pid 15357, exit code 2, cmd /opt/ros/melodic/lib/gazebo_ros/gzclient
__name:=gazebo_gui __log:=/home/shaw/.ros/log/7f6b5dec-9bf7-11ea-acd1-9cb6d0156d0b/gazebo_gui-2.log]. log file: /home/shaw/.ros/log/7f6b5dec-9bf7-11ea-acd1-9cb6d0156d0b/gazebo_gui-2*.log

I have read some solution to a similar problem, but none of the solutions helped. With reference to the solution, I would like to still use roslaunch to launch the world and other nodes that i have, and there doesnt seem to be any gzserver and gzclient running in the background.

I would appreciate it someone can give me some advices, thank you in advance!

edit retag flag offensive close merge delete


hey mate, did you get the solution to this issue? I am facing the exact same issue and there doesn't seem to be much help out here.

SAGAR SHENOY gravatar image SAGAR SHENOY  ( 2020-10-29 03:24:29 -0600 )edit