Apollo 10.0
自动驾驶开放平台
apollo::routing::TopoEdge类 参考

#include <topo_node.h>

apollo::routing::TopoEdge 的协作图:

Public 成员函数

 TopoEdge (const Edge &edge, const TopoNode *from_node, const TopoNode *to_node)
 
 ~TopoEdge ()
 
const EdgePbEdge () const
 
double Cost () const
 
const std::string & FromLaneId () const
 
const std::string & ToLaneId () const
 
TopoEdgeType Type () const
 
const TopoNodeFromNode () const
 
const TopoNodeToNode () const
 

详细描述

在文件 topo_node.h121 行定义.

构造及析构函数说明

◆ TopoEdge()

apollo::routing::TopoEdge::TopoEdge ( const Edge edge,
const TopoNode from_node,
const TopoNode to_node 
)

在文件 topo_node.cc312 行定义.

314 : pb_edge_(edge), from_node_(from_node), to_node_(to_node) {}

◆ ~TopoEdge()

apollo::routing::TopoEdge::~TopoEdge ( )

在文件 topo_node.cc316 行定义.

316{}

成员函数说明

◆ Cost()

double apollo::routing::TopoEdge::Cost ( ) const

在文件 topo_node.cc320 行定义.

320{ return pb_edge_.cost(); }
optional double cost

◆ FromLaneId()

const std::string & apollo::routing::TopoEdge::FromLaneId ( ) const

在文件 topo_node.cc326 行定义.

326 {
327 return pb_edge_.from_lane_id();
328}
optional string from_lane_id

◆ FromNode()

const TopoNode * apollo::routing::TopoEdge::FromNode ( ) const

在文件 topo_node.cc322 行定义.

322{ return from_node_; }

◆ PbEdge()

const Edge & apollo::routing::TopoEdge::PbEdge ( ) const

在文件 topo_node.cc318 行定义.

318{ return pb_edge_; }

◆ ToLaneId()

const std::string & apollo::routing::TopoEdge::ToLaneId ( ) const

在文件 topo_node.cc330 行定义.

330{ return pb_edge_.to_lane_id(); }
optional string to_lane_id

◆ ToNode()

const TopoNode * apollo::routing::TopoEdge::ToNode ( ) const

在文件 topo_node.cc324 行定义.

324{ return to_node_; }

◆ Type()

TopoEdgeType apollo::routing::TopoEdge::Type ( ) const

在文件 topo_node.cc332 行定义.

332 {
333 if (pb_edge_.direction_type() == Edge::LEFT) {
334 return TET_LEFT;
335 }
336 if (pb_edge_.direction_type() == Edge::RIGHT) {
337 return TET_RIGHT;
338 }
339 return TET_FORWARD;
340}
optional DirectionType direction_type

该类的文档由以下文件生成: