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

Function calcPathLength

swarm_exploration/plan_manage/src/traj_server.cpp:57–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55int drone_num_;
56
57double calcPathLength(const vector<Eigen::Vector3d>& path) {
58 if (path.empty()) return 0;
59 double len = 0.0;
60 for (int i = 0; i < path.size() - 1; ++i) {
61 len += (path[i + 1] - path[i]).norm();
62 }
63 return len;
64}
65
66void displayTrajWithColor(
67 vector<Eigen::Vector3d> path, double resolution, Eigen::Vector4d color, int id) {

Callers 1

cmdCallbackFunction · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected