motion_model.h
Go to the documentation of this file.
1 /**************************************************************************************************
2  Software License Agreement (BSD License)
3 
4  Copyright (c) 2011-2013, LAR toolkit developers - University of Aveiro - http://lars.mec.ua.pt
5  All rights reserved.
6 
7  Redistribution and use in source and binary forms, with or without modification, are permitted
8  provided that the following conditions are met:
9 
10  *Redistributions of source code must retain the above copyright notice, this list of
11  conditions and the following disclaimer.
12  *Redistributions in binary form must reproduce the above copyright notice, this list of
13  conditions and the following disclaimer in the documentation and/or other materials provided
14  with the distribution.
15  *Neither the name of the University of Aveiro nor the names of its contributors may be used to
16  endorse or promote products derived from this software without specific prior written permission.
17 
18  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
19  IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
20  FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
21  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22  DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23  DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
24  IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
25  OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 ***************************************************************************************************/
32 #ifndef _MOTION_MODEL_H_
33 #define _MOTION_MODEL_H_
34 
35 #include <kfilter/ekfilter.hpp>
36 #include <string.h>
37 #include <math.h>
38 
40 
47 class constant_velocity_nh: public Kalman::EKFilter<double,1,false,false,true>
48 {
49  public:
53  constant_velocity_nh(double _l,double _dt,scan_matching_method _method);
54 
56  double l;
58  double dt;
59 
63  void updateDt(double _dt);
64 
65  protected:
66 
70  void makeA();
71 
75  void makeH();
76 
80  void makeW();
81 
85  void makeV();
86 
90  void makeR();
91 
95  void makeQ();
96 
100  void makeProcess();
101 
105  void makeMeasure();
106 
109 };
110 
113 
114 #endif
constant_velocity_nh(double _l, double _dt, scan_matching_method _method)
Constructor.
double dt
Iteration interval.
Definition: motion_model.h:58
void makeA()
Make the process Jacobian matrix.
void updateDt(double _dt)
Update the iteration interval.
void makeMeasure()
Make measurement, used when measurement is not possible (i'm not using it now)
double l
Wheel base of the nonholonomic vehicle.
Definition: motion_model.h:56
Nonholonomic constant velocity motion model.
Definition: motion_model.h:47
void makeQ()
Make process noise covariance matrix.
void makeH()
Make measurement sensitivity matrix.
void makeR()
Make measurement noise covariance matrix.
constant_velocity_nh::Vector Vector
Definition: motion_model.h:111
constant_velocity_nh::Matrix Matrix
Definition: motion_model.h:112
scan_matching_method
Definition: motion_model.h:39
void makeProcess()
Make process, model iteration.
void makeW()
Make process noise sensitivity matrix.
scan_matching_method method
Scan matching method used, this will influence the errors.
Definition: motion_model.h:108
void makeV()
Make measurement noise sensitivity matrix.


lidar_egomotion
Author(s): Jorge Almeida
autogenerated on Mon Mar 2 2015 01:32:10