44 const sdf::Model &_model)
46 sdf::ElementPtr modelElem = _model.Element();
54 if (modelElem->HasElement(
"pose"))
56 sdf::ElementPtr poseElem = modelElem->GetElement(
"pose");
57 if (poseElem->HasAttribute(
"relative_to"))
66 static bool warned =
false;
69 gzwarn <<
"Skipping serialization / deserialization for models "
70 <<
"with //pose/@relative_to attribute."
80 _out <<
"<?xml version=\"1.0\" ?>"
81 <<
"<sdf version='" << SDF_PROTOCOL_VERSION <<
"'>"
82 << modelElem->ToString(
"")