types.h
Go to the documentation of this file.
00001 //=================================================================================================
00002 // Copyright (c) 2011, Johannes Meyer and Martin Nowara, TU Darmstadt
00003 // All rights reserved.
00004 
00005 // Redistribution and use in source and binary forms, with or without
00006 // modification, are permitted provided that the following conditions are met:
00007 //     * Redistributions of source code must retain the above copyright
00008 //       notice, this list of conditions and the following disclaimer.
00009 //     * Redistributions in binary form must reproduce the above copyright
00010 //       notice, this list of conditions and the following disclaimer in the
00011 //       documentation and/or other materials provided with the distribution.
00012 //     * Neither the name of the Flight Systems and Automatic Control group,
00013 //       TU Darmstadt, nor the names of its contributors may be used to
00014 //       endorse or promote products derived from this software without
00015 //       specific prior written permission.
00016 
00017 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
00018 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
00019 // WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
00020 // DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY
00021 // DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
00022 // (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
00023 // LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
00024 // ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
00025 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
00026 // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
00027 //=================================================================================================
00028 
00029 #ifndef HECTOR_POSE_ESTIMATION_TYPES_H
00030 #define HECTOR_POSE_ESTIMATION_TYPES_H
00031 
00032 #include <hector_pose_estimation/matrix.h>
00033 #include <hector_pose_estimation/collection.h>
00034 
00035 namespace hector_pose_estimation {
00036 
00037   enum VectorIndex {
00038     X = 0,
00039     Y = 1,
00040     Z = 2,
00041     W = 3
00042   };
00043 
00044   enum {
00045     STATUS_ALIGNMENT = 0x1,
00046     STATUS_DEGRADED = 0x2,
00047     STATUS_READY = 0x4,
00048     STATUS_MASK = 0xf,
00049 
00050     STATE_ROLLPITCH = 0x10,
00051     STATE_YAW = 0x20,
00052     STATE_RATE_XY = 0x100,
00053     STATE_RATE_Z = 0x200,
00054     STATE_VELOCITY_XY = 0x1000,
00055     STATE_VELOCITY_Z = 0x2000,
00056     STATE_POSITION_XY = 0x10000,
00057     STATE_POSITION_Z = 0x20000,
00058     STATE_MASK = 0x33330,
00059 
00060     STATE_PSEUDO_ROLLPITCH = 0x40,
00061     STATE_PSEUDO_YAW = 0x80,
00062     STATE_PSEUDO_RATE_XY = 0x400,
00063     STATE_PSEUDO_RATE_Z = 0x800,
00064     STATE_PSEUDO_VELOCITY_XY = 0x4000,
00065     STATE_PSEUDO_VELOCITY_Z = 0x8000,
00066     STATE_PSEUDO_POSITION_XY = 0x40000,
00067     STATE_PSEUDO_POSITION_Z = 0x80000,
00068     STATE_PSEUDO_MASK = 0xcccc0
00069   };
00070   typedef unsigned int SystemStatus;
00071 
00072   std::string getSystemStatusString(const SystemStatus& status, const SystemStatus& asterisk_status = 0);
00073   static inline std::ostream& operator<<(std::ostream& os, const SystemStatus& status) {
00074     return os << getSystemStatusString(status);
00075   }
00076 
00077   class Model;
00078 
00079   class SystemModel;
00080   class System;
00081   template <class Derived> class System_;
00082   typedef boost::shared_ptr<System> SystemPtr;
00083   typedef boost::weak_ptr<System> SystemWPtr;
00084   typedef Collection<System> Systems;
00085 
00086   class MeasurementModel;
00087   class MeasurementUpdate;
00088   class Measurement;
00089   template <class Derived> class Measurement_;
00090   typedef boost::shared_ptr<Measurement> MeasurementPtr;
00091   typedef boost::weak_ptr<Measurement> MeasurementWPtr;
00092   typedef Collection<Measurement> Measurements;
00093 
00094   class Input;
00095   typedef boost::shared_ptr<Input> InputPtr;
00096   typedef boost::weak_ptr<Input> InputWPtr;
00097   typedef Collection<Input> Inputs;
00098 
00099   class PoseEstimation;
00100   class Filter;
00101   typedef boost::shared_ptr<Filter> FilterPtr;
00102   class State;
00103   typedef boost::shared_ptr<State> StatePtr;
00104 
00105   class SubState;
00106   template <int VectorDimension, int CovarianceDimension> class SubState_;
00107   class BaseState;
00108   typedef boost::shared_ptr<SubState> SubStatePtr;
00109   typedef boost::weak_ptr<SubState> SubStateWPtr;
00110 
00111   class GlobalReference;
00112   typedef boost::shared_ptr<GlobalReference> GlobalReferencePtr;
00113 
00114 } // namespace hector_pose_estimation
00115 
00116 #endif // HECTOR_POSE_ESTIMATION_TYPES_H


hector_pose_estimation_core
Author(s): Johannes Meyer
autogenerated on Fri Aug 28 2015 10:59:55