Class IsStuckCondition
Defined in File is_stuck_condition.hpp
Inheritance Relationships
Base Type
public BT::ConditionNode
Class Documentation
A BT::ConditionNode that tracks robot odometry and returns SUCCESS if robot is stuck somewhere and FAILURE otherwise.
Public Functions
A constructor for nav2_behavior_tree::IsStuckCondition.
- Parameters:
condition_name – Name for the XML tag for this node
conf – BT node configuration
A destructor for nav2_behavior_tree::IsStuckCondition.
Callback function for odom topic.
- Parameters:
msg – Shared pointer to nav_msgs::msg::Odometry::SharedPtr message
The main override required by a BT action.
- Returns:
BT::NodeStatus Status of tick execution
Function to log status when robot is stuck/free.
Function to approximate acceleration from the odom history.
Detect if robot bumped into something by checking for abnormal deceleration.
- Returns:
bool true if robot is stuck, false otherwise
Public Static Functions
Creates list of BT ports.
- Returns:
BT::PortsList Containing node-specific ports