ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A answers.ros.org
Ask Your Question
0

launching Gazebo error

asked 2021-04-03 13:48:34 -0600

Eman.m gravatar image

Hi

I have Unbunt 16.04 and ROS kinetic.

In the terminal, running the command gazebo opens Gazebo7

when I try to roslaunch myfile.launch ( which works perfectly in another device), I got error that:

/opt/ros/kinetic/lib/gazebo_ros/gzserver: 31: .: Can't open /usr/local/share/gazebo//setup.sh
/opt/ros/kinetic/lib/gazebo_ros/gzclient: 31: .: Can't open /usr/local/share/gazebo//setup.sh
[gazebo-5] process has died [pid 4542, exit code 2, cmd /opt/ros/kinetic/lib/gazebo_ros/gzserver -e ode worlds/empty.world __name:=gazebo __log:=/home/evadro/.ros/log/d1002e94-94a8-11eb-8f41-b25c5df1f650/gazebo-5.log].
log file: /home/evadro/.ros/log/d1002e94-94a8-11eb-8f41-b25c5df1f650/gazebo-5*.log
[gazebo_gui-6] process has died [pid 4547, exit code 2, cmd /opt/ros/kinetic/lib/gazebo_ros/gzclient __name:=gazebo_gui __log:=/home/evadro/.ros/log/d1002e94-94a8-11eb-8f41-b25c5df1f650/gazebo_gui-6.log].
log file: /home/evadro/.ros/log/d1002e94-94a8-11eb-8f41-b25c5df1f650/gazebo_gui-6*.log

Actually, there is no gazebo directory inside /usr/local/share/

Rviz loads, but Gazebo does not load !

How can I fix this issue?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2021-04-04 05:50:14 -0600

mohamed ahmed gravatar image

Check this it may answer your question

edit flag offensive delete link more

Comments

Thank you. The answer suggests editing setup_path variable in /gazebo_ros/gzserver and /gazebo_ros/gzclient

However, both files are read only.

Eman.m gravatar image Eman.m  ( 2021-04-04 15:09:55 -0600 )edit

I'm not sure if it is a good practice to edit read only files, but you can do so using the following command sudo gedit /gazebo_ros/gzserver and the same for the other file

mohamed ahmed gravatar image mohamed ahmed  ( 2021-04-05 01:18:06 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2021-04-03 13:48:34 -0600

Seen: 403 times

Last updated: Apr 04 '21