Gazebo Crashes When Launching Through ROS
Hi everyone. I've been trying to follow along this tutorial: http://gazebosim.org/tutorials/?tut=ros_roslaunch. I use Gazebo 2.2.2 with ROS Indigo and Ubuntu 14.04. The problem is that whenever I use roslaunch, there is a greater than 50% chance that the GUI will crash. The relevant printouts are below, with what I think are the important parts in bold:
Msg Waiting for master**Error [Connection.cc:787] Getting remote endpoint failed
terminate called after throwing an instance of 'boost::exception_detail::clone_impl >'**
what(): remote_endpoint: Transport endpoint is not connected
[ INFO] [1402350507.784227963]: Finished loading Gazebo ROS API Plugin.
Msg Waiting for master
[ INFO] [1402350507.788051043]: waitForService: Service [/gazebo/set_physics_properties] has not been advertised, waiting...
Msg Connected to gazebo master @ http://127.0.0.1:11345
Msg Publicized address: 192.168.10.104
Aborted (core dumped)
**[gazebo_gui-3] process has died [pid 8125, exit code 134, cmd /opt/ros/indigo/lib/gazebo_ros/gzclient __name:=gazebo_gui __log:=/home/s/.ros/log/c94fe566-f01f-11e3-a690-001aa0adcadc/gazebo_gui-3.log].**
log file: /home/s/.ros/log/c94fe566-f01f-11e3-a690-001aa0adcadc/gazebo_gui-3*.log
[ INFO] [1402350509.082584759, 0.022000000]: waitForService: Service [/gazebo/set_physics_properties] is now available.
[ INFO] [1402350509.157011114, 0.089000000]: Physics dynamic reconfigure ready.
I know this question has already been asked in http://answers.gazebosim.org/question/6271/getting-remote-endpoint-failed-let-gazebo-gui/ as well as http://answers.ros.org/question/168856/fails-gazebo-to-start-from-ros-boostexception_detail-error/, and someone suggested a workaround in https://bitbucket.org/osrf/gazebo/issue/1158/gazebo-30-prerelease-builds-on-ubuntu-1404. However, the workaround did not help at all in my case, and I didn't find any other solutions. Any help from fellow users here would be greatly appreciated. Thanks.
NOTE: I'm very sorry about the format. I'm new to this, and I can't quite figure out how to separate paragraphs in this format.
Asked by K. Zeng on 2014-06-09 16:56:52 UTC
Answers
The remote endpoint failed to connect is being tracked in issue 1204. We don't have a solution yet, but it appears to be a problem with gazebo's transport layer between gzserver and gzclient. Try running headless (without gzclient) and see if that works.
Asked by scpeters on 2014-06-10 13:07:58 UTC
Comments
I just ran gzserver by first launching roscore, then used the command "rosrun gazebo_ros gzserver". There are no issues there aside from the line "/opt/ros/indigo/lib/gazebo_ros/gzserver: 5: [: Linux: unexpected operator". I've killed and restarted gzserver several times and did not encounter the "Getting remote endpoint failed" error.
Asked by K. Zeng on 2014-06-10 13:46:50 UTC
You should be able to launch gzclient separately as well, once gzserver is running properly.
Asked by scpeters on 2014-06-10 13:50:52 UTC
I was able to launch gzclient with "rosrun gazebo_ros gzclient" once gzserver was up. Again, there were no issues aside from the line "/opt/ros/indigo/lib/gazebo_ros/gzclient: 5: [: Linux: unexpected operator" in the console. I've also noticed that the error happens far more often when I use roslaunch than when I use roscore and then rosrun.
Asked by K. Zeng on 2014-06-10 13:53:53 UTC
Comments