diff --git a/include/hpp/manipulation/fwd.hh b/include/hpp/manipulation/fwd.hh index b4bb59c76f117d802a3d1dac7415f0ef81b46448..81189fd88c04f92669bfa0700b23418ab18a29aa 100644 --- a/include/hpp/manipulation/fwd.hh +++ b/include/hpp/manipulation/fwd.hh @@ -96,6 +96,7 @@ namespace hpp { typedef core::DifferentiableFunctionPtr_t DifferentiableFunctionPtr_t; typedef core::ConfigurationShooter ConfigurationShooter; typedef core::ConfigurationShooterPtr_t ConfigurationShooterPtr_t; + typedef core::ValidationReport ValidationReport; typedef std::pair< GripperPtr_t, HandlePtr_t> Grasp_t; typedef boost::shared_ptr <Grasp_t> GraspPtr_t; diff --git a/include/hpp/manipulation/graph-path-validation.hh b/include/hpp/manipulation/graph-path-validation.hh index 402c0074f08b3fdd9b2fc0c65ccda9d76b122ed4..15d9295f865f0adaf69693996e25787d9a49875d 100644 --- a/include/hpp/manipulation/graph-path-validation.hh +++ b/include/hpp/manipulation/graph-path-validation.hh @@ -49,6 +49,19 @@ namespace hpp { /// the encapsulated PathValidation::validate. bool validate (const PathPtr_t& path, bool reverse, PathPtr_t& validPart); + /// Call the GraphPathValidation::validate without validation report. + /// + /// \param path the path to check for validity, + /// \param reverse if true check from the end, + /// \retval the extracted valid part of the path, pointer to path if + /// path is valid, + /// \retval report information about the validation process. unused in + /// this case, + /// \return whether the whole path is valid. + virtual bool validate (const PathPtr_t& path, bool reverse, + PathPtr_t& validPart, + ValidationReport& report); + /// Set the encapsulated path validator. void innerValidation (const PathValidationPtr_t& pathValidation) { diff --git a/src/graph-path-validation.cc b/src/graph-path-validation.cc index 99b216b97422af95aae8ecaf951fc11983e7fbca..9104c200041dd039cbd50e2d4cfeb8bd7366c76d 100644 --- a/src/graph-path-validation.cc +++ b/src/graph-path-validation.cc @@ -39,6 +39,14 @@ namespace hpp { return success; } + bool GraphPathValidation::validate + (const PathPtr_t& path, bool reverse, PathPtr_t& validPart, + ValidationReport&) + { + assert (path); + return impl_validate (path, reverse, validPart); + } + bool GraphPathValidation::impl_validate ( const PathVectorPtr_t& path, bool reverse, PathPtr_t& validPart) {