hpp-manipulation 6.0.0
Classes for manipulation planning.
Loading...
Searching...
No Matches
constraint-set.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_CONSTRAINT_SET_HH
30#define HPP_MANIPULATION_CONSTRAINT_SET_HH
31
32#include <hpp/core/constraint-set.hh>
36
37namespace hpp {
38namespace manipulation {
41
43class HPP_MANIPULATION_DLLAPI ConstraintSet : public core::ConstraintSet {
44 public:
45 typedef core::ConstraintSet Parent_t;
46
49 const std::string& name);
50
53
55 virtual ConstraintPtr_t copy() const;
56
58
60
61 protected:
63 ConstraintSet(const DevicePtr_t& robot, const std::string& name);
67 void init(const ConstraintSetPtr_t& self);
68
69 virtual std::ostream& print(std::ostream& os) const;
70
71 private:
72 graph::EdgePtr_t edge_;
73 ConstraintSetWkPtr_t weak_;
74
75 ConstraintSet() {}
76 HPP_SERIALIZABLE();
77}; // class ConstraintSet
78
87typedef std::vector<ConstraintAndComplement_t> ConstraintsAndComplements_t;
89} // namespace manipulation
90} // namespace hpp
91
92BOOST_CLASS_EXPORT_KEY(hpp::manipulation::ConstraintSet)
93
94#endif // HPP_MANIPULATION_CONSTRAINT_SET_HH
a core::ConstraintSet remembering which edge created it
Definition constraint-set.hh:43
core::ConstraintSet Parent_t
Definition constraint-set.hh:45
void edge(graph::EdgePtr_t edge)
static ConstraintSetPtr_t createCopy(const ConstraintSetPtr_t &cs)
Return shared pointer to new object.
ConstraintSet(const ConstraintSet &other)
Copy constructor.
graph::EdgePtr_t edge() const
virtual std::ostream & print(std::ostream &os) const
virtual ConstraintPtr_t copy() const
return shared pointer to copy
ConstraintSet(const DevicePtr_t &robot, const std::string &name)
Constructor.
static ConstraintSetPtr_t create(const DevicePtr_t &robot, const std::string &name)
Return shared pointer to new object.
void init(const ConstraintSetPtr_t &self)
Store weak pointer to itself.
#define HPP_MANIPULATION_DLLAPI
Definition config.hh:88
std::vector< ConstraintAndComplement_t > ConstraintsAndComplements_t
Definition constraint-set.hh:87
shared_ptr< Edge > EdgePtr_t
Definition fwd.hh:49
shared_ptr< ConstraintSet > ConstraintSetPtr_t
Definition fwd.hh:138
constraints::ImplicitPtr_t ImplicitPtr_t
Definition fwd.hh:131
shared_ptr< Device > DevicePtr_t
Definition fwd.hh:40
core::ConstraintPtr_t ConstraintPtr_t
Definition fwd.hh:128
Definition main.hh:1
Definition constraint-set.hh:79
ImplicitPtr_t constraint
Definition constraint-set.hh:80
ImplicitPtr_t both
Definition constraint-set.hh:82
ConstraintAndComplement_t(const ImplicitPtr_t &constr, const ImplicitPtr_t &comp, const ImplicitPtr_t &b)
Definition constraint-set.hh:83
ImplicitPtr_t complement
Definition constraint-set.hh:81