MOOS 0.2375
/home/toby/moos-ivp/MOOS-2375-Oct0611/NavigationAndControl/MOOSNavLib/MOOSNavBeacon.cpp
Go to the documentation of this file.
00001 
00002 //
00003 //   MOOS - Mission Oriented Operating Suite 
00004 //  
00005 //   A suit of Applications and Libraries for Mobile Robotics Research 
00006 //   Copyright (C) 2001-2005 Massachusetts Institute of Technology and 
00007 //   Oxford University. 
00008 //    
00009 //   This software was written by Paul Newman and others
00010 //   at MIT 2001-2002 and Oxford University 2003-2005.
00011 //   email: pnewman@robots.ox.ac.uk. 
00012 //      
00013 //   This file is part of a  MOOS Basic (Common) Application. 
00014 //        
00015 //   This program is free software; you can redistribute it and/or 
00016 //   modify it under the terms of the GNU General Public License as 
00017 //   published by the Free Software Foundation; either version 2 of the 
00018 //   License, or (at your option) any later version. 
00019 //          
00020 //   This program is distributed in the hope that it will be useful, 
00021 //   but WITHOUT ANY WARRANTY; without even the implied warranty of 
00022 //   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 
00023 //   General Public License for more details. 
00024 //            
00025 //   You should have received a copy of the GNU General Public License 
00026 //   along with this program; if not, write to the Free Software 
00027 //   Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 
00028 //   02111-1307, USA. 
00029 //
00031 // MOOSNavBeacon.cpp: implementation of the CMOOSNavBeacon class.
00032 //
00034 #include "MOOSNavSensor.h"
00035 #include "MOOSNavBeacon.h"
00036 
00038 // Construction/Destruction
00040 
00041 CMOOSNavBeacon::CMOOSNavBeacon()
00042 {
00043     m_eType = FIXED;
00044     m_bPseudo = false;
00045 
00046     CMOOSNavSensor * pLBL = new CMOOSNavSensor;
00047     pLBL->m_sName = "LBL";
00048     pLBL->m_eType = CMOOSNavSensor::LBL;
00049 
00050     AddSensor(pLBL);
00051 
00052 }
00053 
00054 CMOOSNavBeacon::~CMOOSNavBeacon()
00055 {
00056 
00057 }
00058 
00059 
00060 bool CMOOSNavBeacon::GetFullState(Matrix &Result,Matrix * m_pXToUse,bool bUseEstimate)
00061 {
00062     if(Result.Nrows()!=FULL_STATES    || Result.Ncols()!=1)
00063     {
00064         Result.ReSize(FULL_STATES,1);
00065     }
00066 
00067     //set all to zero..
00068     Result    =0;
00069     
00070     I_X(Result,1)=m_State.m_dfX;
00071     I_Y(Result,1)=m_State.m_dfY;
00072     I_Z(Result,1)=m_State.m_dfZ;
00073 
00074 
00075     return true;
00076 
00077 
00078 
00079 }
00080 
00081 int CMOOSNavBeacon::GetStateSize()
00082 {
00083     return 0;
00084 }
00085 
00086 void CMOOSNavBeacon::Trace()
00087 {
00088     CMOOSNavBase::Trace();
00089 }
00090 
00091 
00092 bool CMOOSNavBeacon::RefreshState()
00093 {
00094     //nothing to do!
00095     //nothing can change!
00096     return true;
00097 }
00098 
00099 
00100 bool CMOOSNavBeacon::FillModelMatrices(Matrix &F,Matrix &Q,Matrix & Xhat,double dfDeltaT)
00101 {
00102     return true;
00103 }
00104 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines