g2o
Public Member Functions | Public Attributes | List of all members
LineInfo Struct Reference
Collaboration diagram for LineInfo:
Collaboration graph
[legend]

Public Member Functions

 LineInfo (VertexSegment2D *s)
 
 LineInfo (VertexSegment2D *s)
 

Public Attributes

VertexLine2Dline
 
VertexPointXYp1
 
VertexPointXYp2
 

Detailed Description

Definition at line 99 of file converteSegmentLine.cpp.

Constructor & Destructor Documentation

LineInfo::LineInfo ( VertexSegment2D s)
inline

Definition at line 100 of file converteSegmentLine.cpp.

References g2o::computeLineParameters(), g2o::VertexSegment2D::estimateP1(), g2o::VertexSegment2D::estimateP2(), and g2o::HyperGraph::Vertex::id().

100  {
101  line=new VertexLine2D();
102  line->setId(s->id());
104  p1=0;
105  p2=0;
106  }
Eigen::Vector2d computeLineParameters(const Eigen::Vector2d &p1, const Eigen::Vector2d &p2)
Definition: simutils.cpp:120
int id() const
returns the id
Definition: hyper_graph.h:148
VertexLine2D * line
VertexPointXY * p2
virtual void setId(int id)
sets the id of the node in the graph be sure that the graph keeps consistent after changing the id ...
void setEstimate(const EstimateType &et)
set the estimate for the vertex also calls updateCache()
Definition: base_vertex.h:101
VertexPointXY * p1
Vector2D estimateP1() const
Vector2D estimateP2() const
LineInfo::LineInfo ( VertexSegment2D s)
inline

Definition at line 60 of file convertSegmentLine.cpp.

References g2o::computeLineParameters(), g2o::VertexSegment2D::estimateP1(), g2o::VertexSegment2D::estimateP2(), and g2o::HyperGraph::Vertex::id().

60  {
61  line=new VertexLine2D();
62  line->setId(s->id());
64  p1=0;
65  p2=0;
66  }
Eigen::Vector2d computeLineParameters(const Eigen::Vector2d &p1, const Eigen::Vector2d &p2)
Definition: simutils.cpp:120
int id() const
returns the id
Definition: hyper_graph.h:148
VertexLine2D * line
VertexPointXY * p2
virtual void setId(int id)
sets the id of the node in the graph be sure that the graph keeps consistent after changing the id ...
void setEstimate(const EstimateType &et)
set the estimate for the vertex also calls updateCache()
Definition: base_vertex.h:101
VertexPointXY * p1
Vector2D estimateP1() const
Vector2D estimateP2() const

Member Data Documentation

VertexLine2D * LineInfo::line

Definition at line 107 of file converteSegmentLine.cpp.

Referenced by main().

VertexPointXY * LineInfo::p1

Definition at line 108 of file converteSegmentLine.cpp.

Referenced by main().

VertexPointXY * LineInfo::p2

Definition at line 109 of file converteSegmentLine.cpp.

Referenced by main().


The documentation for this struct was generated from the following files: