g2o
Loading...
Searching...
No Matches
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)
 

Public Attributes

VertexLine2Dline
 
VertexPointXYp1
 
VertexPointXYp2
 

Detailed Description

Definition at line 58 of file convertSegmentLine.cpp.

Constructor & Destructor Documentation

◆ LineInfo()

LineInfo::LineInfo ( VertexSegment2D s)
inlineexplicit

Definition at line 59 of file convertSegmentLine.cpp.

59 {
60 line = new VertexLine2D();
61 line->setId(s->id());
63 p1 = 0;
64 p2 = 0;
65 }
void setEstimate(const EstimateType &et)
set the estimate for the vertex also calls updateCache()
int id() const
returns the id
Vector2 estimateP1() const
Vector2 estimateP2() const
Eigen::Vector2d computeLineParameters(const Eigen::Vector2d &p1, const Eigen::Vector2d &p2)
Definition simutils.cpp:148
VertexPointXY * p2
VertexLine2D * line
VertexPointXY * p1

References g2o::computeLineParameters(), g2o::VertexSegment2D::estimateP1(), g2o::VertexSegment2D::estimateP2(), g2o::HyperGraph::Vertex::id(), line, p1, p2, g2o::BaseVertex< D, T >::setEstimate(), and g2o::OptimizableGraph::Vertex::setId().

Member Data Documentation

◆ line

VertexLine2D* LineInfo::line

Definition at line 66 of file convertSegmentLine.cpp.

Referenced by LineInfo(), and main().

◆ p1

VertexPointXY* LineInfo::p1

Definition at line 67 of file convertSegmentLine.cpp.

Referenced by LineInfo(), and main().

◆ p2

VertexPointXY* LineInfo::p2

Definition at line 68 of file convertSegmentLine.cpp.

Referenced by LineInfo(), and main().


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