node_stamped_base_pa.h
Go to the documentation of this file.
1 /******************************************************************************
2 * *
3 * node_stamped_base_pa.h *
4 * ====================== *
5 * *
6 *******************************************************************************
7 * *
8 * 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 * Author: *
15 * Peter Weissig *
16 * *
17 *******************************************************************************
18 * *
19 * Original Source Code *
20 * *
21 * Repository: *
22 * https://github.com/OctoMap/octomap *
23 * *
24 * Files: *
25 * octomap/include/octomap/OcTreeStamped.cpp *
26 * octomap/include/octomap/OcTreeNode.cpp *
27 * *
28 * University of Freiburg *
29 * *
30 * Authors: *
31 * Kai M. Wurm, Armin Hornung *
32 * *
33 *******************************************************************************
34 * *
35 * New BSD License *
36 * *
37 * Copyright (c) 2015-2021 TU Chemnitz *
38 * All rights reserved. *
39 * *
40 * Redistribution and use in source and binary forms, with or without *
41 * modification, are permitted provided that the following conditions are met: *
42 * * Redistributions of source code must retain the above copyright notice, *
43 * this list of conditions and the following disclaimer. *
44 * * Redistributions in binary form must reproduce the above copyright *
45 * notice, this list of conditions and the following disclaimer in the *
46 * documentation and/or other materials provided with the distribution. *
47 * * Neither the name of the copyright holder nor the names of its *
48 * contributors may be used to endorse or promote products derived from *
49 * this software without specific prior written permission. *
50 * *
51 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS *
52 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED *
53 * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR *
54 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR *
55 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, *
56 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, *
57 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; *
58 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, *
59 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR *
60 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF *
61 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. *
62 * *
63 ******************************************************************************/
64 
65 #ifndef NODE_STAMPED_BASE_PA_H
66 #define NODE_STAMPED_BASE_PA_H
67 
68 // local headers
69 #include "octomap_pa/time_pa.h"
70 
71 // standard headers
72 #include <stdint.h>
73 #include <iostream>
74 #include <cstddef>
75 
76 //**************************[cNodeStampedBasePa]*******************************
77 template <typename NODE>
78 class cNodeStampedBasePa : public NODE {
79 
80  public:
81  typedef NODE NodeTypeBase;
83 
87  virtual ~cNodeStampedBasePa();
88 
89  bool operator==(const cNodeStampedBasePa<NODE>& other) const;
90 
91  void copyData(const cNodeStampedBasePa<NODE>& from);
92 
93  // streaming (saving and loading)
94  virtual std::istream& readData(std::istream &s);
95  virtual std::ostream& writeData(std::ostream &s) const;
96 
97  // timestamp
98  inline const cTimePa& getTimestamp() const;
99  inline void setTimestamp(const cTimePa &timestamp);
100  inline void updateTimestamp(const cTimePa &timestamp);
101 
102  // update occupancy and timesteps of inner nodes
103  inline void updateTimestampChildren();
104  inline void updateOccupancyChildren();
105 
106  protected:
108 };
109 
110 #include "octomap_pa/node_stamped_base_pa.hxx"
111 
112 #endif //#ifndef NODE_STAMPED_BASE_PA_H
cNodeStampedBasePa::updateOccupancyChildren
void updateOccupancyChildren()
cNodeStampedBasePa::setTimestamp
void setTimestamp(const cTimePa &timestamp)
cNodeStampedBasePa::NodeTypeBase
NODE NodeTypeBase
Definition: node_stamped_base_pa.h:143
s
XmlRpcServer s
cNodeStampedBasePa::updateTimestampChildren
void updateTimestampChildren()
cNodeStampedBasePa::updateTimestamp
void updateTimestamp(const cTimePa &timestamp)
cNodeStampedBasePa::timestamp
cTimePa timestamp
Definition: node_stamped_base_pa.h:169
cNodeStampedBasePa::NodeTypeFull
cNodeStampedBasePa< NODE > NodeTypeFull
Definition: node_stamped_base_pa.h:144
cNodeStampedBasePa::operator==
bool operator==(const cNodeStampedBasePa< NODE > &other) const
cNodeStampedBasePa::getTimestamp
const cTimePa & getTimestamp() const
cNodeStampedBasePa
Definition: node_stamped_base_pa.h:78
cNodeStampedBasePa::copyData
void copyData(const cNodeStampedBasePa< NODE > &from)
cNodeStampedBasePa::writeData
virtual std::ostream & writeData(std::ostream &s) const
cNodeStampedBasePa::cNodeStampedBasePa
cNodeStampedBasePa()
time_pa.h
cNodeStampedBasePa::~cNodeStampedBasePa
virtual ~cNodeStampedBasePa()
cTimePa
Definition: time_pa.h:57
cNodeStampedBasePa::readData
virtual std::istream & readData(std::istream &s)


octomap_pa
Author(s):
autogenerated on Wed Mar 2 2022 00:46:31