node_stamped_base_pa.h
Go to the documentation of this file.
1 /******************************************************************************
2 * *
3 * node_stamped_base_pa.h *
4 * ====================== *
5 * *
6 * File is based on OcTreeStamped.h and OcTreeNode.h *
7 * *
8 *******************************************************************************
9 * *
10 * github repository *
11 * https://github.com/TUC-ProAut/ros_octomap *
12 * *
13 * Chair of Automation Technology, Technische Universität Chemnitz *
14 * https://www.tu-chemnitz.de/etit/proaut *
15 * *
16 *******************************************************************************
17 * *
18 * New BSD License *
19 * *
20 * Copyright (c) 2015-2018, Peter Weissig, Technische Universität Chemnitz *
21 * All rights reserved. *
22 * *
23 * Redistribution and use in source and binary forms, with or without *
24 * modification, are permitted provided that the following conditions are met: *
25 * * Redistributions of source code must retain the above copyright *
26 * notice, this list of conditions and the following disclaimer. *
27 * * Redistributions in binary form must reproduce the above copyright *
28 * notice, this list of conditions and the following disclaimer in the *
29 * documentation and/or other materials provided with the distribution. *
30 * * Neither the name of the Technische Universität Chemnitz nor the *
31 * names of its contributors may be used to endorse or promote products *
32 * derived from this software without specific prior written permission. *
33 * *
34 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" *
35 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE *
36 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE *
37 * ARE DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY *
38 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES *
39 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR *
40 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER *
41 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT *
42 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY *
43 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH *
44 * DAMAGE. *
45 * *
46 ******************************************************************************/
47 
48 #ifndef NODE_STAMPED_BASE_PA_H
49 #define NODE_STAMPED_BASE_PA_H
50 
51 // local headers
52 #include "octomap_pa/time_pa.h"
53 
54 // standard headers
55 #include <stdint.h>
56 #include <iostream>
57 #include <cstddef>
58 
59 //**************************[cNodeStampedBasePa]*******************************
60 template <typename NODE>
61 class cNodeStampedBasePa : public NODE {
62 
63  public:
64  typedef NODE NodeTypeBase;
66 
70  virtual ~cNodeStampedBasePa();
71 
72  bool operator==(const cNodeStampedBasePa<NODE>& other) const;
73 
74  void copyData(const cNodeStampedBasePa<NODE>& from);
75 
76  // streaming (saving and loading)
77  virtual std::istream& readData(std::istream &s);
78  virtual std::ostream& writeData(std::ostream &s) const;
79 
80  // timestamp
81  inline const cTimePa& getTimestamp() const;
82  inline void setTimestamp(const cTimePa &timestamp);
83  inline void updateTimestamp(const cTimePa &timestamp);
84 
85  // update occupancy and timesteps of inner nodes
86  inline void updateTimestampChildren();
87  inline void updateOccupancyChildren();
88 
89  protected:
91 };
92 
93 #include "octomap_pa/node_stamped_base_pa.hxx"
94 
95 #endif //#ifndef NODE_STAMPED_BASE_PA_H
void setTimestamp(const cTimePa &timestamp)
bool operator==(const cNodeStampedBasePa< NODE > &other) const
void updateTimestampChildren()
virtual std::ostream & writeData(std::ostream &s) const
void updateTimestamp(const cTimePa &timestamp)
virtual ~cNodeStampedBasePa()
cNodeStampedBasePa< NODE > NodeTypeFull
virtual std::istream & readData(std::istream &s)
void copyData(const cNodeStampedBasePa< NODE > &from)
const cTimePa & getTimestamp() const
void updateOccupancyChildren()


octomap_pa
Author(s):
autogenerated on Fri Jun 7 2019 22:04:53