Class EdgeAccelerationGoal
Defined in File edge_acceleration.h
Inheritance Relationships
Base Type
public hateb_local_planner::BaseTebMultiEdge< 2, const geometry_msgs::Twist * >(Template Class BaseTebMultiEdge)
Class Documentation
-
class EdgeAccelerationGoal : public hateb_local_planner::BaseTebMultiEdge<2, const geometry_msgs::Twist*>
Edge defining the cost function for limiting the translational and rotational acceleration at the end of the trajectory.
The edge depends on three vertices \( \mathbf{s}_i, \mathbf{s}_{ip1}, \Delta T_i \), an initial velocity defined by setGoalVelocity() and minimizes: \( \min \textrm{penaltyInterval}( [a, omegadot ]^T ) \cdot weight \). a is calculated using the difference quotient (twice) and the position parts of the poses omegadot is calculated using the difference quotient of the yaw angles followed by a normalization to [-pi, pi]. weight can be set using setInformation() penaltyInterval denotes the penalty function, see penaltyBoundToInterval() The dimension of the error / cost vector is 2: the first component represents the translational acceleration and the second one the rotational acceleration.
See also
See also
Remark
Do not forget to call setHATebConfig()
Remark
Refer to EdgeAccelerationStart() for defining boundary (initial) values at the end of the trajectory
Public Functions
-
inline EdgeAccelerationGoal()
Construct edge.
-
inline void computeError() override
Actual cost function.
-
inline void setGoalVelocity(const geometry_msgs::Twist &vel_goal)
Set the goal / final velocity that is taken into account for calculating the acceleration.
- Parameters:
vel_goal – twist message containing the translational and rotational velocity
-
inline EdgeAccelerationGoal()