TruncatePath
A custom control node, which modifies a path making it shorter. It removes parts of the path closer than a distance to the goal pose. The resulting last pose of the path orientates the robot to the original goal pose.
Input Ports
input_path
- Type:
nav_msgs::msg::PathDefault:N/A -
The original path to be truncated.
distance
- Type:
doubleDefault:1.0 -
The distance to the original goal for truncating the path.
Output Ports
output_path
- Type:
nav_msgs::msg::PathDefault:N/A -
The resulting truncated path.
Example
<TruncatePath distance="1.0" input_path="{path}" output_path="{truncated_path}"/>