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

Method pathLength

src/planner/path_searching/src/astar2.cpp:187–194  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

185}
186
187double Astar::pathLength(const vector<Eigen::Vector3d>& path)
188{
189 double length = 0.0;
190 if (path.size() < 2)
191 return length;
192 for (int i = 0; i < path.size() - 1; ++i) length += (path[i + 1] - path[i]).norm();
193 return length;
194}
195
196void Astar::backtrack(const NodePtr& end_node, const Eigen::Vector3d& end)
197{

Callers 1

searchPathMethod · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected