Source or binary build? source, main, fa09864f759f4b267b60ca4ea281fb6ce69d2e1a
Description
Expected behavior: No errors when running a world with nested models
Actual behavior: Serialization errors are printed when running a world with nested models where the pose of a model is given relative to another entity.
Error: Could not find the 'robot' element in the xml file
at line 80 in /build/urdfdom-YMMa9X/urdfdom-1.0.0/urdf_parser/src/model.cpp
Error [parser_urdf.cc:3255] Unable to call parseURDF on robot model
Error [parser.cc:820] parse as old deprecated model file failed.
[GUI] [Err] [Model.hh:73] Unable to unserialize sdf::Model
I printed out the received SDFormat string for deserialization in serializers::SdfModelSerializer::Deserialize and ran it under ign sdf -k:
Error: Could not find the 'robot' element in the xml file
at line 80 in /build/urdfdom-YMMa9X/urdfdom-1.0.0/urdf_parser/src/model.cpp
Error Code 5: [:/home/addisu/ws/fortress/src/ign-gazebo/test.sdf:L2]: Msg: Attribute //pose[@relative_to] of top level model must be left empty, found //pose[@relative_to='link_00'].
Error Code 9: Msg: Errors were found when checking the XML of element<sdf>.
Error Code 1: Msg: Unable to read file:/home/addisu/ws/fortress/src/ign-gazebo/test.sdf
Environment
main
, fa09864f759f4b267b60ca4ea281fb6ce69d2e1aDescription
Steps to reproduce
Run the following world with
ign gazebo -v1
Output
I printed out the received SDFormat string for deserialization in
serializers::SdfModelSerializer::Deserialize
and ran it underign sdf -k
: