29 #ifndef DXF_TO_GRAPH_H 30 #define DXF_TO_GRAPH_H 34 #include <dxflib/dl_dxf.h> 42 Line(Eigen::Vector2d _start, Eigen::Vector2d _end) : start(_start), end(_end) {}
56 bool parseGraph(
const std::string &_dxfPath,
const float _segLength,
const float _segWidth);
61 void serializeGraph(
const std::string &_graphPath)
const;
63 std::vector<Line> splitLine(
const DL_LineData &_line,
const float _segLength)
const;
64 std::vector<Line> splitCircle(
const DL_CircleData &_circle,
const float _segLength)
const;
65 std::vector<Line> splitArc(
const DL_ArcData&_arc,
const float _segLength)
const;
66 bool getGraphData(
const DL_ImageData& _image,
float &_scale, Eigen::Vector2d &_offset)
const;
67 std::vector<Segment> generateGraph(
const std::vector<Line> &_lines,
const float _segWidth,
const float &_scale,
const Eigen::Vector2d &_offset)
const;
74 #endif // PLANNER_NODE_H
Line(Eigen::Vector2d _start, Eigen::Vector2d _end)
std::vector< Segment > graphData_