g2o
Loading...
Searching...
No Matches
LineInfo Struct Reference
Collaboration diagram for LineInfo:

Public Member Functions

 LineInfo (VertexSegment2D *s)

Public Attributes

VertexLine2D * line
VertexPointXY * p1
VertexPointXY * p2

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());
62 line->setEstimate(computeLineParameters(s->estimateP1(), s->estimateP2()));
63 p1 = 0;
64 p2 = 0;
65 }
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, and p2.

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: