vertex_switchLinear.h
Go to the documentation of this file.
1 /*
2  * vertex_switchLinear.h
3  *
4  * Created on: 17.10.2011
5  * Author: niko
6  *
7  * Updated on: 14.01.2013
8  * Author: Christian Kerl <christian.kerl@in.tum.de>
9  */
10 
11 
12 #pragma once
13 
14 #include "g2o/core/base_vertex.h"
15 #include <math.h>
16 
17 
18 
19  class VertexSwitchLinear : public g2o::BaseVertex<1, double>
20  {
21 
22  public:
24 
25  virtual void setToOriginImpl();
26 
27  virtual void oplusImpl(const double* update);
28 
29  virtual bool read(std::istream& is);
30  virtual bool write(std::ostream& os) const;
31  virtual void setEstimate(const double &et);
32 
33 
34  double x() const { return _x; };
35 
36 
38  double gradient() const { return 1; } ;
39 
40  private:
41  double _x;
42 
43  };
virtual bool read(std::istream &is)
virtual bool write(std::ostream &os) const
double gradient() const
The gradient at the current estimate is always 1;.
virtual void setToOriginImpl()
virtual void setEstimate(const double &et)
virtual void oplusImpl(const double *update)


rtabmap
Author(s): Mathieu Labbe
autogenerated on Mon Dec 14 2020 03:37:06