Skip to content

Commit db3a590

Browse files
committed
rename new API to checkJointParentChildNames
Signed-off-by: Steve Peters <scpeters@openrobotics.org>
1 parent 88bc904 commit db3a590

3 files changed

Lines changed: 6 additions & 5 deletions

File tree

include/sdf/parser.hh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff 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.

src/Root.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
}

src/parser.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2245,7 +2245,7 @@ bool checkPoseRelativeToGraph(const sdf::Root *_root)
22452245
bool 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

0 commit comments

Comments
 (0)