17 assert(index < graph_size_);
19 assert(depth <= nodes_[index].depth);
21 int res_index = index;
25 if (depth == nodes_[res_index].depth)
30 res_index = nodes_[res_index].parent_index;
33 return nodes_[res_index];
39 assert(depth <= nodes_[index].depth);
41 assert(index < graph_size_);
43 int res_index = index;
47 if (depth == nodes_[res_index].depth)
52 res_index = nodes_[res_index].parent_index;
const int GetParentNodeIndex(const int index, const int depth) const
指定したノードの親ノードの参照を返す.depthは親ノードの深さを指定する.
const RobotStateNode & GetParentNode(const int index, const int depth) const
指定したノードの親ノードの参照を返す.depthは親ノードの深さを指定する.
グラフ構造のためのノード(頂点).旧名 LNODE