| 44 | } |
| 45 | |
| 46 | void EDTEnvironment::evaluateEDTWithGrad( |
| 47 | const Eigen::Vector3d& pos, double time, double& dist, Eigen::Vector3d& grad) |
| 48 | { |
| 49 | // Eigen::Vector3d diff; |
| 50 | // Eigen::Vector3d sur_pts[2][2][2]; |
| 51 | // sdf_map_->getSurroundPts(pos, sur_pts, diff); |
| 52 | // double dists[2][2][2]; |
| 53 | // getSurroundDistance(sur_pts, dists); |
| 54 | // interpolateTrilinear(dists, diff, dist, grad); |
| 55 | dist = sdf_map_->getDistWithGrad(pos, grad); |
| 56 | } |
| 57 | |
| 58 | // EDTEnvironment:: |
| 59 | } // namespace hetero_planner |
no test coverage detected