types.h
Go to the documentation of this file.
1 //=================================================================================================
2 // Copyright (c) 2011, Johannes Meyer and Martin Nowara, TU Darmstadt
3 // All rights reserved.
4 
5 // Redistribution and use in source and binary forms, with or without
6 // modification, are permitted provided that the following conditions are met:
7 // * Redistributions of source code must retain the above copyright
8 // notice, this list of conditions and the following disclaimer.
9 // * Redistributions in binary form must reproduce the above copyright
10 // notice, this list of conditions and the following disclaimer in the
11 // documentation and/or other materials provided with the distribution.
12 // * Neither the name of the Flight Systems and Automatic Control group,
13 // TU Darmstadt, nor the names of its contributors may be used to
14 // endorse or promote products derived from this software without
15 // specific prior written permission.
16 
17 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
18 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
19 // WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
20 // DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY
21 // DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
22 // (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
23 // LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
24 // ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
26 // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 //=================================================================================================
28 
29 #ifndef HECTOR_POSE_ESTIMATION_TYPES_H
30 #define HECTOR_POSE_ESTIMATION_TYPES_H
31 
34 
35 namespace hector_pose_estimation {
36 
37  enum VectorIndex {
38  X = 0,
39  Y = 1,
40  Z = 2,
41  W = 3
42  };
43 
44  enum {
47  STATUS_READY = 0x4,
48  STATUS_MASK = 0xf,
49 
51  STATE_YAW = 0x20,
52  STATE_RATE_XY = 0x100,
53  STATE_RATE_Z = 0x200,
55  STATE_VELOCITY_Z = 0x2000,
56  STATE_POSITION_XY = 0x10000,
57  STATE_POSITION_Z = 0x20000,
58  STATE_MASK = 0x33330,
59 
69  };
70  typedef unsigned int SystemStatus;
71 
72  std::string getSystemStatusString(const SystemStatus& status, const SystemStatus& asterisk_status = 0);
73  static inline std::ostream& operator<<(std::ostream& os, const SystemStatus& status) {
74  return os << getSystemStatusString(status);
75  }
76 
77  class Model;
78 
79  class SystemModel;
80  class System;
81  template <class Derived> class System_;
83  typedef boost::weak_ptr<System> SystemWPtr;
85 
86  class MeasurementModel;
87  class MeasurementUpdate;
88  class Measurement;
89  template <class Derived> class Measurement_;
91  typedef boost::weak_ptr<Measurement> MeasurementWPtr;
93 
94  class Input;
96  typedef boost::weak_ptr<Input> InputWPtr;
98 
99  class PoseEstimation;
100  class Filter;
102  class State;
104 
105  class SubState;
106  template <int VectorDimension, int CovarianceDimension> class SubState_;
107  class BaseState;
109  typedef boost::weak_ptr<SubState> SubStateWPtr;
110 
113 
114 } // namespace hector_pose_estimation
115 
116 #endif // HECTOR_POSE_ESTIMATION_TYPES_H
Collection< Input > Inputs
Definition: types.h:97
boost::shared_ptr< System > SystemPtr
Definition: types.h:81
boost::shared_ptr< GlobalReference > GlobalReferencePtr
Definition: types.h:111
Collection< Measurement > Measurements
Definition: types.h:92
boost::weak_ptr< System > SystemWPtr
Definition: types.h:83
std::string getSystemStatusString(const SystemStatus &status, const SystemStatus &asterisk_status=0)
Definition: types.cpp:33
boost::shared_ptr< Measurement > MeasurementPtr
Definition: types.h:89
boost::weak_ptr< Input > InputWPtr
Definition: types.h:96
Collection< System > Systems
Definition: types.h:84
unsigned int SystemStatus
Definition: types.h:70
boost::shared_ptr< SubState > SubStatePtr
Definition: types.h:107
boost::weak_ptr< Measurement > MeasurementWPtr
Definition: types.h:91
static std::ostream & operator<<(std::ostream &os, const SystemStatus &status)
Definition: types.h:73
boost::shared_ptr< Filter > FilterPtr
Definition: types.h:100
boost::shared_ptr< Input > InputPtr
Definition: types.h:94
boost::shared_ptr< State > StatePtr
Definition: types.h:102
boost::weak_ptr< SubState > SubStateWPtr
Definition: types.h:109


hector_pose_estimation_core
Author(s): Johannes Meyer
autogenerated on Thu Feb 18 2021 03:29:31