In place of calling readDoc from gazebo/sdf/interface/parser.cc:277 and gazebo/sdf/interface/parser.cc:305, do a check to see if the incoming model is SDF first, then perform readDoc or conversion from URDF accordingly. This way, we can avoid unnecessary warnings from failures to parse valid URDF files as SDF.
Original report (archived issue) by John Hsu (Bitbucket: hsu, GitHub: hsu).
From discussion on warning messages.
In place of calling
readDoc
from gazebo/sdf/interface/parser.cc:277 and gazebo/sdf/interface/parser.cc:305, do a check to see if the incoming model is SDF first, then performreadDoc
or conversion from URDF accordingly. This way, we can avoid unnecessary warnings from failures to parse valid URDF files as SDF.