Gazebo | Ignition | Community
Ask Your Question
0

Gazebo 1.5 crash on startup, InvalidNameException

asked 2013-07-27 11:05:47 -0500

Davinci gravatar image

updated 2013-07-30 14:21:15 -0500

I had some problems with old sdf files, I got warnings with the default empty_world so I now use a custom empty world.

Warning [parser.cc:361] Converting a deprecated SDF source[/opt/ros/groovy/stacks/simulatorgazebo/gazeboworlds/worlds/empty.world]. Set SDF value Version[1.2] to Version[1.3] Please use the gzsdf tool to update your SDF files. $ gzsdf convert [sdf_file] Would these files be fixed if I reinstall ROS Groovy?

But the InvalidNameException persists, what could cause this?

lennart@Flaptop:~/catkin_ws/src/beginner_tutorials$ roslaunch beginner_tutorials empty_sdf.launch 
... logging to /home/lennart/.ros/log/9cb9bd36-f6d5-11e2-b449-0025b3bf3892/roslaunch-Flaptop-8479.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.

started roslaunch server http://Flaptop:33673/

SUMMARY
========

PARAMETERS
 * /rosdistro
 * /rosversion
 * /use_sim_time

NODES
  /
    gazebo (gazebo/gazebo)
    gazebo_gui (gazebo/gui)

auto-starting new master
process[master]: started with pid [8494]
ROS_MASTER_URI=http://localhost:11311

setting /run_id to 9cb9bd36-f6d5-11e2-b449-0025b3bf3892
process[rosout-1]: started with pid [8507]
started core service [/rosout]
process[gazebo-2]: started with pid [8521]
process[gazebo_gui-3]: started with pid [8526]
Gazebo multi-robot simulator, version 1.5.0
Copyright (C) 2013 Open Source Robotics Foundation.
Released under the Apache 2 License.
http://gazebosim.org

Gazebo multi-robot simulator, version 1.5.0
Copyright (C) 2013 Open Source Robotics Foundation.
Released under the Apache 2 License.
http://gazebosim.org

Msg Waiting for master.terminate called after throwing an instance of 'ros::InvalidNameException'
  what():  Character [] at element [8] is not valid in Graph Resource Name [gazeboeb].  Valid characters are a-z, A-Z, 0-9, / and _.
Aborted (core dumped)
[gazebo-2] process has died [pid 8521, exit code 134, cmd /opt/ros/groovy/stacks/simulator_gazebo/gazebo/scripts/gazebo /home/lennart/catkin_ws/src/beginner_tutorials/worlds/empty_sdf.world __name:=gazebo __log:=/home/lennart/.ros/log/9cb9bd36-f6d5-11e2-b449-0025b3bf3892/gazebo-2.log].
log file: /home/lennart/.ros/log/9cb9bd36-f6d5-11e2-b449-0025b3bf3892/gazebo-2*.log

The launch file:

<launch>

  <arg name="paused" default="false"/>
  <arg name="use_sim_time" default="true"/>
  <arg name="gui" default="true"/>
  <arg name="throttled" default="false"/>

  <!-- set use_sim_time flag -->
  <group if="$(arg use_sim_time)">
    <param name="/use_sim_time" value="true" />
  </group>


  <!-- start empty world -->
  <group if="$(arg paused)">
    <group if="$(arg throttled)">
      <node name="gazebo" pkg="gazebo" type="gazebo" args="-u $(find beginner_tutorials)/worlds/empty_throttled.world" respawn="false" output="screen"/>
    </group>
    <group unless="$(arg throttled)">
      <node name="gazebo" pkg="gazebo" type="gazebo" args="-u $(find beginner_tutorials)/worlds/empty_sdf.world" respawn="false" output="screen"/>
    </group>
  </group>
  <group unless="$(arg paused)">
    <group if="$(arg throttled)">
      <node name="gazebo" pkg="gazebo" type="gazebo" args="$(find beginner_tutorials)/worlds/empty_throttled.world" respawn="false" output="screen"/>
    </group>
    <group unless="$(arg throttled)">
      <node name="gazebo" pkg="gazebo" type="gazebo" args="$(find beginner_tutorials)/worlds/empty_sdf.world" respawn="false" output="screen"/>
    </group>
  </group>

  <!-- start gui -->
  <group if="$(arg gui)">
    <node name="gazebogui" pkg="gazebo" type="gui" respawn="false" output="screen"/>
  </group>

</launch>
edit retag flag offensive close merge delete

Comments

I am not quite sure I understand the problem. Did you already run gzsdf convert? you don't have to reinstall ROS to convert sdf files to the new version, just running gzsdf convert should be enough.

atenea gravatar imageatenea ( 2013-07-30 04:09:57 -0500 )edit

I did already converted the file (but it is a bit unhandy as the files are installed under /opt and you need root rights to convert them). The problem now is the ros::InvalidNameException' which makes Gazebo crash. I cannot load a world in Gazebo as it crashes constantly.

Davinci gravatar imageDavinci ( 2013-07-30 04:13:10 -0500 )edit
atenea gravatar imageatenea ( 2013-07-30 04:52:18 -0500 )edit
atenea gravatar imageatenea ( 2013-07-30 04:52:30 -0500 )edit

Hi, did you ever find a solution? I have the same InvalidNameException for empty_world and an SDF parsing error similar to yours with simple_world (or any other world with objects in it).

Neil Traft gravatar imageNeil Traft ( 2014-07-09 19:13:49 -0500 )edit

3 Answers

Sort by ยป oldest newest most voted
0

answered 2014-07-24 17:27:20 -0500

Neil Traft gravatar image

updated 2014-07-24 17:28:13 -0500

If you were working on a 32-bit OS, then I believe that is your issue. I have the same issue on all the 32-bit machines in my lab, but not the 64-bit ones. It is also not a problem in later versions of Gazebo; only the one needed by Groovy (1.5).

edit flag offensive delete link more
0

answered 2013-07-30 10:44:00 -0500

nkoenig gravatar image

It looks like you have a spelling mistake somewhere. The error message says gazeboeb is invalid. Search through your code for gazeboeb and fix the spelling.

edit flag offensive delete link more

Comments

Thanks for the suggestion but there is no gazeboeb, I added the launch file. I saw in another post that sometimes underscores in node names gave problems so I corrected that. But that did not help..

Davinci gravatar imageDavinci ( 2013-07-30 14:25:02 -0500 )edit

ROS is not happy with something in your launch files. Can you trying commenting thing out until it works. Basically narrow down what part is the problem.

nkoenig gravatar imagenkoenig ( 2013-07-30 19:10:04 -0500 )edit

I avoided this error by using fuerte, but now I want to use moveit. The problem has to be somewhere i gazebo because even: roslaunch gazeboworlds emptyworld.launch causes the error.

Davinci gravatar imageDavinci ( 2013-09-24 04:48:46 -0500 )edit

I avoided this error by using fuerte, but now I want to use moveit. The problem has to be somewhere i gazebo because even: roslaunch gazeboworlds emptyworld.launch causes the error.

Davinci gravatar imageDavinci ( 2013-09-24 04:49:17 -0500 )edit
0

answered 2013-09-25 11:58:34 -0500

nkoenig gravatar image

Check out this question

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

Stats

Asked: 2013-07-27 11:05:47 -0500

Seen: 1,330 times

Last updated: Jul 24 '14