batching_pomp  1.0
This is an implementation of an algorithmic framework for anytime motion planning on large dense roadmaps.
Model.hpp
1 /***********************************************************************
2 Copyright (c) 2017, Shushman Choudhury
3 All rights reserved.
4 Authors: Shushman Choudhury <shushmanchoudhury@gmail.com>
5 
6 Redistribution and use in source and binary forms, with or without
7 modification, are permitted provided that the following conditions are
8 met:
9  Redistributions of source code must retain the above copyright
10  notice, this list of conditions and the following disclaimer.
11  Redistributions in binary form must reproduce the above copyright
12  notice, this list of conditions and the following disclaimer in the
13  documentation and/or other materials provided with the distribution.
14 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
15 "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
16 LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
17 A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
18 HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
19 SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
20 LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
21 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
24 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 *************************************************************************/
26 
27 #ifndef BATCHING_POMP_CSPACEBELIEF_MODEL_HPP_
28 #define BATCHING_POMP_CSPACEBELIEF_MODEL_HPP_
29 
30 namespace batching_pomp {
31 namespace cspacebelief {
32 
34 
39 template <class _T>
40 class Model
41 {
42 public:
43 
44  virtual ~Model() = default;
45 
48  virtual void addPoint(const _T &data) = 0;
49 
52  virtual void removePoint(const _T &data) = 0;
53 
57  virtual double estimate(const _T &query) const = 0;
58 
59 };
60 
61 } //namespace cspacebelief
62 } //namespace ompl_pomp
63 
64 #endif //BATCHING_POMP_CSPACEBELIEF_MODEL_HPP_
Abstract class that represents the configuration space belief manager.
Definition: Model.hpp:40
virtual void removePoint(const _T &data)=0
Definition: BatchingManager.hpp:36
virtual void addPoint(const _T &data)=0
virtual double estimate(const _T &query) const =0