hpp-manipulation
9.3.0
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.hh
>
33
#include <
hpp/manipulation/device.hh
>
34
#include <
hpp/manipulation/fwd.hh
>
35
#include <
hpp/manipulation/graph/fwd.hh
>
36
37
namespace
hpp
{
38
namespace
manipulation
{
41
42
class
HPP_MANIPULATION_DLLAPI
Problem
:
public
core::Problem
{
43
public
:
44
typedef
core::Problem
Parent
;
45
47
static
ProblemPtr_t
create
(
DevicePtr_t
robot
);
48
50
void
constraintGraph
(
const
graph::GraphPtr_t
&
graph
);
51
53
graph::GraphPtr_t
constraintGraph
()
const
{
return
graph_; }
54
56
virtual
void
checkProblem
()
const
;
57
59
PathValidationPtr_t
pathValidation
()
const
;
60
63
void
pathValidation
(
const
PathValidationPtr_t
&
pathValidation
);
64
66
SteeringMethodPtr_t
manipulationSteeringMethod
()
const
;
67
72
PathValidationPtr_t
pathValidationFactory
()
const
;
73
74
void
setPathValidationFactory
(
const
core::PathValidationBuilder_t
& factory,
75
const
value_type
& tol);
76
77
protected
:
79
Problem
(
DevicePtr_t
robot
);
80
81
void
init
(ProblemWkPtr_t wkPtr);
82
83
private
:
84
ProblemWkPtr_t wkPtr_;
85
87
graph::GraphPtr_t
graph_;
88
89
core::PathValidationBuilder_t
pvFactory_;
90
value_type
pvTol_;
91
};
// class Problem
92
93
}
// namespace manipulation
94
}
// namespace hpp
95
96
#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:53
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:44
hpp::manipulation::Problem::checkProblem
virtual void checkProblem() const
Check whether the problem is well formulated.
hpp::manipulation::Problem::init
void init(ProblemWkPtr_t wkPtr)
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
connected-component.hh:39
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.hh
include
hpp
manipulation
problem.hh
Generated by
1.17.0