20 #ifndef HPP_CORE_PROBLEM_HH 21 # define HPP_CORE_PROBLEM_HH 25 # include <hpp/pinocchio/device.hh> 26 # include <hpp/util/pointer.hh> 28 # include <hpp/core/config.hh> 92 void resetGoalConfigs ();
104 steeringMethod_ = sm;
105 if (constraints_) steeringMethod_->constraints (constraints_);
110 return steeringMethod_;
133 configValidations_ = configValidations;
138 return configValidations_;
143 void resetConfigValidations ();
147 void clearConfigValidations ();
160 return pathValidation_;
173 return configurationShooter_;
182 pathProjector_ = pathProjector;
188 return pathProjector_;
201 constraints_ = constraints;
202 if (steeringMethod_) steeringMethod_->constraints (constraints);
213 virtual void checkProblem ()
const;
224 void removeObstacleFromJoint (
const JointPtr_t& joint,
244 void filterCollisionPairs ();
257 if (parameters.has(name))
258 return parameters.get(name);
260 return parameterDescription(name).defaultValue();
269 void setParameter (
const std::string& name,
const Parameter& value);
296 void init (ProblemWkPtr_t wkPtr);
299 ProblemWkPtr_t wkPtr_;
329 #define HPP_START_PARAMETER_DECLARATION(name) \ 330 struct HPP_CORE_DLLAPI __InitializerClass_##name { \ 331 __InitializerClass_##name () { 333 #define HPP_END_PARAMETER_DECLARATION(name) \ 337 __InitializerClass_##name __instance_##name; \ 340 #endif // HPP_CORE_PROBLEM_HH const DistancePtr_t & distance() const
Get distance between configuration.
Definition: problem.hh:119
boost::shared_ptr< ConfigValidations > ConfigValidationsPtr_t
Definition: fwd.hh:106
pinocchio::DevicePtr_t DevicePtr_t
Definition: fwd.hh:114
void steeringMethod(const SteeringMethodPtr_t &sm)
Definition: problem.hh:103
Definition: problem.hh:48
ConfigurationShooterPtr_t configurationShooter() const
Get path validation method.
Definition: problem.hh:171
boost::shared_ptr< ConfigurationShooter > ConfigurationShooterPtr_t
Definition: fwd.hh:103
const ConfigValidationsPtr_t & configValidations() const
Get configuration validation methods.
Definition: problem.hh:136
boost::shared_ptr< ConstraintSet > ConstraintSetPtr_t
Definition: fwd.hh:110
PathValidationPtr_t pathValidation() const
Get path validation method.
Definition: problem.hh:158
ObjectFactory * create(ObjectFactory *parent=NULL, const XMLElement *element=NULL)
Definition: parameter.hh:117
pinocchio::CollisionObjectPtr_t CollisionObjectPtr_t
Definition: fwd.hh:89
pinocchio::JointPtr_t JointPtr_t
Definition: fwd.hh:133
Definition: container.hh:55
void configValidation(const ConfigValidationsPtr_t &configValidations)
Definition: problem.hh:131
PathProjectorPtr_t pathProjector() const
Get path projector method.
Definition: problem.hh:186
const ProblemTargetPtr_t & target() const
Get the target.
Definition: problem.hh:83
boost::shared_ptr< ConfigValidation > ConfigValidationPtr_t
Definition: fwd.hh:105
Definition: parameter.hh:53
SteeringMethodPtr_t steeringMethod() const
Get steering method.
Definition: problem.hh:109
const ConfigurationPtr_t & initConfig() const
Get shared pointer to initial configuration.
Definition: problem.hh:71
void constraints(const ConstraintSetPtr_t &constraints)
Definition: problem.hh:199
boost::shared_ptr< PathValidation > PathValidationPtr_t
Definition: fwd.hh:290
boost::shared_ptr< PathProjector > PathProjectorPtr_t
Definition: fwd.hh:306
void target(const ProblemTargetPtr_t &target)
Set the target.
Definition: problem.hh:78
std::vector< ConfigurationPtr_t > Configurations_t
Definition: fwd.hh:100
pinocchio::ConfigurationPtr_t ConfigurationPtr_t
Definition: fwd.hh:99
Container< Parameter > parameters
Definition: problem.hh:290
void distance(const DistancePtr_t &distance)
Set distance between configurations.
Definition: problem.hh:114
boost::shared_ptr< SteeringMethod > SteeringMethodPtr_t
Definition: fwd.hh:194
void pathProjector(const PathProjectorPtr_t &pathProjector)
Definition: problem.hh:180
const Parameter & getParameter(const std::string &name) const
Definition: problem.hh:255
boost::shared_ptr< Distance > DistancePtr_t
Definition: fwd.hh:122
boost::shared_ptr< ProblemTarget > ProblemTargetPtr_t
Definition: fwd.hh:175
const ConstraintSetPtr_t & constraints() const
Get constraint set.
Definition: problem.hh:206
boost::shared_ptr< Problem > ProblemPtr_t
Definition: fwd.hh:179
pinocchio::CollisionObjectConstPtr_t CollisionObjectConstPtr_t
Definition: fwd.hh:90
std::vector< CollisionObjectPtr_t > ObjectStdVector_t
Definition: fwd.hh:167
FCL_REAL distance(const KDOP< N > &other, Vec3f *P=NULL, Vec3f *Q=NULL) const
const DevicePtr_t & robot() const
return shared pointer to robot.
Definition: problem.hh:66