Robotics Library  0.7.0
AddRrtConCon.h
Go to the documentation of this file.
1 //
2 // Copyright (c) 2009, Markus Rickert
3 // All rights reserved.
4 //
5 // Redistribution and use in source and binary forms, with or without
6 // modification, are permitted provided that the following conditions are met:
7 //
8 // * Redistributions of source code must retain the above copyright notice,
9 // this list of conditions and the following disclaimer.
10 // * Redistributions in binary form must reproduce the above copyright notice,
11 // this list of conditions and the following disclaimer in the documentation
12 // and/or other materials provided with the distribution.
13 //
14 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
15 // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17 // ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
18 // LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
19 // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
20 // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
21 // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
22 // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
23 // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
24 // POSSIBILITY OF SUCH DAMAGE.
25 //
26 
27 #ifndef RL_PLAN_ADDRRTCONCON_H
28 #define RL_PLAN_ADDRRTCONCON_H
29 
30 #include "RrtConCon.h"
31 
32 namespace rl
33 {
34  namespace plan
35  {
46  class AddRrtConCon : public RrtConCon
47  {
48  public:
49  AddRrtConCon();
50 
51  virtual ~AddRrtConCon();
52 
53  virtual ::std::string getName() const;
54 
55  bool solve();
56 
59 
62 
65 
66  protected:
68  {
70  };
71 
72  Vertex addVertex(Tree& tree, const VectorPtr& q);
73 
74  static VertexBundle* get(const Tree& tree, const Vertex& v);
75 
76  private:
77 
78  };
79  }
80 }
81 
82 #endif //_RL_PLAN_ADDRRTCONCON_H
rl::plan::AddRrtConCon::lower
::rl::math::Real lower
Lower bound for radius.
Definition: AddRrtConCon.h:61
rl::plan::AddRrtConCon::VertexBundle::radius
::rl::math::Real radius
Definition: AddRrtConCon.h:69
rl::plan::AddRrtConCon::AddRrtConCon
AddRrtConCon()
Definition: AddRrtConCon.cpp:35
RrtConCon.h
rl::plan::Rrt::Tree
::boost::adjacency_list< ::boost::listS, ::boost::listS, ::boost::bidirectionalS, ::std::shared_ptr< VertexBundle >, ::boost::no_property, TreeBundle > Tree
Definition: Rrt.h:96
rl::plan::AddRrtConCon::get
static VertexBundle * get(const Tree &tree, const Vertex &v)
Definition: AddRrtConCon.cpp:69
rl::plan::Rrt::VertexBundle
Definition: Rrt.h:90
rl::plan::AddRrtConCon::alpha
::rl::math::Real alpha
Radius expansion factor.
Definition: AddRrtConCon.h:58
rl::plan::AddRrtConCon::VertexBundle
Definition: AddRrtConCon.h:68
rl::plan::Rrt::tree
::std::vector< Tree > tree
Definition: Rrt.h:151
rl::plan::Rrt::Vertex
::boost::adjacency_list_traits< ::boost::listS, ::boost::listS, ::boost::bidirectionalS, ::boost::listS >::vertex_descriptor Vertex
Definition: Rrt.h:112
rl::plan::AddRrtConCon::radius
::rl::math::Real radius
Initial vertex radius.
Definition: AddRrtConCon.h:64
rl::plan::AddRrtConCon::getName
virtual ::std::string getName() const
Definition: AddRrtConCon.cpp:75
rl::plan::AddRrtConCon::addVertex
Vertex addVertex(Tree &tree, const VectorPtr &q)
Definition: AddRrtConCon.cpp:48
rl::plan::RrtConCon
RRT-Connect2.
Definition: RrtConCon.h:47
rl::plan::VectorPtr
::std::shared_ptr< ::rl::math::Vector > VectorPtr
Definition: VectorPtr.h:37
rl::plan::AddRrtConCon::~AddRrtConCon
virtual ~AddRrtConCon()
Definition: AddRrtConCon.cpp:43
rl::plan::AddRrtConCon
Adaptive Dynamic-Domain RRT.
Definition: AddRrtConCon.h:47
rl::math::Real
double Real
Definition: Real.h:42
rl::plan::AddRrtConCon::solve
bool solve()
Find collision free path.
Definition: AddRrtConCon.cpp:81
rl
Robotics Library.
Definition: AnalogInput.cpp:30