hpp-manipulation
9.0.2
Classes for manipulation planning.
Toggle main menu visibility
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
>
34
#include <
hpp/manipulation/device.hh
>
35
#include <
hpp/manipulation/fwd.hh
>
36
#include <
hpp/manipulation/graph/fwd.hh
>
37
38
namespace
hpp
{
39
namespace
manipulation
{
42
43
class
HPP_MANIPULATION_DLLAPI
Problem
:
public
core::Problem
{
44
public
:
45
typedef
core::Problem
Parent
;
46
48
static
ProblemPtr_t
create
(
DevicePtr_t
robot
);
49
51
void
constraintGraph
(
const
graph::GraphPtr_t
&
graph
);
52
54
graph::GraphPtr_t
constraintGraph
()
const
{
return
graph_; }
55
57
virtual
void
checkProblem
()
const
;
58
60
PathValidationPtr_t
pathValidation
()
const
;
61
64
void
pathValidation
(
const
PathValidationPtr_t
&
pathValidation
);
65
67
SteeringMethodPtr_t
manipulationSteeringMethod
()
const
;
68
73
PathValidationPtr_t
pathValidationFactory
()
const
;
74
75
void
setPathValidationFactory
(
const
core::PathValidationBuilder_t
& factory,
76
const
value_type
& tol);
77
78
protected
:
80
Problem
(
DevicePtr_t
robot
);
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
93
94
}
// namespace manipulation
95
}
// namespace hpp
96
97
#endif
// HPP_MANIPULATION_PROBLEM_HH
hpp::core::Problem
hpp::core::Problem::robot
const DevicePtr_t & robot() const
hpp::manipulation::Problem::constraintGraph
graph::GraphPtr_t constraintGraph() const
Get the graph of constraints.
Definition
problem.hh:54
hpp::manipulation::Problem::constraintGraph
void constraintGraph(const graph::GraphPtr_t &graph)
Set the graph of constraints.
hpp::manipulation::Problem::Problem
Problem(DevicePtr_t robot)
Constructor.
hpp::manipulation::Problem::setPathValidationFactory
void setPathValidationFactory(const core::PathValidationBuilder_t &factory, const value_type &tol)
hpp::manipulation::Problem::create
static ProblemPtr_t create(DevicePtr_t robot)
Constructor.
hpp::manipulation::Problem::pathValidationFactory
PathValidationPtr_t pathValidationFactory() const
hpp::manipulation::Problem::pathValidation
PathValidationPtr_t pathValidation() const
Expose parent method.
hpp::manipulation::Problem::manipulationSteeringMethod
SteeringMethodPtr_t manipulationSteeringMethod() const
Get the steering method as a SteeringMethod.
hpp::manipulation::Problem::pathValidation
void pathValidation(const PathValidationPtr_t &pathValidation)
hpp::manipulation::Problem::Parent
core::Problem Parent
Definition
problem.hh:45
hpp::manipulation::Problem::checkProblem
virtual void checkProblem() const
Check whether the problem is well formulated.
hpp::manipulation::Problem::init
void init(ProblemWkPtr_t wkPtr)
HPP_MANIPULATION_DLLAPI
#define HPP_MANIPULATION_DLLAPI
Definition
config.hh:88
device.hh
fwd.hh
fwd.hh
hpp::core::PathValidationPtr_t
shared_ptr< PathValidation > PathValidationPtr_t
hpp::core::PathValidationBuilder_t
std::function< PathValidationPtr_t(const DevicePtr_t &, const value_type &)> PathValidationBuilder_t
hpp::manipulation::graph
Definition
dot.hh:39
hpp::manipulation::graph::GraphPtr_t
shared_ptr< Graph > GraphPtr_t
Definition
fwd.hh:47
hpp::manipulation
Definition
main.hh:2
hpp::manipulation::ProblemPtr_t
shared_ptr< Problem > ProblemPtr_t
Definition
fwd.hh:65
hpp::manipulation::value_type
core::value_type value_type
Definition
fwd.hh:89
hpp::manipulation::DevicePtr_t
shared_ptr< Device > DevicePtr_t
Definition
fwd.hh:40
hpp::manipulation::SteeringMethodPtr_t
shared_ptr< SteeringMethod > SteeringMethodPtr_t
Definition
fwd.hh:112
hpp
problem-solver.hh
problem.hh
include
hpp
manipulation
problem.hh
Generated by
1.17.0