SmoothPath
Invokes the SmoothPath action API in the smoother server to smooth a given path plan.
Input Ports
unsmoothed_path
- Type:
nav_msgs::msg::PathDefault:N/A -
The blackboard variable or hard-coded input path to smooth.
max_smoothing_duration
- Type:
doubleDefault:3.0 -
Maximum time to smooth for (seconds).
check_for_collisions
- Type:
boolDefault:false -
Whether to check the output smoothed path for collisions.
smoother_id
- Type:
stringDefault:N/A -
The smoother plugin ID to use for smoothing in the smoother server.
server_name
- Type:
stringDefault:N/A -
Action server name. If not specified,
smooth_pathis used.
server_timeout
- Type:
chrono::millisecondsDefault:N/A -
Action server timeout (ms). If not provided, uses the BT Navigator's
default_server_timeoutparameter value (20 ms by default).
Output Ports
smoothed_path
- Type:
nav_msgs::msg::PathDefault:N/A -
The output blackboard variable to assign the smoothed path to.
smoothing_duration
- Type:
doubleDefault:N/A -
The actual duration used for smoothing.
was_completed
- Type:
boolDefault:N/A -
Indicates if the smoothing process was completed. Will return
falseifcheck_for_collisionsis set totrueand a collision is detected.
error_code_id
- Type:
uint16Default:N/A -
Follow smoother error code. See
SmoothPathaction for the enumerated set of error code definitions.
error_msg
- Type:
stringDefault:N/A -
Follow smoother error message. See
SmoothPathaction for the enumerated set of error code definitions.
Example
<SmoothPath unsmoothed_path="{path}" smoothed_path="{path}" max_smoothing_duration="3.0"
smoother_id="simple_smoother" check_for_collisions="false"
smoothing_duration="{smoothing_duration_used}" was_completed="{smoothing_completed}"
error_code_id="{smoothing_path_error_code}" error_msg="{smoothing_path_error_msg}"/>