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

Method pathLength

swarm_exploration/path_searching/src/astar2.cpp:174–179  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

172}
173
174double Astar::pathLength(const vector<Eigen::Vector3d>& path) {
175 double length = 0.0;
176 if (path.size() < 2) return length;
177 for (int i = 0; i < path.size() - 1; ++i) length += (path[i + 1] - path[i]).norm();
178 return length;
179}
180
181void Astar::backtrack(const NodePtr& end_node, const Eigen::Vector3d& end) {
182 path_nodes_.push_back(end);

Callers 5

getCostDroneToGridMethod · 0.45
getCostGridToGridMethod · 0.45
searchPathMethod · 0.45
localExploreMethod · 0.45
optimizeTopoBsplineMethod · 0.45

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected