ABITstar.h
1 /*********************************************************************
2  * Software License Agreement (BSD License)
3  *
4  * Copyright (c) 2020, University of Oxford
5  * All rights reserved.
6  *
7  * Redistribution and use in source and binary forms, with or without
8  * modification, are permitted provided that the following conditions
9  * are met:
10  *
11  * * Redistributions of source code must retain the above copyright
12  * notice, this list of conditions and the following disclaimer.
13  * * Redistributions in binary form must reproduce the above
14  * copyright notice, this list of conditions and the following
15  * disclaimer in the documentation and/or other materials provided
16  * with the distribution.
17  * * Neither the name of the University of Toronto nor the names of its
18  * contributors may be used to endorse or promote products derived
19  * from this software without specific prior written permission.
20  *
21  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
24  * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
25  * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
26  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
27  * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
28  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
29  * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
31  * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
32  * POSSIBILITY OF SUCH DAMAGE.
33  *********************************************************************/
34 
35 /* Authors: Marlin Strub */
36 
37 #ifndef OMPL_GEOMETRIC_PLANNERS_INFORMEDTREES_ABITSTAR_
38 #define OMPL_GEOMETRIC_PLANNERS_INFORMEDTREES_ABITSTAR_
39 
40 #include "ompl/geometric/planners/informedtrees/BITstar.h"
41 
42 namespace ompl
43 {
44  namespace geometric
45  {
86  class ABITstar : public ompl::geometric::BITstar
87  {
88  public:
89  /* \brief Construct with a pointer to the space information and an optional name. */
90  ABITstar(const base::SpaceInformationPtr &spaceInfo, const std::string &name = "ABITstar");
91 
92  /* \brief Destruct using the default destructor. */
93  virtual ~ABITstar() override = default;
94 
96  void setInitialInflationFactor(double factor);
97 
99  void setInflationScalingParameter(double parameter);
100 
102  void setTruncationScalingParameter(double parameter);
103 
105  double getInitialInflationFactor() const;
106 
108  double getInflationScalingParameter() const;
109 
111  double getTruncationScalingParameter() const;
112 
114  double getCurrentInflationFactor() const;
115 
117  double getCurrentTruncationFactor() const;
118  };
119 
120  } // namespace geometric
121 
122 } // namespace ompl
123 
124 #endif // OMPL_GEOMETRIC_PLANNERS_INFORMEDTREES_ABITSTAR_
double getInitialInflationFactor() const
Get the inflation factor for the initial search.
Definition: ABITstar.cpp:146
double getCurrentTruncationFactor() const
Get the truncation factor for the current search.
Definition: ABITstar.cpp:166
void setInitialInflationFactor(double factor)
Set the inflation factor for the initial search.
Definition: ABITstar.cpp:131
void setInflationScalingParameter(double parameter)
Set the parameter for the inflation factor update policy.
Definition: ABITstar.cpp:136
double getInflationScalingParameter() const
Get the inflation scaling parameter.
Definition: ABITstar.cpp:151
Batch Informed Trees (BIT*)
Definition: BITstar.h:156
void setTruncationScalingParameter(double parameter)
Set the parameter for the truncation factor update policy.
Definition: ABITstar.cpp:141
double getTruncationScalingParameter() const
Get the truncation scaling parameter.
Definition: ABITstar.cpp:156
double getCurrentInflationFactor() const
Get the inflation factor for the current search.
Definition: ABITstar.cpp:161
Main namespace. Contains everything in this library.
Definition: AppBase.h:21