43 #ifndef EDGE_PREFER_ROTDIR_H_ 44 #define EDGE_PREFER_ROTDIR_H_ 49 #include "g2o/core/base_unary_edge.h" 87 ROS_ASSERT_MSG(std::isfinite(_error[0]),
"EdgePreferRotDir::computeError() _error[0]=%f\n",_error[0]);
107 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
double penaltyBoundFromBelow(const double &var, const double &a, const double &epsilon)
Linear penalty function for bounding var from below: .
Edge defining the cost function for penalzing a specified turning direction, in particular left resp...
void setRotDir(double dir)
Specify the prefered direction of rotation.
void computeError()
Actual cost function.
double & theta()
Access the orientation part (yaw angle) of the pose.
#define ROS_ASSERT_MSG(cond,...)
Base edge connecting two vertices in the TEB optimization problem.
EdgePreferRotDir()
Construct edge.
This class stores and wraps a SE2 pose (position and orientation) into a vertex that can be optimized...