Main Page
Classes
Files
File List
File Members
src
octree_stamped_pa.cpp
Go to the documentation of this file.
1
/******************************************************************************
2
* *
3
* octree_stamped_pa.cpp *
4
* ===================== *
5
* *
6
*******************************************************************************
7
* *
8
* github repository *
9
* https://github.com/TUC-ProAut/ros_octomap *
10
* *
11
* Chair of Automation Technology, Technische Universität Chemnitz *
12
* https://www.tu-chemnitz.de/etit/proaut *
13
* *
14
*******************************************************************************
15
* *
16
* New BSD License *
17
* *
18
* Copyright (c) 2015-2020, Peter Weissig, Technische Universität Chemnitz *
19
* All rights reserved. *
20
* *
21
* Redistribution and use in source and binary forms, with or without *
22
* modification, are permitted provided that the following conditions are met: *
23
* * Redistributions of source code must retain the above copyright *
24
* notice, this list of conditions and the following disclaimer. *
25
* * Redistributions in binary form must reproduce the above copyright *
26
* notice, this list of conditions and the following disclaimer in the *
27
* documentation and/or other materials provided with the distribution. *
28
* * Neither the name of the Technische Universität Chemnitz nor the *
29
* names of its contributors may be used to endorse or promote products *
30
* derived from this software without specific prior written permission. *
31
* *
32
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" *
33
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE *
34
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE *
35
* ARE DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY *
36
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES *
37
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR *
38
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER *
39
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT *
40
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY *
41
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH *
42
* DAMAGE. *
43
* *
44
******************************************************************************/
45
46
// local headers
47
#include "
octomap_pa/octree_stamped_pa.h
"
48
49
50
//**************************[cOcTreeStampedPa]*********************************
51
cOcTreeStampedPa::cOcTreeStampedPa
(
double
resolution)
52
:
TreeTypeBase
(resolution) {
53
54
StaticMemberInit
.
ensureLinking
();
55
}
56
57
58
//**************************[~cOcTreeStampedPa]********************************
59
cOcTreeStampedPa::~cOcTreeStampedPa
() {
60
61
}
62
63
//**************************[create]*******************************************
64
cOcTreeStampedPa
*
cOcTreeStampedPa::create
()
const
{
65
66
return
new
cOcTreeStampedPa
(
resolution
);
67
}
68
69
70
//**************************[getTreeType]**************************************
71
std::string
cOcTreeStampedPa::getTreeType
()
const
{
72
73
return
"OctreeStampedPa"
;
74
}
75
76
82
//**************************[StaticMemberInitializer]**************************
83
cOcTreeStampedPa::StaticMemberInitializer::StaticMemberInitializer
() {
84
85
cOcTreeStampedPa
* tree =
new
cOcTreeStampedPa
(0.1);
86
AbstractOcTree::registerTreeType(tree);
87
}
88
89
90
//**************************[ensureLinking]************************************
91
void
cOcTreeStampedPa::StaticMemberInitializer::ensureLinking
() {
92
93
}
94
95
//**************************[static member]************************************
96
cOcTreeStampedPa::StaticMemberInitializer
cOcTreeStampedPa::StaticMemberInit
;
cOcTreeStampedPa::StaticMemberInit
static StaticMemberInitializer StaticMemberInit
to ensure static initialization (only once)
Definition:
octree_stamped_pa.h:97
octomap::OcTreeBaseImpl< cNodeStampedBasePa< octomap::OcTreeNode >, AbstractOccupancyOcTree >::resolution
double resolution
cOcTreeStampedBasePa
Definition:
octree_stamped_base_pa.h:57
cOcTreeStampedPa::StaticMemberInitializer::StaticMemberInitializer
StaticMemberInitializer(void)
Definition:
octree_stamped_pa.cpp:83
cOcTreeStampedPa::~cOcTreeStampedPa
virtual ~cOcTreeStampedPa(void)
Definition:
octree_stamped_pa.cpp:59
cOcTreeStampedPa::StaticMemberInitializer
Definition:
octree_stamped_pa.h:89
cOcTreeStampedPa::getTreeType
virtual std::string getTreeType() const
Definition:
octree_stamped_pa.cpp:71
cOcTreeStampedPa::StaticMemberInitializer::ensureLinking
void ensureLinking(void)
Definition:
octree_stamped_pa.cpp:91
cOcTreeStampedPa::cOcTreeStampedPa
cOcTreeStampedPa(double resolution)
Default constructor, sets resolution of leafs.
Definition:
octree_stamped_pa.cpp:51
octree_stamped_pa.h
cOcTreeStampedPa::create
cOcTreeStampedPa * create() const
Definition:
octree_stamped_pa.cpp:64
cOcTreeStampedPa
Definition:
octree_stamped_pa.h:62
octomap_pa
Author(s):
autogenerated on Thu Jun 11 2020 03:38:50