| 145 | } |
| 146 | |
| 147 | std::vector<Eigen::Vector3d> Astar::getPath() { |
| 148 | vector<Eigen::Vector3d> path; |
| 149 | for (int i = 0; i < path_nodes_.size(); ++i) { |
| 150 | path.push_back(path_nodes_[i]->position); |
| 151 | } |
| 152 | return path; |
| 153 | } |
| 154 | |
| 155 | double Astar::getDiagHeu(Eigen::Vector3d x1, Eigen::Vector3d x2) { |
| 156 | double dx = fabs(x1(0) - x2(0)); |
no test coverage detected