18 #ifndef HPP_MANIPULATION_GRAPHPATHVALIDATOR_HH 19 # define HPP_MANIPULATION_GRAPHPATHVALIDATOR_HH 21 # include <hpp/core/path-validation.hh> 22 # include <hpp/core/obstacle-user.hh> 25 # include <hpp/manipulation/config.hh> 29 namespace manipulation {
62 virtual bool validate (
const PathPtr_t& path,
bool reverse,
69 pathValidation_ = pathValidation;
75 return pathValidation_;
81 constraintGraph_ = graph;
87 return constraintGraph_;
108 boost::shared_ptr<core::ObstacleUserInterface> oui =
110 if (oui) oui->addObstacle (
object);
122 boost::shared_ptr<core::ObstacleUserInterface> oui =
124 if (oui) oui->removeObstacleFromJoint (joint, obstacle);
135 boost::shared_ptr<core::ObstacleUserInterface> oui =
137 if (oui) oui->filterCollisionPairs (relMotion);
148 boost::shared_ptr<core::ObstacleUserInterface> oui =
150 if (oui) oui->setSecurityMargins(securityMargins);
162 bool impl_validate (
const PathPtr_t& path,
bool reverse,
170 template <
typename T>
180 #endif // HPP_MANIPULATION_GRAPHPATHVALIDATOR_HH boost::shared_ptr< Path > PathPtr_t
boost::shared_ptr< Device > DevicePtr_t
Definition: graph-path-validation.hh:46
static GraphPathValidationPtr_t create(const PathValidationPtr_t &pathValidation)
core::PathValidationReportPtr_t PathValidationReportPtr_t
Definition: fwd.hh:119
void constraintGraph(const graph::GraphPtr_t &graph)
Set the graph of constraints.
Definition: graph-path-validation.hh:79
pinocchio::JointPtr_t JointPtr_t
Definition: fwd.hh:32
#define HPP_DYNAMIC_PTR_CAST(t, x)
core::value_type value_type
Definition: fwd.hh:79
void addObstacle(const hpp::core::CollisionObjectConstPtr_t &object)
Definition: graph-path-validation.hh:106
graph::GraphPtr_t constraintGraph() const
Get the graph of constraints.
Definition: graph-path-validation.hh:85
boost::shared_ptr< GraphPathValidation > GraphPathValidationPtr_t
Definition: fwd.hh:88
void setSecurityMargins(const matrix_t &securityMargins)
Definition: graph-path-validation.hh:146
boost::shared_ptr< PathValidation > PathValidationPtr_t
void innerValidation(const PathValidationPtr_t &pathValidation)
Set the encapsulated path validator.
Definition: graph-path-validation.hh:67
core::matrix_t matrix_t
Definition: fwd.hh:120
core::PathValidationPtr_t PathValidationPtr_t
Definition: fwd.hh:118
static GradientBasedPtr_t create(const Problem &problem)
boost::shared_ptr< PathVector > PathVectorPtr_t
void filterCollisionPairs(const core::RelativeMotion::matrix_type &relMotion)
Filter collision pairs.
Definition: graph-path-validation.hh:133
boost::shared_ptr< Graph > GraphPtr_t
Definition: fwd.hh:35
void removeObstacleFromJoint(const JointPtr_t &joint, const pinocchio::CollisionObjectConstPtr_t &obstacle)
Definition: graph-path-validation.hh:119
const PathValidationPtr_t & innerValidation()
Get the encapsulated path validator.
Definition: graph-path-validation.hh:73
boost::shared_ptr< const CollisionObject > CollisionObjectConstPtr_t
Eigen::Matrix< RelativeMotionType, Eigen::Dynamic, Eigen::Dynamic > matrix_type
pinocchio::CollisionObjectConstPtr_t CollisionObjectConstPtr_t