You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
azeey
changed the title
Serialization of nested models fails when nested model pose has 'relative_to`
Serialization of nested models fails when nested model pose has "relative_to"
Sep 29, 2021
This PR prevents serialization of a model component if it has the //pose/@relative_to attribute to avoid flooding the console with error messages when there are multiple models with nested models using this attribute. Since model deserialization with //pose/@relative_to never worked, this should not affect existing behavior. I believe the model serialization / deserialization functionality is mainly used by the component editor. Related issue: #1071
Signed-off-by: Ian Chen <[email protected]>
Environment
main
, fa09864Description
Steps to reproduce
ign gazebo -v1
Output
I printed out the received SDFormat string for deserialization in
serializers::SdfModelSerializer::Deserialize
and ran it underign sdf -k
:The text was updated successfully, but these errors were encountered: