Home | Tutorials | Wiki | Issues
Ask Your Question
0

Model joints are giving error

asked 2013-04-16 10:31:16 -0600

skhan gravatar image

updated 2013-04-18 03:25:47 -0600

Hello, I designed model in gazebo. I was working fine by this weekend but when I ran it today, it is giving strange error. I am using Gazebo 1.6.3, ROS-Groovy and Ubuntu 12.04 LTS.

skhan@skhan:~$ gazebo ~/gazebo_ros_plugin/AccMet_Robot.world
Gazebo multi-robot simulator, version 1.6.3
Copyright (C) 2013 Open Source Robotics Foundation.
Released under the Apache 2 License.
http://gazebosim.org

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

Error [parser.cc:719] XML Element[link_name], child of element[parent] not defined in SDF. Ignoring.[parent]
Error [parser.cc:710] Error reading element <parent>
Error [parser.cc:710] Error reading element <joint>
Error [parser.cc:710] Error reading element <model>
Error [parser.cc:369] Unable to read element <sdf>
Error:   Could not find the 'robot' element in the xml file
         at line 59 in /tmp/buildd/ros-groovy-urdfdom-0.2.7-0precise-20130326-0224/urdf_parser/src/model.cpp
Error [parser_urdf.cc:1686] Unable to call parseURDF on robot model
Warning [parser.cc:377] SDF has no <sdf> element in file[urdf file]
Error [parser.cc:291] parse as old deprecated model file failed.
Error [parser.cc:636] Unable to read file[/home/skhan/gazebo_ros_plugin/models/AccMet_Robot/model.sdf]
Error [parser.cc:710] Error reading element <world>
Error [parser.cc:369] Unable to read element <sdf>
Error:   Could not find the 'robot' element in the xml file
         at line 59 in /tmp/buildd/ros-groovy-urdfdom-0.2.7-0precise-20130326-0224/urdf_parser/src/model.cpp
Error [parser_urdf.cc:1686] Unable to call parseURDF on robot model
Warning [parser.cc:377] SDF has no <sdf> element in file[urdf file]
Error [parser.cc:291] parse as old deprecated model file failed.
Error [Server.cc:253] Unable to read sdf file[/home/skhan/gazebo_ros_plugin/AccMet_Robot.world]

Error [ConnectionManager.cc:100] Connection Manager is not running

I couldn't resolve it. Any help will be appreciated Thanks

edit retag flag offensive close merge delete

3 Answers

Sort by ยป oldest newest most voted
0

answered 2013-04-18 00:13:35 -0600

scpeters gravatar image

updated 2013-04-18 00:17:43 -0600

We had recently made some changes the joint sdf syntax, but we decided to revert them since they would be too confusing. Try following the sdf 1.3 joint syntax, for example the double_pendulum_with_base model.

edit flag offensive delete link more

Comments

I m following that syntex. But strange thing was that before weekend it was working but when I updated my Gazebo this week its no more working. When i comment out joint part then links are working fine keeping model static.

skhan gravatar imageskhan ( 2013-04-18 02:04:11 -0600 )edit

Problem is solved I realized after updating my sdf file using gzsdf it changes from <child>finger2</child> to <child> <link_name>finger2</link_name> </child> so i converted it back. Now things are better =)

skhan gravatar imageskhan ( 2013-04-18 02:54:41 -0600 )edit
2

answered 2013-04-18 03:31:08 -0600

skhan gravatar image

updated 2013-04-18 03:32:36 -0600

Problem is solved I realized after updating my sdf file using gzsdf it somehow changes from

<parent>base</parent>
<child>shoulder</child>

to

<parent>
  <link_name>base</link_name>
</parent>
<child>
  <link_name>shoulder</link_name>
</child>

so i converted it back. Now things are better =)

edit flag offensive delete link more

Comments

1

I had the same problem now after an udpate. I had to fix it this way. Thanks

AndreiHaidu gravatar imageAndreiHaidu ( 2013-04-20 11:29:24 -0600 )edit

You are Welcome

skhan gravatar imageskhan ( 2013-04-23 04:42:29 -0600 )edit
0

answered 2013-04-17 02:28:06 -0600

AndreiHaidu gravatar image

Hi,

Could you post your sdf file? The error seems to be this:

XML Element[link_name], child of element[parent] not defined in SDF.

Cheers, Andrei

edit flag offensive delete link more

Comments

@AndreiHaidu Please check my updated question

skhan gravatar imageskhan ( 2013-04-18 02:02:15 -0600 )edit

Problem is that before weekend it was working fine but when I updated my Gazebo version its no more working. When I commented out joints part then links are working fine keeping model static.

skhan gravatar imageskhan ( 2013-04-18 02:05:16 -0600 )edit

Problem is solved I realized after updating my sdf file using gzsdf it changes from

   &lt;child&gt;finger2&lt;/child&gt;

to <child> <linkname>finger2</linkname> </child>

so i converted it back. Now things are better =)

skhan gravatar imageskhan ( 2013-04-18 03:19:02 -0600 )edit
Login/Signup to Answer

Question Tools

Stats

Asked: 2013-04-16 10:31:16 -0600

Seen: 3,205 times

Last updated: Apr 18 '13