File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -389,13 +389,14 @@ namespace sdf
389389 bool checkJointParentChildLinkNames (const sdf::Root *_root);
390390
391391 // / \brief Check that all joints in contained models specify parent
392- // / and child link names that match the names of sibling links.
392+ // / and child names that match the names of sibling links, joints,
393+ // / models, or frames.
393394 // / This checks recursively and should check the files exhaustively
394395 // / rather than terminating early when the first error is found.
395396 // / \param[in] _root SDF Root object to check recursively.
396397 // / \param[out] _errors Detected errors will be appended to this variable.
397398 SDFORMAT_VISIBLE
398- void checkJointParentChildLinkNames (const sdf::Root *_root, Errors &_errors);
399+ void checkJointParentChildNames (const sdf::Root *_root, Errors &_errors);
399400
400401 // / \brief For the world and each model, check that the attached_to graphs
401402 // / build without errors and have no cycles.
Original file line number Diff line number Diff line change @@ -327,7 +327,7 @@ Errors Root::Load(SDFPtr _sdf, const ParserConfig &_config)
327327
328328 // Check that Joint parent and child names resolve to valid and
329329 // different frames.
330- checkJointParentChildLinkNames (this , errors);
330+ checkJointParentChildNames (this , errors);
331331
332332 return errors;
333333}
Original file line number Diff line number Diff line change @@ -2245,7 +2245,7 @@ bool checkPoseRelativeToGraph(const sdf::Root *_root)
22452245bool checkJointParentChildLinkNames (const sdf::Root *_root)
22462246{
22472247 Errors errors;
2248- checkJointParentChildLinkNames (_root, errors);
2248+ checkJointParentChildNames (_root, errors);
22492249 if (!errors.empty ())
22502250 {
22512251 std::cerr << " Error when attempting to resolve child link name:"
@@ -2257,7 +2257,7 @@ bool checkJointParentChildLinkNames(const sdf::Root *_root)
22572257}
22582258
22592259// ////////////////////////////////////////////////
2260- void checkJointParentChildLinkNames (const sdf::Root *_root, Errors &_errors)
2260+ void checkJointParentChildNames (const sdf::Root *_root, Errors &_errors)
22612261{
22622262 auto checkModelJointParentChildNames = [](
22632263 const sdf::Model *_model, Errors &errors) -> void
You can’t perform that action at this time.
0 commit comments