Gazebo does not show spawned model
I'm using ROS Melodic on Ubuntu 18.04 and Gazebo 9. When I launch roslaunch gazebo_ros empty_world.launch everything looks fine. After that I try to spawn my robot model with rosrun gazebo_ros spawn_model -file path/to/urdf.urdf -urdf -model printer. Despite the Terminal is telling me that the entity has successfully spawned I can't see anything in Gazebo. When I press on the model name in the tree structure the terminal that had the gazebo environment open dies. The URDF File I use is the one generated by the MoveIt Setup Assistant. This is what the log file says:
[roslaunch][INFO] 2020-08-17 11:30:40,688: Checking log directory for disk usage. This may take a while.
Press Ctrl-C to interrupt
[roslaunch][INFO] 2020-08-17 11:30:40,692: Done checking log file disk usage. Usage is <1GB.
[roslaunch][INFO] 2020-08-17 11:30:40,693: roslaunch starting with args ['/opt/ros/melodic/bin/roslaunch', 'gazebo_ros', 'empty_world.launch', 'verbose:=true']
[roslaunch][INFO] 2020-08-17 11:30:40,693: roslaunch env is {'LC_NUMERIC': 'de_DE.UTF-8', 'ROS_DISTRO': 'melodic', 'TERMINATOR_DBUS_PATH': '/net/tenshu/Terminator2', 'QT4_IM_MODULE': 'xim', 'GJS_DEBUG_OUTPUT': 'stderr', 'PKG_CONFIG_PATH': '/home/carlos/ws_printer/devel/lib/pkgconfig:/home/carlos/ws_moveit/devel/lib/pkgconfig:/opt/ros/melodic/lib/pkgconfig', 'WINDOWPATH': '2', 'XDG_CURRENT_DESKTOP': 'ubuntu:GNOME', 'LC_PAPER': 'de_DE.UTF-8', 'ROSLISP_PACKAGE_DIRECTORIES': '/home/carlos/ws_printer/devel/share/common-lisp:/home/carlos/ws_moveit/devel/share/common-lisp', 'QT_IM_MODULE': 'ibus', 'LOGNAME': 'carlos', 'USER': 'carlos', 'PATH': '/opt/ros/melodic/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin', 'XDG_VTNR': '2', 'HOME': '/home/carlos', 'CMAKE_PREFIX_PATH': '/home/carlos/ws_printer/devel:/home/carlos/ws_moveit/devel:/opt/ros/melodic', 'DISPLAY': ':0', 'SSH_AGENT_PID': '1981', 'LANG': 'en_US.UTF-8', 'TERM': 'xterm-256color', 'SHELL': '/bin/bash', 'ROS_LOG_FILENAME': '/home/carlos/.ros/log/c3e6df2a-e05b-11ea-a9f8-f85971f581ec/roslaunch-carlos-Lenovo-ideapad-320-15ISK-12374.log', 'XAUTHORITY': '/run/user/1000/gdm/Xauthority', 'SESSION_MANAGER': 'local/carlos-Lenovo-ideapad-320-15ISK:@/tmp/.ICE-unix/1886,unix/carlos-Lenovo-ideapad-320-15ISK:/tmp/.ICE-unix/1886', 'LC_MEASUREMENT': 'de_DE.UTF-8', 'TERMINATOR_UUID': 'urn:uuid:f2a07899-4ccc-4bb2-bb28-68a55b3b5cf9', 'QT_ACCESSIBILITY': '1', 'LD_LIBRARY_PATH': '/home/carlos/ws_printer/devel/lib:/home/carlos/ws_moveit/devel/lib:/opt/ros/melodic/lib', 'GNOME_DESKTOP_SESSION_ID': 'this-is-deprecated', 'CLUTTER_IM_MODULE': 'xim', 'TEXTDOMAIN': 'im-config', 'XMODIFIERS': '@im=ibus', 'GIO_LAUNCHED_DESKTOP_FILE_PID': '2389', 'XDG_RUNTIME_DIR': '/run/user/1000', 'GPG_AGENT_INFO': '/run/user/1000/gnupg/S.gpg-agent:0:1', 'ROS_PYTHON_VERSION': '2', 'USERNAME': 'carlos', 'XDG_SESSION_DESKTOP': 'ubuntu', 'SHLVL': '1', 'GIO_LAUNCHED_DESKTOP_FILE': '/usr/share/applications/terminator.desktop', 'ROS_VERSION': '1', 'GTK_IM_MODULE': 'ibus', 'LC_ADDRESS': 'de_DE.UTF-8', 'PYTHONPATH': '/opt/ros/melodic/lib/python2.7/dist-packages', 'SSH_AUTH_SOCK': '/run/user/1000/keyring/ssh', 'VTE_VERSION': '5202', 'ROS_ROOT': '/opt/ros/melodic/share/ros', 'GDMSESSION': 'ubuntu', 'IM_CONFIG_PHASE': '2', 'TEXTDOMAINDIR': '/usr/share/locale/', 'GNOME_SHELL_SESSION_MODE': 'ubuntu', 'TERMINATOR_DBUS_NAME': 'net.tenshu.Terminator20x1a6021154d881c', 'XDG_DATA_DIRS': '/usr/share/ubuntu:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop', 'XDG_CONFIG_DIRS': '/etc/xdg/xdg-ubuntu:/etc/xdg', 'ROS_PACKAGE_PATH': '/home/carlos/ws_printer/src/printer_des:/home/carlos/ws_printer/src/printer_config:/home/carlos/ws_moveit/src/moveit_tutorials:/home/carlos/ws_moveit/src/panda_moveit_config:/opt/ros/melodic/share', 'LESSOPEN': '| /usr/bin/lesspipe %s', 'XDG_SESSION_ID': '2', 'DBUS_SESSION_BUS_ADDRESS': 'unix:path=/run/user/1000/bus', '_': '/opt/ros/melodic/bin/roslaunch', 'LC_IDENTIFICATION': 'de_DE.UTF-8', 'DESKTOP_SESSION': 'ubuntu', 'LESSCLOSE': '/usr/bin/lesspipe %s %s', 'GTK_MODULES': 'gail:atk-bridge', 'XDG_SESSION_TYPE': 'x11', 'LC_TELEPHONE': 'de_DE.UTF-8', 'LC_MONETARY': 'de_DE.UTF-8', 'PWD ...
If you add
verbose:=true
to yourroslaunch
commands, you may see more messages from Gazebo indicating what's happening. Also, what's the exact Gazebo 9 version you're using? The latest release is 9.14.0, you could try that.