SpeedController
A node that controls the tick rate for its child based on current robot speed.
The maximum and minimum replanning rates can be supplied to the node as parameters along with maximum and minimum speed.
The node returns RUNNING when it is not ticking its child. Currently, in the navigation
stack, the SpeedController is used to adjust the rate at which the ComputePathToPose and GoalReached nodes are ticked.
Input Ports
min_rate
- Type:
doubleDefault:0.1 -
The minimum rate at which child node can be ticked (hz).
max_rate
- Type:
doubleDefault:1.0 -
The maximum rate at which child node can be ticked (hz).
min_speed
- Type:
doubleDefault:0.0 -
The minimum robot speed below which the child node is ticked at minimum rate (m/s).
max_speed
- Type:
doubleDefault:0.5 -
The maximum robot speed above which the child node is ticked at maximum rate (m/s).
goal
- Type:
geometry_msgs::msg::PoseStampedDefault:N/A -
Destination to check. Takes in a blackboard variable, "{goal}" if not specified.
goals
- Type:
nav_msgs::msg::GoalsDefault:N/A -
Vector of goals to check. Takes in a blackboard variable, "{goals}" if not specified.
Example
<SpeedController min_rate="0.1" max_rate="1.0" min_speed="0.0" max_speed="0.5">
<!--Add tree components here-->
</SpeedController>