hpp-manipulation 6.0.0
Classes for manipulation planning.
Loading...
Searching...
No Matches
problem.hh
Go to the documentation of this file.
1// Copyright (c) 2014, LAAS-CNRS
2// Authors: Joseph Mirabel (joseph.mirabel@laas.fr)
3//
4
5// Redistribution and use in source and binary forms, with or without
6// modification, are permitted provided that the following conditions are
7// met:
8//
9// 1. Redistributions of source code must retain the above copyright
10// notice, this list of conditions and the following disclaimer.
11//
12// 2. Redistributions in binary form must reproduce the above copyright
13// notice, this list of conditions and the following disclaimer in the
14// documentation and/or other materials provided with the distribution.
15//
16// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
17// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
18// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
19// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
20// HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
21// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
22// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
27// DAMAGE.
28
29#ifndef HPP_MANIPULATION_PROBLEM_HH
30#define HPP_MANIPULATION_PROBLEM_HH
31
32#include <hpp/core/problem-solver.hh> // PathValidationBuilder_t
33#include <hpp/core/problem.hh>
37
38namespace hpp {
39namespace manipulation {
42
43class HPP_MANIPULATION_DLLAPI Problem : public core::Problem {
44 public:
45 typedef core::Problem Parent;
46
49
52
54 graph::GraphPtr_t constraintGraph() const { return graph_; }
55
57 virtual void checkProblem() const;
58
61
64 void pathValidation(const PathValidationPtr_t& pathValidation);
65
68
74
75 void setPathValidationFactory(const core::PathValidationBuilder_t& factory,
76 const value_type& tol);
77
78 protected:
81
82 void init(ProblemWkPtr_t wkPtr);
83
84 private:
85 ProblemWkPtr_t wkPtr_;
86
88 graph::GraphPtr_t graph_;
89
90 core::PathValidationBuilder_t pvFactory_;
91 value_type pvTol_;
92}; // class Problem
94} // namespace manipulation
95} // namespace hpp
96
97#endif // HPP_MANIPULATION_PROBLEM_HH
Definition problem.hh:43
graph::GraphPtr_t constraintGraph() const
Get the graph of constraints.
Definition problem.hh:54
void constraintGraph(const graph::GraphPtr_t &graph)
Set the graph of constraints.
Problem(DevicePtr_t robot)
Constructor.
void setPathValidationFactory(const core::PathValidationBuilder_t &factory, const value_type &tol)
static ProblemPtr_t create(DevicePtr_t robot)
Constructor.
PathValidationPtr_t pathValidationFactory() const
PathValidationPtr_t pathValidation() const
Expose parent method.
SteeringMethodPtr_t manipulationSteeringMethod() const
Get the steering method as a SteeringMethod.
void pathValidation(const PathValidationPtr_t &pathValidation)
core::Problem Parent
Definition problem.hh:45
virtual void checkProblem() const
Check whether the problem is well formulated.
void init(ProblemWkPtr_t wkPtr)
#define HPP_MANIPULATION_DLLAPI
Definition config.hh:88
shared_ptr< Graph > GraphPtr_t
Definition fwd.hh:47
shared_ptr< Problem > ProblemPtr_t
Definition fwd.hh:65
core::PathValidationPtr_t PathValidationPtr_t
Definition fwd.hh:144
core::value_type value_type
Definition fwd.hh:89
shared_ptr< Device > DevicePtr_t
Definition fwd.hh:40
shared_ptr< SteeringMethod > SteeringMethodPtr_t
Definition fwd.hh:112
Definition main.hh:1