MCPcopy Create free account
hub / github.com/Robotics-STAR-Lab/RACER / backtrack

Method backtrack

swarm_exploration/path_searching/src/astar2.cpp:181–190  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

179}
180
181void Astar::backtrack(const NodePtr& end_node, const Eigen::Vector3d& end) {
182 path_nodes_.push_back(end);
183 path_nodes_.push_back(end_node->position);
184 NodePtr cur_node = end_node;
185 while (cur_node->parent != NULL) {
186 cur_node = cur_node->parent;
187 path_nodes_.push_back(cur_node->position);
188 }
189 reverse(path_nodes_.begin(), path_nodes_.end());
190}
191
192std::vector<Eigen::Vector3d> Astar::getPath() {
193 return path_nodes_;

Callers

nothing calls this directly

Calls 3

reverseFunction · 0.50
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected