44 #ifndef EDGE_SHORTEST_PATH_H_
45 #define EDGE_SHORTEST_PATH_H_
49 #include <base_local_planner/BaseLocalPlannerConfig.h>
64 class EdgeShortestPath :
public BaseTebBinaryEdge<1, double, VertexPose, VertexPose> {
76 const VertexPose *pose1 =
static_cast<const VertexPose*
>(_vertices[0]);
77 const VertexPose *pose2 =
static_cast<const VertexPose*
>(_vertices[1]);
78 _error[0] = (pose2->position() - pose1->position()).norm();
80 ROS_ASSERT_MSG(std::isfinite(_error[0]),
"EdgeShortestPath::computeError() _error[0]=%f\n", _error[0]);
84 EIGEN_MAKE_ALIGNED_OPERATOR_NEW