Unable to launch Gazebo simulation, showing error "[spawn_gazebo_model-4] process has died..."
I am using ROS melodic in Ubuntu 18.04. I have created one robot model in Gazebo and it was working fine. But now it is showing the following error.
[spawn_gazebo_model-4] process has died [pid 14674, exit code 1, cmd /opt/ros/melodic/lib/gazebo_ros/spawn_model -urdf -param robot_description -model robot -x 0 -y 0 -z 0 __name:=spawn_gazebo_model __log:=/home/vstnhwstn-11/.ros/log/bec072fe-ad8d-11eb-ad67-18c04db5f615/spawn_gazebo_model-4.log].
I did not change anything. I tried to fix the issue by executing killall gzserver && killall gzclient
but it was showing
gzserver: no process found
gzclient: no process found
I ran the simulation on another computer and it worked fine. So I created another workspace and tried to run the simulation. But the same error came again. I tired to kill the pid process but I couldn't find the number. I am confused now. It is working on another Laptop but not working on my system. Before the main error, terminal is showing as follows.
[INFO] [1620209671.250744, 0.000000]: Controller Spawner: Waiting for service controller_manager/load_controller Traceback (most recent call last): File "/opt/ros/melodic/lib/gazebo_ros/spawn_model", line 34, in <module> from tf.transformations import quaternion_from_euler File "/opt/ros/melodic/lib/python2.7/dist-packages/tf/__init__.py", line 31, in <module> from .listener import Transformer, TransformListener, TransformerROS File "/opt/ros/melodic/lib/python2.7/dist-packages/tf/listener.py", line 29, in <module> import numpy File "/home/vstnhwstn-11/.local/lib/python2.7/site-packages/numpy/__init__.py", line 142, in <module> from . import core File "/home/vstnhwstn-11/.local/lib/python2.7/site-packages/numpy/core/__init__.py", line 91, in <module> raise ImportError(msg.format(path)) ImportError: Something is wrong with the numpy installation. While importing we detected an older version of numpy in ['/home/vstnhwstn-11/.local/lib/python2.7/site-packages/numpy']. One method of fixing this is to repeatedly uninstall numpy until none is found, then reinstall this version.
I uninstalled numpy and installed again using pip uninstall numpy
and pip install numpy
. A warning is also coming and it is as follows.
[WARN] [1620214529.805213, 6.389000]: Controller Spawner couldn't find the expected controller_manager ROS interface.
I am confused whether the issue is relate to graphics card or not. Somebody please help me to solve this issue.