44 #ifndef EDGE_TIMEOPTIMAL_H_
45 #define EDGE_TIMEOPTIMAL_H_
49 #include <base_local_planner/BaseLocalPlannerConfig.h>
73 class EdgeTimeOptimal :
public BaseTebUnaryEdge<1, double, VertexTimeDiff>
82 this->setMeasurement(0.);
91 const VertexTimeDiff* timediff =
static_cast<const VertexTimeDiff*
>(_vertices[0]);
93 _error[0] = timediff->dt();
95 ROS_ASSERT_MSG(std::isfinite(_error[0]),
"EdgeTimeOptimal::computeError() _error[0]=%f\n",_error[0]);
98 #ifdef USE_ANALYTIC_JACOBI
102 void linearizeOplus()
105 _jacobianOplusXi( 0 , 0 ) = 1;
111 EIGEN_MAKE_ALIGNED_OPERATOR_NEW