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  };
VertexSwitchLinear::_x
double _x
Definition: vertex_switchLinear.h:38
update
def update(text)
VertexSwitchLinear::read
virtual bool read(std::istream &is)
Definition: vertex_switchLinear.cpp:23
VertexSwitchLinear::oplusImpl
virtual void oplusImpl(const double *update)
Definition: vertex_switchLinear.cpp:51
VertexSwitchLinear::gradient
double gradient() const
The gradient at the current estimate is always 1;.
Definition: vertex_switchLinear.h:38
os
ofstream os("timeSchurFactors.csv")
VertexSwitchLinear::setToOriginImpl
virtual void setToOriginImpl()
Definition: vertex_switchLinear.cpp:37
VertexSwitchLinear
Definition: vertex_switchLinear.h:19
VertexSwitchLinear::x
double x() const
Definition: vertex_switchLinear.h:34
VertexSwitchLinear::VertexSwitchLinear
VertexSwitchLinear()
Definition: vertex_switchLinear.cpp:16
VertexSwitchLinear::setEstimate
virtual void setEstimate(const double &et)
Definition: vertex_switchLinear.cpp:44
VertexSwitchLinear::write
virtual bool write(std::ostream &os) const
Definition: vertex_switchLinear.cpp:31


rtabmap
Author(s): Mathieu Labbe
autogenerated on Thu Jul 25 2024 02:50:24