hpp-manipulation
9.0.2
Classes for manipulation planning.
Toggle main menu visibility
Loading...
Searching...
No Matches
weighed-distance.hh
Go to the documentation of this file.
1
// Copyright (c) 2015 CNRS
2
// Authors: Joseph Mirabel
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_DISTANCE_HH
30
#define HPP_MANIPULATION_DISTANCE_HH
31
32
#include <
hpp/core/weighed-distance.hh
>
33
#include <
hpp/manipulation/config.hh
>
34
#include <
hpp/manipulation/fwd.hh
>
35
#include <
hpp/manipulation/graph/fwd.hh
>
36
37
namespace
hpp
{
38
namespace
manipulation
{
41
43
class
HPP_MANIPULATION_DLLAPI
WeighedDistance
:
public
core::WeighedDistance
{
44
public
:
45
static
WeighedDistancePtr_t
create
(
const
DevicePtr_t
&
robot
,
46
const
graph::GraphPtr_t
&
graph
);
47
48
static
WeighedDistancePtr_t
createCopy
(
const
WeighedDistancePtr_t
& distance);
49
50
virtual
core::DistancePtr_t
clone
()
const
;
51
53
void
constraintGraph
(
const
graph::GraphPtr_t
&
graph
) { graph_ =
graph
; }
54
56
graph::GraphPtr_t
constraintGraph
()
const
{
return
graph_; }
57
58
protected
:
59
WeighedDistance
(
const
DevicePtr_t
&
robot
,
const
graph::GraphPtr_t
graph
);
60
61
WeighedDistance
(
const
WeighedDistance
& distance);
62
64
virtual
value_type
impl_distance
(
ConfigurationIn_t
q1,
65
ConfigurationIn_t
q2)
const
;
66
virtual
value_type
impl_distance
(
core::NodePtr_t
n1,
67
core::NodePtr_t
n2)
const
;
68
69
void
init
(WeighedDistanceWkPtr_t self);
70
71
private
:
72
graph::GraphPtr_t
graph_;
73
WeighedDistanceWkPtr_t weak_;
74
75
WeighedDistance
() {}
76
HPP_SERIALIZABLE
();
77
};
// class Distance
78
79
}
// namespace manipulation
80
}
// namespace hpp
81
#endif
// HPP_MANIPULATION_DISTANCE_HH
hpp::core::WeighedDistance
hpp::core::WeighedDistance::robot
const DevicePtr_t & robot() const
hpp::manipulation::WeighedDistance::create
static WeighedDistancePtr_t create(const DevicePtr_t &robot, const graph::GraphPtr_t &graph)
hpp::manipulation::WeighedDistance::constraintGraph
graph::GraphPtr_t constraintGraph() const
Get the graph of constraints.
Definition
weighed-distance.hh:56
hpp::manipulation::WeighedDistance::constraintGraph
void constraintGraph(const graph::GraphPtr_t &graph)
Set the graph of constraints.
Definition
weighed-distance.hh:53
hpp::manipulation::WeighedDistance::WeighedDistance
WeighedDistance(const DevicePtr_t &robot, const graph::GraphPtr_t graph)
hpp::manipulation::WeighedDistance::clone
virtual core::DistancePtr_t clone() const
hpp::manipulation::WeighedDistance::createCopy
static WeighedDistancePtr_t createCopy(const WeighedDistancePtr_t &distance)
hpp::manipulation::WeighedDistance::init
void init(WeighedDistanceWkPtr_t self)
hpp::manipulation::WeighedDistance::impl_distance
virtual value_type impl_distance(core::NodePtr_t n1, core::NodePtr_t n2) const
hpp::manipulation::WeighedDistance::WeighedDistance
WeighedDistance(const WeighedDistance &distance)
hpp::manipulation::WeighedDistance::impl_distance
virtual value_type impl_distance(ConfigurationIn_t q1, ConfigurationIn_t q2) const
Derived class should implement this function.
config.hh
HPP_MANIPULATION_DLLAPI
#define HPP_MANIPULATION_DLLAPI
Definition
config.hh:88
fwd.hh
fwd.hh
hpp::core::DistancePtr_t
shared_ptr< Distance > DistancePtr_t
hpp::core::NodePtr_t
Node * NodePtr_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::WeighedDistancePtr_t
shared_ptr< WeighedDistance > WeighedDistancePtr_t
Definition
fwd.hh:81
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::ConfigurationIn_t
pinocchio::ConfigurationIn_t ConfigurationIn_t
Definition
fwd.hh:49
hpp
HPP_SERIALIZABLE
#define HPP_SERIALIZABLE()
weighed-distance.hh
include
hpp
manipulation
weighed-distance.hh
Generated by
1.17.0