Package Summary
Tags | No category tags. |
Version | 1.1.0 |
License | Apache License 2.0 |
Build type | AMENT_CMAKE |
Use | RECOMMENDED |
Repository Summary
Checkout URI | https://github.com/autowarefoundation/autoware_core.git |
VCS Type | git |
VCS Version | main |
Last Updated | 2025-06-12 |
Dev Status | DEVELOPED |
CI status | No Continuous Integration |
Released | UNRELEASED |
Tags | No category tags. |
Contributing |
Help Wanted (0)
Good First Issues (0) Pull Requests to Review (0) |
Package Description
Additional Links
Maintainers
- Fumiya Watanabe
- Takamasa Horibe
- Makoto Kurihara
- Satoshi Ota
- Go Sakayori
Authors
- Takamasa Horibe
- Fumiya Watanabe
- Yutaka Shimizu
- Makoto Kurihara
Velocity Smoother
Purpose
autoware_velocity_smoother
outputs a desired velocity profile on a reference trajectory.
This module plans a velocity profile within the limitations of the velocity, the acceleration and the jerk to realize both the maximization of velocity and the ride quality.
We call this module autoware_velocity_smoother
because the limitations of the acceleration and the jerk means the smoothness of the velocity profile.
Inner-workings / Algorithms
Flow chart
Extract trajectory
For the point on the reference trajectory closest to the center of the rear wheel axle of the vehicle, it extracts the reference path between extract_behind_dist
behind and extract_ahead_dist
ahead.
Apply external velocity limit
It applies the velocity limit input from the external of autoware_velocity_smoother
.
Remark that the external velocity limit is different from the velocity limit already set on the map and the reference trajectory.
The external velocity is applied at the position that it is able to reach the velocity limit with the deceleration and the jerk constraints set as the parameter.
Apply stop approaching velocity
It applies the velocity limit near the stopping point. This function is used to approach near the obstacle or improve the accuracy of stopping.
Apply lateral acceleration limit
It applies the velocity limit to decelerate at the curve.
It calculates the velocity limit from the curvature of the reference trajectory and the maximum lateral acceleration max_lateral_accel
.
The velocity limit is set as not to fall under min_curve_velocity
.
Note: velocity limit that requests larger than nominal.jerk
is not applied. In other words, even if a sharp curve is planned just in front of the ego, no deceleration is performed.
Apply steering rate limit
It calculates the desired steering angles of trajectory points. and it applies the steering rate limit. If the (steering_angle_rate
> max_steering_angle_rate
), it decreases the velocity of the trajectory point to acceptable velocity.
Resample trajectory
It resamples the points on the reference trajectory with designated time interval.
Note that the range of the length of the trajectory is set between min_trajectory_length
and max_trajectory_length
, and the distance between two points is longer than min_trajectory_interval_distance
.
It samples densely up to the distance traveled between resample_time
with the current velocity, then samples sparsely after that.
By sampling according to the velocity, both calculation load and accuracy are achieved since it samples finely at low velocity and coarsely at high velocity.
Calculate initial state
Calculate initial values for velocity planning. The initial values are calculated according to the situation as shown in the following table.
Situation | Initial velocity | Initial acceleration |
---|---|---|
First calculation | Current velocity | 0.0 |
Engaging | engage_velocity |
engage_acceleration |
Deviate between the planned velocity and the current velocity | Current velocity | Previous planned value |
Normal | Previous planned value | Previous planned value |
Smooth velocity
It plans the velocity.
The algorithm of velocity planning is chosen from JerkFiltered
, L2
and Linf
, and it is set in the launch file.
In these algorithms, they use OSQP[1] as the solver of the optimization.
JerkFiltered
It minimizes the sum of the minus of the square of the velocity and the square of the violation of the velocity limit, the acceleration limit and the jerk limit.
L2
It minimizes the sum of the minus of the square of the velocity, the square of the the pseudo-jerk[2] and the square of the violation of the velocity limit and the acceleration limit.
Linf
It minimizes the sum of the minus of the square of the velocity, the maximum absolute value of the the pseudo-jerk[2] and the square of the violation of the velocity limit and the acceleration limit.
Post process
It performs the post-process of the planned velocity.
- Set zero velocity ahead of the stopping point
- Set maximum velocity given in the config named
max_velocity
- Set velocity behind the current pose
- Resample trajectory (
post resampling
) - Output debug data
After the optimization, a resampling called post resampling
is performed before passing the optimized trajectory to the next node. Since the required path interval from optimization may be different from the one for the next module, post resampling
helps to fill this gap. Therefore, in post resampling
, it is necessary to check the path specification of the following module to determine the parameters. Note that if the computational load of the optimization algorithm is high and the path interval is sparser than the path specification of the following module in the first resampling, post resampling
would resample the trajectory densely. On the other hand, if the computational load of the optimization algorithm is small and the path interval is denser than the path specification of the following module in the first resampling, the path is sparsely resampled according to the specification of the following module.
Inputs / Outputs
Input
Name | Type | Description |
---|---|---|
~/input/trajectory |
autoware_planning_msgs/Trajectory |
Reference trajectory |
/planning/scenario_planning/max_velocity |
std_msgs/Float32 |
External velocity limit [m/s] |
/localization/kinematic_state |
nav_msgs/Odometry |
Current odometry |
/tf |
tf2_msgs/TFMessage |
TF |
File truncated at 100 lines see the full file
Changelog for package autoware_velocity_smoother
1.1.0 (2025-05-01)
1.0.0 (2025-03-31)
- chore: update version in package.xml
- feat(autoware_velocity_smoother): port the package from Autoware Universe (#299)
- Contributors: Ryohsuke Mitsudome
Wiki Tutorials
Package Dependencies
System Dependencies
Launch files
- launch/velocity_smoother.launch.xml
-
- common_param_path [default: $(find-pkg-share autoware_velocity_smoother)/config/default_common.param.yaml]
- nearest_search_param_path
- input_trajectory [default: /planning/scenario_planning/scenario_selector/trajectory]
- output_trajectory [default: /planning/scenario_planning/trajectory]
- publish_debug_trajs [default: false]
- velocity_smoother_type [default: JerkFiltered]
- param_path [default: $(find-pkg-share autoware_velocity_smoother)/config/default_velocity_smoother.param.yaml]
- velocity_smoother_param_path [default: $(find-pkg-share autoware_velocity_smoother)/config/$(var velocity_smoother_type).param.yaml]
Messages
Services
Plugins
Recent questions tagged autoware_velocity_smoother at Robotics Stack Exchange
Package Summary
Tags | No category tags. |
Version | 1.1.0 |
License | Apache License 2.0 |
Build type | AMENT_CMAKE |
Use | RECOMMENDED |
Repository Summary
Checkout URI | https://github.com/autowarefoundation/autoware_core.git |
VCS Type | git |
VCS Version | main |
Last Updated | 2025-06-12 |
Dev Status | DEVELOPED |
CI status | No Continuous Integration |
Released | UNRELEASED |
Tags | No category tags. |
Contributing |
Help Wanted (0)
Good First Issues (0) Pull Requests to Review (0) |
Package Description
Additional Links
Maintainers
- Fumiya Watanabe
- Takamasa Horibe
- Makoto Kurihara
- Satoshi Ota
- Go Sakayori
Authors
- Takamasa Horibe
- Fumiya Watanabe
- Yutaka Shimizu
- Makoto Kurihara
Velocity Smoother
Purpose
autoware_velocity_smoother
outputs a desired velocity profile on a reference trajectory.
This module plans a velocity profile within the limitations of the velocity, the acceleration and the jerk to realize both the maximization of velocity and the ride quality.
We call this module autoware_velocity_smoother
because the limitations of the acceleration and the jerk means the smoothness of the velocity profile.
Inner-workings / Algorithms
Flow chart
Extract trajectory
For the point on the reference trajectory closest to the center of the rear wheel axle of the vehicle, it extracts the reference path between extract_behind_dist
behind and extract_ahead_dist
ahead.
Apply external velocity limit
It applies the velocity limit input from the external of autoware_velocity_smoother
.
Remark that the external velocity limit is different from the velocity limit already set on the map and the reference trajectory.
The external velocity is applied at the position that it is able to reach the velocity limit with the deceleration and the jerk constraints set as the parameter.
Apply stop approaching velocity
It applies the velocity limit near the stopping point. This function is used to approach near the obstacle or improve the accuracy of stopping.
Apply lateral acceleration limit
It applies the velocity limit to decelerate at the curve.
It calculates the velocity limit from the curvature of the reference trajectory and the maximum lateral acceleration max_lateral_accel
.
The velocity limit is set as not to fall under min_curve_velocity
.
Note: velocity limit that requests larger than nominal.jerk
is not applied. In other words, even if a sharp curve is planned just in front of the ego, no deceleration is performed.
Apply steering rate limit
It calculates the desired steering angles of trajectory points. and it applies the steering rate limit. If the (steering_angle_rate
> max_steering_angle_rate
), it decreases the velocity of the trajectory point to acceptable velocity.
Resample trajectory
It resamples the points on the reference trajectory with designated time interval.
Note that the range of the length of the trajectory is set between min_trajectory_length
and max_trajectory_length
, and the distance between two points is longer than min_trajectory_interval_distance
.
It samples densely up to the distance traveled between resample_time
with the current velocity, then samples sparsely after that.
By sampling according to the velocity, both calculation load and accuracy are achieved since it samples finely at low velocity and coarsely at high velocity.
Calculate initial state
Calculate initial values for velocity planning. The initial values are calculated according to the situation as shown in the following table.
Situation | Initial velocity | Initial acceleration |
---|---|---|
First calculation | Current velocity | 0.0 |
Engaging | engage_velocity |
engage_acceleration |
Deviate between the planned velocity and the current velocity | Current velocity | Previous planned value |
Normal | Previous planned value | Previous planned value |
Smooth velocity
It plans the velocity.
The algorithm of velocity planning is chosen from JerkFiltered
, L2
and Linf
, and it is set in the launch file.
In these algorithms, they use OSQP[1] as the solver of the optimization.
JerkFiltered
It minimizes the sum of the minus of the square of the velocity and the square of the violation of the velocity limit, the acceleration limit and the jerk limit.
L2
It minimizes the sum of the minus of the square of the velocity, the square of the the pseudo-jerk[2] and the square of the violation of the velocity limit and the acceleration limit.
Linf
It minimizes the sum of the minus of the square of the velocity, the maximum absolute value of the the pseudo-jerk[2] and the square of the violation of the velocity limit and the acceleration limit.
Post process
It performs the post-process of the planned velocity.
- Set zero velocity ahead of the stopping point
- Set maximum velocity given in the config named
max_velocity
- Set velocity behind the current pose
- Resample trajectory (
post resampling
) - Output debug data
After the optimization, a resampling called post resampling
is performed before passing the optimized trajectory to the next node. Since the required path interval from optimization may be different from the one for the next module, post resampling
helps to fill this gap. Therefore, in post resampling
, it is necessary to check the path specification of the following module to determine the parameters. Note that if the computational load of the optimization algorithm is high and the path interval is sparser than the path specification of the following module in the first resampling, post resampling
would resample the trajectory densely. On the other hand, if the computational load of the optimization algorithm is small and the path interval is denser than the path specification of the following module in the first resampling, the path is sparsely resampled according to the specification of the following module.
Inputs / Outputs
Input
Name | Type | Description |
---|---|---|
~/input/trajectory |
autoware_planning_msgs/Trajectory |
Reference trajectory |
/planning/scenario_planning/max_velocity |
std_msgs/Float32 |
External velocity limit [m/s] |
/localization/kinematic_state |
nav_msgs/Odometry |
Current odometry |
/tf |
tf2_msgs/TFMessage |
TF |
File truncated at 100 lines see the full file
Changelog for package autoware_velocity_smoother
1.1.0 (2025-05-01)
1.0.0 (2025-03-31)
- chore: update version in package.xml
- feat(autoware_velocity_smoother): port the package from Autoware Universe (#299)
- Contributors: Ryohsuke Mitsudome
Wiki Tutorials
Package Dependencies
System Dependencies
Launch files
- launch/velocity_smoother.launch.xml
-
- common_param_path [default: $(find-pkg-share autoware_velocity_smoother)/config/default_common.param.yaml]
- nearest_search_param_path
- input_trajectory [default: /planning/scenario_planning/scenario_selector/trajectory]
- output_trajectory [default: /planning/scenario_planning/trajectory]
- publish_debug_trajs [default: false]
- velocity_smoother_type [default: JerkFiltered]
- param_path [default: $(find-pkg-share autoware_velocity_smoother)/config/default_velocity_smoother.param.yaml]
- velocity_smoother_param_path [default: $(find-pkg-share autoware_velocity_smoother)/config/$(var velocity_smoother_type).param.yaml]
Messages
Services
Plugins
Recent questions tagged autoware_velocity_smoother at Robotics Stack Exchange
Package Summary
Tags | No category tags. |
Version | 1.1.0 |
License | Apache License 2.0 |
Build type | AMENT_CMAKE |
Use | RECOMMENDED |
Repository Summary
Checkout URI | https://github.com/autowarefoundation/autoware_core.git |
VCS Type | git |
VCS Version | main |
Last Updated | 2025-06-12 |
Dev Status | DEVELOPED |
CI status | No Continuous Integration |
Released | UNRELEASED |
Tags | No category tags. |
Contributing |
Help Wanted (0)
Good First Issues (0) Pull Requests to Review (0) |
Package Description
Additional Links
Maintainers
- Fumiya Watanabe
- Takamasa Horibe
- Makoto Kurihara
- Satoshi Ota
- Go Sakayori
Authors
- Takamasa Horibe
- Fumiya Watanabe
- Yutaka Shimizu
- Makoto Kurihara
Velocity Smoother
Purpose
autoware_velocity_smoother
outputs a desired velocity profile on a reference trajectory.
This module plans a velocity profile within the limitations of the velocity, the acceleration and the jerk to realize both the maximization of velocity and the ride quality.
We call this module autoware_velocity_smoother
because the limitations of the acceleration and the jerk means the smoothness of the velocity profile.
Inner-workings / Algorithms
Flow chart
Extract trajectory
For the point on the reference trajectory closest to the center of the rear wheel axle of the vehicle, it extracts the reference path between extract_behind_dist
behind and extract_ahead_dist
ahead.
Apply external velocity limit
It applies the velocity limit input from the external of autoware_velocity_smoother
.
Remark that the external velocity limit is different from the velocity limit already set on the map and the reference trajectory.
The external velocity is applied at the position that it is able to reach the velocity limit with the deceleration and the jerk constraints set as the parameter.
Apply stop approaching velocity
It applies the velocity limit near the stopping point. This function is used to approach near the obstacle or improve the accuracy of stopping.
Apply lateral acceleration limit
It applies the velocity limit to decelerate at the curve.
It calculates the velocity limit from the curvature of the reference trajectory and the maximum lateral acceleration max_lateral_accel
.
The velocity limit is set as not to fall under min_curve_velocity
.
Note: velocity limit that requests larger than nominal.jerk
is not applied. In other words, even if a sharp curve is planned just in front of the ego, no deceleration is performed.
Apply steering rate limit
It calculates the desired steering angles of trajectory points. and it applies the steering rate limit. If the (steering_angle_rate
> max_steering_angle_rate
), it decreases the velocity of the trajectory point to acceptable velocity.
Resample trajectory
It resamples the points on the reference trajectory with designated time interval.
Note that the range of the length of the trajectory is set between min_trajectory_length
and max_trajectory_length
, and the distance between two points is longer than min_trajectory_interval_distance
.
It samples densely up to the distance traveled between resample_time
with the current velocity, then samples sparsely after that.
By sampling according to the velocity, both calculation load and accuracy are achieved since it samples finely at low velocity and coarsely at high velocity.
Calculate initial state
Calculate initial values for velocity planning. The initial values are calculated according to the situation as shown in the following table.
Situation | Initial velocity | Initial acceleration |
---|---|---|
First calculation | Current velocity | 0.0 |
Engaging | engage_velocity |
engage_acceleration |
Deviate between the planned velocity and the current velocity | Current velocity | Previous planned value |
Normal | Previous planned value | Previous planned value |
Smooth velocity
It plans the velocity.
The algorithm of velocity planning is chosen from JerkFiltered
, L2
and Linf
, and it is set in the launch file.
In these algorithms, they use OSQP[1] as the solver of the optimization.
JerkFiltered
It minimizes the sum of the minus of the square of the velocity and the square of the violation of the velocity limit, the acceleration limit and the jerk limit.
L2
It minimizes the sum of the minus of the square of the velocity, the square of the the pseudo-jerk[2] and the square of the violation of the velocity limit and the acceleration limit.
Linf
It minimizes the sum of the minus of the square of the velocity, the maximum absolute value of the the pseudo-jerk[2] and the square of the violation of the velocity limit and the acceleration limit.
Post process
It performs the post-process of the planned velocity.
- Set zero velocity ahead of the stopping point
- Set maximum velocity given in the config named
max_velocity
- Set velocity behind the current pose
- Resample trajectory (
post resampling
) - Output debug data
After the optimization, a resampling called post resampling
is performed before passing the optimized trajectory to the next node. Since the required path interval from optimization may be different from the one for the next module, post resampling
helps to fill this gap. Therefore, in post resampling
, it is necessary to check the path specification of the following module to determine the parameters. Note that if the computational load of the optimization algorithm is high and the path interval is sparser than the path specification of the following module in the first resampling, post resampling
would resample the trajectory densely. On the other hand, if the computational load of the optimization algorithm is small and the path interval is denser than the path specification of the following module in the first resampling, the path is sparsely resampled according to the specification of the following module.
Inputs / Outputs
Input
Name | Type | Description |
---|---|---|
~/input/trajectory |
autoware_planning_msgs/Trajectory |
Reference trajectory |
/planning/scenario_planning/max_velocity |
std_msgs/Float32 |
External velocity limit [m/s] |
/localization/kinematic_state |
nav_msgs/Odometry |
Current odometry |
/tf |
tf2_msgs/TFMessage |
TF |
File truncated at 100 lines see the full file
Changelog for package autoware_velocity_smoother
1.1.0 (2025-05-01)
1.0.0 (2025-03-31)
- chore: update version in package.xml
- feat(autoware_velocity_smoother): port the package from Autoware Universe (#299)
- Contributors: Ryohsuke Mitsudome
Wiki Tutorials
Package Dependencies
System Dependencies
Launch files
- launch/velocity_smoother.launch.xml
-
- common_param_path [default: $(find-pkg-share autoware_velocity_smoother)/config/default_common.param.yaml]
- nearest_search_param_path
- input_trajectory [default: /planning/scenario_planning/scenario_selector/trajectory]
- output_trajectory [default: /planning/scenario_planning/trajectory]
- publish_debug_trajs [default: false]
- velocity_smoother_type [default: JerkFiltered]
- param_path [default: $(find-pkg-share autoware_velocity_smoother)/config/default_velocity_smoother.param.yaml]
- velocity_smoother_param_path [default: $(find-pkg-share autoware_velocity_smoother)/config/$(var velocity_smoother_type).param.yaml]
Messages
Services
Plugins
Recent questions tagged autoware_velocity_smoother at Robotics Stack Exchange
Package Summary
Tags | No category tags. |
Version | 1.1.0 |
License | Apache License 2.0 |
Build type | AMENT_CMAKE |
Use | RECOMMENDED |
Repository Summary
Checkout URI | https://github.com/autowarefoundation/autoware_core.git |
VCS Type | git |
VCS Version | main |
Last Updated | 2025-06-12 |
Dev Status | DEVELOPED |
CI status | No Continuous Integration |
Released | UNRELEASED |
Tags | No category tags. |
Contributing |
Help Wanted (0)
Good First Issues (0) Pull Requests to Review (0) |
Package Description
Additional Links
Maintainers
- Fumiya Watanabe
- Takamasa Horibe
- Makoto Kurihara
- Satoshi Ota
- Go Sakayori
Authors
- Takamasa Horibe
- Fumiya Watanabe
- Yutaka Shimizu
- Makoto Kurihara
Velocity Smoother
Purpose
autoware_velocity_smoother
outputs a desired velocity profile on a reference trajectory.
This module plans a velocity profile within the limitations of the velocity, the acceleration and the jerk to realize both the maximization of velocity and the ride quality.
We call this module autoware_velocity_smoother
because the limitations of the acceleration and the jerk means the smoothness of the velocity profile.
Inner-workings / Algorithms
Flow chart
Extract trajectory
For the point on the reference trajectory closest to the center of the rear wheel axle of the vehicle, it extracts the reference path between extract_behind_dist
behind and extract_ahead_dist
ahead.
Apply external velocity limit
It applies the velocity limit input from the external of autoware_velocity_smoother
.
Remark that the external velocity limit is different from the velocity limit already set on the map and the reference trajectory.
The external velocity is applied at the position that it is able to reach the velocity limit with the deceleration and the jerk constraints set as the parameter.
Apply stop approaching velocity
It applies the velocity limit near the stopping point. This function is used to approach near the obstacle or improve the accuracy of stopping.
Apply lateral acceleration limit
It applies the velocity limit to decelerate at the curve.
It calculates the velocity limit from the curvature of the reference trajectory and the maximum lateral acceleration max_lateral_accel
.
The velocity limit is set as not to fall under min_curve_velocity
.
Note: velocity limit that requests larger than nominal.jerk
is not applied. In other words, even if a sharp curve is planned just in front of the ego, no deceleration is performed.
Apply steering rate limit
It calculates the desired steering angles of trajectory points. and it applies the steering rate limit. If the (steering_angle_rate
> max_steering_angle_rate
), it decreases the velocity of the trajectory point to acceptable velocity.
Resample trajectory
It resamples the points on the reference trajectory with designated time interval.
Note that the range of the length of the trajectory is set between min_trajectory_length
and max_trajectory_length
, and the distance between two points is longer than min_trajectory_interval_distance
.
It samples densely up to the distance traveled between resample_time
with the current velocity, then samples sparsely after that.
By sampling according to the velocity, both calculation load and accuracy are achieved since it samples finely at low velocity and coarsely at high velocity.
Calculate initial state
Calculate initial values for velocity planning. The initial values are calculated according to the situation as shown in the following table.
Situation | Initial velocity | Initial acceleration |
---|---|---|
First calculation | Current velocity | 0.0 |
Engaging | engage_velocity |
engage_acceleration |
Deviate between the planned velocity and the current velocity | Current velocity | Previous planned value |
Normal | Previous planned value | Previous planned value |
Smooth velocity
It plans the velocity.
The algorithm of velocity planning is chosen from JerkFiltered
, L2
and Linf
, and it is set in the launch file.
In these algorithms, they use OSQP[1] as the solver of the optimization.
JerkFiltered
It minimizes the sum of the minus of the square of the velocity and the square of the violation of the velocity limit, the acceleration limit and the jerk limit.
L2
It minimizes the sum of the minus of the square of the velocity, the square of the the pseudo-jerk[2] and the square of the violation of the velocity limit and the acceleration limit.
Linf
It minimizes the sum of the minus of the square of the velocity, the maximum absolute value of the the pseudo-jerk[2] and the square of the violation of the velocity limit and the acceleration limit.
Post process
It performs the post-process of the planned velocity.
- Set zero velocity ahead of the stopping point
- Set maximum velocity given in the config named
max_velocity
- Set velocity behind the current pose
- Resample trajectory (
post resampling
) - Output debug data
After the optimization, a resampling called post resampling
is performed before passing the optimized trajectory to the next node. Since the required path interval from optimization may be different from the one for the next module, post resampling
helps to fill this gap. Therefore, in post resampling
, it is necessary to check the path specification of the following module to determine the parameters. Note that if the computational load of the optimization algorithm is high and the path interval is sparser than the path specification of the following module in the first resampling, post resampling
would resample the trajectory densely. On the other hand, if the computational load of the optimization algorithm is small and the path interval is denser than the path specification of the following module in the first resampling, the path is sparsely resampled according to the specification of the following module.
Inputs / Outputs
Input
Name | Type | Description |
---|---|---|
~/input/trajectory |
autoware_planning_msgs/Trajectory |
Reference trajectory |
/planning/scenario_planning/max_velocity |
std_msgs/Float32 |
External velocity limit [m/s] |
/localization/kinematic_state |
nav_msgs/Odometry |
Current odometry |
/tf |
tf2_msgs/TFMessage |
TF |
File truncated at 100 lines see the full file
Changelog for package autoware_velocity_smoother
1.1.0 (2025-05-01)
1.0.0 (2025-03-31)
- chore: update version in package.xml
- feat(autoware_velocity_smoother): port the package from Autoware Universe (#299)
- Contributors: Ryohsuke Mitsudome
Wiki Tutorials
Package Dependencies
System Dependencies
Launch files
- launch/velocity_smoother.launch.xml
-
- common_param_path [default: $(find-pkg-share autoware_velocity_smoother)/config/default_common.param.yaml]
- nearest_search_param_path
- input_trajectory [default: /planning/scenario_planning/scenario_selector/trajectory]
- output_trajectory [default: /planning/scenario_planning/trajectory]
- publish_debug_trajs [default: false]
- velocity_smoother_type [default: JerkFiltered]
- param_path [default: $(find-pkg-share autoware_velocity_smoother)/config/default_velocity_smoother.param.yaml]
- velocity_smoother_param_path [default: $(find-pkg-share autoware_velocity_smoother)/config/$(var velocity_smoother_type).param.yaml]
Messages
Services
Plugins
Recent questions tagged autoware_velocity_smoother at Robotics Stack Exchange
Package Summary
Tags | No category tags. |
Version | 1.1.0 |
License | Apache License 2.0 |
Build type | AMENT_CMAKE |
Use | RECOMMENDED |
Repository Summary
Checkout URI | https://github.com/autowarefoundation/autoware_core.git |
VCS Type | git |
VCS Version | main |
Last Updated | 2025-06-12 |
Dev Status | DEVELOPED |
CI status | No Continuous Integration |
Released | UNRELEASED |
Tags | No category tags. |
Contributing |
Help Wanted (0)
Good First Issues (0) Pull Requests to Review (0) |
Package Description
Additional Links
Maintainers
- Fumiya Watanabe
- Takamasa Horibe
- Makoto Kurihara
- Satoshi Ota
- Go Sakayori
Authors
- Takamasa Horibe
- Fumiya Watanabe
- Yutaka Shimizu
- Makoto Kurihara
Velocity Smoother
Purpose
autoware_velocity_smoother
outputs a desired velocity profile on a reference trajectory.
This module plans a velocity profile within the limitations of the velocity, the acceleration and the jerk to realize both the maximization of velocity and the ride quality.
We call this module autoware_velocity_smoother
because the limitations of the acceleration and the jerk means the smoothness of the velocity profile.
Inner-workings / Algorithms
Flow chart
Extract trajectory
For the point on the reference trajectory closest to the center of the rear wheel axle of the vehicle, it extracts the reference path between extract_behind_dist
behind and extract_ahead_dist
ahead.
Apply external velocity limit
It applies the velocity limit input from the external of autoware_velocity_smoother
.
Remark that the external velocity limit is different from the velocity limit already set on the map and the reference trajectory.
The external velocity is applied at the position that it is able to reach the velocity limit with the deceleration and the jerk constraints set as the parameter.
Apply stop approaching velocity
It applies the velocity limit near the stopping point. This function is used to approach near the obstacle or improve the accuracy of stopping.
Apply lateral acceleration limit
It applies the velocity limit to decelerate at the curve.
It calculates the velocity limit from the curvature of the reference trajectory and the maximum lateral acceleration max_lateral_accel
.
The velocity limit is set as not to fall under min_curve_velocity
.
Note: velocity limit that requests larger than nominal.jerk
is not applied. In other words, even if a sharp curve is planned just in front of the ego, no deceleration is performed.
Apply steering rate limit
It calculates the desired steering angles of trajectory points. and it applies the steering rate limit. If the (steering_angle_rate
> max_steering_angle_rate
), it decreases the velocity of the trajectory point to acceptable velocity.
Resample trajectory
It resamples the points on the reference trajectory with designated time interval.
Note that the range of the length of the trajectory is set between min_trajectory_length
and max_trajectory_length
, and the distance between two points is longer than min_trajectory_interval_distance
.
It samples densely up to the distance traveled between resample_time
with the current velocity, then samples sparsely after that.
By sampling according to the velocity, both calculation load and accuracy are achieved since it samples finely at low velocity and coarsely at high velocity.
Calculate initial state
Calculate initial values for velocity planning. The initial values are calculated according to the situation as shown in the following table.
Situation | Initial velocity | Initial acceleration |
---|---|---|
First calculation | Current velocity | 0.0 |
Engaging | engage_velocity |
engage_acceleration |
Deviate between the planned velocity and the current velocity | Current velocity | Previous planned value |
Normal | Previous planned value | Previous planned value |
Smooth velocity
It plans the velocity.
The algorithm of velocity planning is chosen from JerkFiltered
, L2
and Linf
, and it is set in the launch file.
In these algorithms, they use OSQP[1] as the solver of the optimization.
JerkFiltered
It minimizes the sum of the minus of the square of the velocity and the square of the violation of the velocity limit, the acceleration limit and the jerk limit.
L2
It minimizes the sum of the minus of the square of the velocity, the square of the the pseudo-jerk[2] and the square of the violation of the velocity limit and the acceleration limit.
Linf
It minimizes the sum of the minus of the square of the velocity, the maximum absolute value of the the pseudo-jerk[2] and the square of the violation of the velocity limit and the acceleration limit.
Post process
It performs the post-process of the planned velocity.
- Set zero velocity ahead of the stopping point
- Set maximum velocity given in the config named
max_velocity
- Set velocity behind the current pose
- Resample trajectory (
post resampling
) - Output debug data
After the optimization, a resampling called post resampling
is performed before passing the optimized trajectory to the next node. Since the required path interval from optimization may be different from the one for the next module, post resampling
helps to fill this gap. Therefore, in post resampling
, it is necessary to check the path specification of the following module to determine the parameters. Note that if the computational load of the optimization algorithm is high and the path interval is sparser than the path specification of the following module in the first resampling, post resampling
would resample the trajectory densely. On the other hand, if the computational load of the optimization algorithm is small and the path interval is denser than the path specification of the following module in the first resampling, the path is sparsely resampled according to the specification of the following module.
Inputs / Outputs
Input
Name | Type | Description |
---|---|---|
~/input/trajectory |
autoware_planning_msgs/Trajectory |
Reference trajectory |
/planning/scenario_planning/max_velocity |
std_msgs/Float32 |
External velocity limit [m/s] |
/localization/kinematic_state |
nav_msgs/Odometry |
Current odometry |
/tf |
tf2_msgs/TFMessage |
TF |
File truncated at 100 lines see the full file
Changelog for package autoware_velocity_smoother
1.1.0 (2025-05-01)
1.0.0 (2025-03-31)
- chore: update version in package.xml
- feat(autoware_velocity_smoother): port the package from Autoware Universe (#299)
- Contributors: Ryohsuke Mitsudome
Wiki Tutorials
Package Dependencies
System Dependencies
Launch files
- launch/velocity_smoother.launch.xml
-
- common_param_path [default: $(find-pkg-share autoware_velocity_smoother)/config/default_common.param.yaml]
- nearest_search_param_path
- input_trajectory [default: /planning/scenario_planning/scenario_selector/trajectory]
- output_trajectory [default: /planning/scenario_planning/trajectory]
- publish_debug_trajs [default: false]
- velocity_smoother_type [default: JerkFiltered]
- param_path [default: $(find-pkg-share autoware_velocity_smoother)/config/default_velocity_smoother.param.yaml]
- velocity_smoother_param_path [default: $(find-pkg-share autoware_velocity_smoother)/config/$(var velocity_smoother_type).param.yaml]
Messages
Services
Plugins
Recent questions tagged autoware_velocity_smoother at Robotics Stack Exchange
Package Summary
Tags | No category tags. |
Version | 1.1.0 |
License | Apache License 2.0 |
Build type | AMENT_CMAKE |
Use | RECOMMENDED |
Repository Summary
Checkout URI | https://github.com/autowarefoundation/autoware_core.git |
VCS Type | git |
VCS Version | main |
Last Updated | 2025-06-12 |
Dev Status | DEVELOPED |
CI status | No Continuous Integration |
Released | UNRELEASED |
Tags | No category tags. |
Contributing |
Help Wanted (0)
Good First Issues (0) Pull Requests to Review (0) |
Package Description
Additional Links
Maintainers
- Fumiya Watanabe
- Takamasa Horibe
- Makoto Kurihara
- Satoshi Ota
- Go Sakayori
Authors
- Takamasa Horibe
- Fumiya Watanabe
- Yutaka Shimizu
- Makoto Kurihara
Velocity Smoother
Purpose
autoware_velocity_smoother
outputs a desired velocity profile on a reference trajectory.
This module plans a velocity profile within the limitations of the velocity, the acceleration and the jerk to realize both the maximization of velocity and the ride quality.
We call this module autoware_velocity_smoother
because the limitations of the acceleration and the jerk means the smoothness of the velocity profile.
Inner-workings / Algorithms
Flow chart
Extract trajectory
For the point on the reference trajectory closest to the center of the rear wheel axle of the vehicle, it extracts the reference path between extract_behind_dist
behind and extract_ahead_dist
ahead.
Apply external velocity limit
It applies the velocity limit input from the external of autoware_velocity_smoother
.
Remark that the external velocity limit is different from the velocity limit already set on the map and the reference trajectory.
The external velocity is applied at the position that it is able to reach the velocity limit with the deceleration and the jerk constraints set as the parameter.
Apply stop approaching velocity
It applies the velocity limit near the stopping point. This function is used to approach near the obstacle or improve the accuracy of stopping.
Apply lateral acceleration limit
It applies the velocity limit to decelerate at the curve.
It calculates the velocity limit from the curvature of the reference trajectory and the maximum lateral acceleration max_lateral_accel
.
The velocity limit is set as not to fall under min_curve_velocity
.
Note: velocity limit that requests larger than nominal.jerk
is not applied. In other words, even if a sharp curve is planned just in front of the ego, no deceleration is performed.
Apply steering rate limit
It calculates the desired steering angles of trajectory points. and it applies the steering rate limit. If the (steering_angle_rate
> max_steering_angle_rate
), it decreases the velocity of the trajectory point to acceptable velocity.
Resample trajectory
It resamples the points on the reference trajectory with designated time interval.
Note that the range of the length of the trajectory is set between min_trajectory_length
and max_trajectory_length
, and the distance between two points is longer than min_trajectory_interval_distance
.
It samples densely up to the distance traveled between resample_time
with the current velocity, then samples sparsely after that.
By sampling according to the velocity, both calculation load and accuracy are achieved since it samples finely at low velocity and coarsely at high velocity.
Calculate initial state
Calculate initial values for velocity planning. The initial values are calculated according to the situation as shown in the following table.
Situation | Initial velocity | Initial acceleration |
---|---|---|
First calculation | Current velocity | 0.0 |
Engaging | engage_velocity |
engage_acceleration |
Deviate between the planned velocity and the current velocity | Current velocity | Previous planned value |
Normal | Previous planned value | Previous planned value |
Smooth velocity
It plans the velocity.
The algorithm of velocity planning is chosen from JerkFiltered
, L2
and Linf
, and it is set in the launch file.
In these algorithms, they use OSQP[1] as the solver of the optimization.
JerkFiltered
It minimizes the sum of the minus of the square of the velocity and the square of the violation of the velocity limit, the acceleration limit and the jerk limit.
L2
It minimizes the sum of the minus of the square of the velocity, the square of the the pseudo-jerk[2] and the square of the violation of the velocity limit and the acceleration limit.
Linf
It minimizes the sum of the minus of the square of the velocity, the maximum absolute value of the the pseudo-jerk[2] and the square of the violation of the velocity limit and the acceleration limit.
Post process
It performs the post-process of the planned velocity.
- Set zero velocity ahead of the stopping point
- Set maximum velocity given in the config named
max_velocity
- Set velocity behind the current pose
- Resample trajectory (
post resampling
) - Output debug data
After the optimization, a resampling called post resampling
is performed before passing the optimized trajectory to the next node. Since the required path interval from optimization may be different from the one for the next module, post resampling
helps to fill this gap. Therefore, in post resampling
, it is necessary to check the path specification of the following module to determine the parameters. Note that if the computational load of the optimization algorithm is high and the path interval is sparser than the path specification of the following module in the first resampling, post resampling
would resample the trajectory densely. On the other hand, if the computational load of the optimization algorithm is small and the path interval is denser than the path specification of the following module in the first resampling, the path is sparsely resampled according to the specification of the following module.
Inputs / Outputs
Input
Name | Type | Description |
---|---|---|
~/input/trajectory |
autoware_planning_msgs/Trajectory |
Reference trajectory |
/planning/scenario_planning/max_velocity |
std_msgs/Float32 |
External velocity limit [m/s] |
/localization/kinematic_state |
nav_msgs/Odometry |
Current odometry |
/tf |
tf2_msgs/TFMessage |
TF |
File truncated at 100 lines see the full file
Changelog for package autoware_velocity_smoother
1.1.0 (2025-05-01)
1.0.0 (2025-03-31)
- chore: update version in package.xml
- feat(autoware_velocity_smoother): port the package from Autoware Universe (#299)
- Contributors: Ryohsuke Mitsudome
Wiki Tutorials
Package Dependencies
System Dependencies
Launch files
- launch/velocity_smoother.launch.xml
-
- common_param_path [default: $(find-pkg-share autoware_velocity_smoother)/config/default_common.param.yaml]
- nearest_search_param_path
- input_trajectory [default: /planning/scenario_planning/scenario_selector/trajectory]
- output_trajectory [default: /planning/scenario_planning/trajectory]
- publish_debug_trajs [default: false]
- velocity_smoother_type [default: JerkFiltered]
- param_path [default: $(find-pkg-share autoware_velocity_smoother)/config/default_velocity_smoother.param.yaml]
- velocity_smoother_param_path [default: $(find-pkg-share autoware_velocity_smoother)/config/$(var velocity_smoother_type).param.yaml]
Messages
Services
Plugins
Recent questions tagged autoware_velocity_smoother at Robotics Stack Exchange
Package Summary
Tags | No category tags. |
Version | 1.1.0 |
License | Apache License 2.0 |
Build type | AMENT_CMAKE |
Use | RECOMMENDED |
Repository Summary
Checkout URI | https://github.com/autowarefoundation/autoware_core.git |
VCS Type | git |
VCS Version | main |
Last Updated | 2025-06-12 |
Dev Status | DEVELOPED |
CI status | No Continuous Integration |
Released | UNRELEASED |
Tags | No category tags. |
Contributing |
Help Wanted (0)
Good First Issues (0) Pull Requests to Review (0) |
Package Description
Additional Links
Maintainers
- Fumiya Watanabe
- Takamasa Horibe
- Makoto Kurihara
- Satoshi Ota
- Go Sakayori
Authors
- Takamasa Horibe
- Fumiya Watanabe
- Yutaka Shimizu
- Makoto Kurihara
Velocity Smoother
Purpose
autoware_velocity_smoother
outputs a desired velocity profile on a reference trajectory.
This module plans a velocity profile within the limitations of the velocity, the acceleration and the jerk to realize both the maximization of velocity and the ride quality.
We call this module autoware_velocity_smoother
because the limitations of the acceleration and the jerk means the smoothness of the velocity profile.
Inner-workings / Algorithms
Flow chart
Extract trajectory
For the point on the reference trajectory closest to the center of the rear wheel axle of the vehicle, it extracts the reference path between extract_behind_dist
behind and extract_ahead_dist
ahead.
Apply external velocity limit
It applies the velocity limit input from the external of autoware_velocity_smoother
.
Remark that the external velocity limit is different from the velocity limit already set on the map and the reference trajectory.
The external velocity is applied at the position that it is able to reach the velocity limit with the deceleration and the jerk constraints set as the parameter.
Apply stop approaching velocity
It applies the velocity limit near the stopping point. This function is used to approach near the obstacle or improve the accuracy of stopping.
Apply lateral acceleration limit
It applies the velocity limit to decelerate at the curve.
It calculates the velocity limit from the curvature of the reference trajectory and the maximum lateral acceleration max_lateral_accel
.
The velocity limit is set as not to fall under min_curve_velocity
.
Note: velocity limit that requests larger than nominal.jerk
is not applied. In other words, even if a sharp curve is planned just in front of the ego, no deceleration is performed.
Apply steering rate limit
It calculates the desired steering angles of trajectory points. and it applies the steering rate limit. If the (steering_angle_rate
> max_steering_angle_rate
), it decreases the velocity of the trajectory point to acceptable velocity.
Resample trajectory
It resamples the points on the reference trajectory with designated time interval.
Note that the range of the length of the trajectory is set between min_trajectory_length
and max_trajectory_length
, and the distance between two points is longer than min_trajectory_interval_distance
.
It samples densely up to the distance traveled between resample_time
with the current velocity, then samples sparsely after that.
By sampling according to the velocity, both calculation load and accuracy are achieved since it samples finely at low velocity and coarsely at high velocity.
Calculate initial state
Calculate initial values for velocity planning. The initial values are calculated according to the situation as shown in the following table.
Situation | Initial velocity | Initial acceleration |
---|---|---|
First calculation | Current velocity | 0.0 |
Engaging | engage_velocity |
engage_acceleration |
Deviate between the planned velocity and the current velocity | Current velocity | Previous planned value |
Normal | Previous planned value | Previous planned value |
Smooth velocity
It plans the velocity.
The algorithm of velocity planning is chosen from JerkFiltered
, L2
and Linf
, and it is set in the launch file.
In these algorithms, they use OSQP[1] as the solver of the optimization.
JerkFiltered
It minimizes the sum of the minus of the square of the velocity and the square of the violation of the velocity limit, the acceleration limit and the jerk limit.
L2
It minimizes the sum of the minus of the square of the velocity, the square of the the pseudo-jerk[2] and the square of the violation of the velocity limit and the acceleration limit.
Linf
It minimizes the sum of the minus of the square of the velocity, the maximum absolute value of the the pseudo-jerk[2] and the square of the violation of the velocity limit and the acceleration limit.
Post process
It performs the post-process of the planned velocity.
- Set zero velocity ahead of the stopping point
- Set maximum velocity given in the config named
max_velocity
- Set velocity behind the current pose
- Resample trajectory (
post resampling
) - Output debug data
After the optimization, a resampling called post resampling
is performed before passing the optimized trajectory to the next node. Since the required path interval from optimization may be different from the one for the next module, post resampling
helps to fill this gap. Therefore, in post resampling
, it is necessary to check the path specification of the following module to determine the parameters. Note that if the computational load of the optimization algorithm is high and the path interval is sparser than the path specification of the following module in the first resampling, post resampling
would resample the trajectory densely. On the other hand, if the computational load of the optimization algorithm is small and the path interval is denser than the path specification of the following module in the first resampling, the path is sparsely resampled according to the specification of the following module.
Inputs / Outputs
Input
Name | Type | Description |
---|---|---|
~/input/trajectory |
autoware_planning_msgs/Trajectory |
Reference trajectory |
/planning/scenario_planning/max_velocity |
std_msgs/Float32 |
External velocity limit [m/s] |
/localization/kinematic_state |
nav_msgs/Odometry |
Current odometry |
/tf |
tf2_msgs/TFMessage |
TF |
File truncated at 100 lines see the full file
Changelog for package autoware_velocity_smoother
1.1.0 (2025-05-01)
1.0.0 (2025-03-31)
- chore: update version in package.xml
- feat(autoware_velocity_smoother): port the package from Autoware Universe (#299)
- Contributors: Ryohsuke Mitsudome
Wiki Tutorials
Package Dependencies
System Dependencies
Launch files
- launch/velocity_smoother.launch.xml
-
- common_param_path [default: $(find-pkg-share autoware_velocity_smoother)/config/default_common.param.yaml]
- nearest_search_param_path
- input_trajectory [default: /planning/scenario_planning/scenario_selector/trajectory]
- output_trajectory [default: /planning/scenario_planning/trajectory]
- publish_debug_trajs [default: false]
- velocity_smoother_type [default: JerkFiltered]
- param_path [default: $(find-pkg-share autoware_velocity_smoother)/config/default_velocity_smoother.param.yaml]
- velocity_smoother_param_path [default: $(find-pkg-share autoware_velocity_smoother)/config/$(var velocity_smoother_type).param.yaml]
Messages
Services
Plugins
Recent questions tagged autoware_velocity_smoother at Robotics Stack Exchange
Package Summary
Tags | No category tags. |
Version | 1.1.0 |
License | Apache License 2.0 |
Build type | AMENT_CMAKE |
Use | RECOMMENDED |
Repository Summary
Checkout URI | https://github.com/autowarefoundation/autoware_core.git |
VCS Type | git |
VCS Version | main |
Last Updated | 2025-06-12 |
Dev Status | DEVELOPED |
CI status | No Continuous Integration |
Released | UNRELEASED |
Tags | No category tags. |
Contributing |
Help Wanted (0)
Good First Issues (0) Pull Requests to Review (0) |
Package Description
Additional Links
Maintainers
- Fumiya Watanabe
- Takamasa Horibe
- Makoto Kurihara
- Satoshi Ota
- Go Sakayori
Authors
- Takamasa Horibe
- Fumiya Watanabe
- Yutaka Shimizu
- Makoto Kurihara
Velocity Smoother
Purpose
autoware_velocity_smoother
outputs a desired velocity profile on a reference trajectory.
This module plans a velocity profile within the limitations of the velocity, the acceleration and the jerk to realize both the maximization of velocity and the ride quality.
We call this module autoware_velocity_smoother
because the limitations of the acceleration and the jerk means the smoothness of the velocity profile.
Inner-workings / Algorithms
Flow chart
Extract trajectory
For the point on the reference trajectory closest to the center of the rear wheel axle of the vehicle, it extracts the reference path between extract_behind_dist
behind and extract_ahead_dist
ahead.
Apply external velocity limit
It applies the velocity limit input from the external of autoware_velocity_smoother
.
Remark that the external velocity limit is different from the velocity limit already set on the map and the reference trajectory.
The external velocity is applied at the position that it is able to reach the velocity limit with the deceleration and the jerk constraints set as the parameter.
Apply stop approaching velocity
It applies the velocity limit near the stopping point. This function is used to approach near the obstacle or improve the accuracy of stopping.
Apply lateral acceleration limit
It applies the velocity limit to decelerate at the curve.
It calculates the velocity limit from the curvature of the reference trajectory and the maximum lateral acceleration max_lateral_accel
.
The velocity limit is set as not to fall under min_curve_velocity
.
Note: velocity limit that requests larger than nominal.jerk
is not applied. In other words, even if a sharp curve is planned just in front of the ego, no deceleration is performed.
Apply steering rate limit
It calculates the desired steering angles of trajectory points. and it applies the steering rate limit. If the (steering_angle_rate
> max_steering_angle_rate
), it decreases the velocity of the trajectory point to acceptable velocity.
Resample trajectory
It resamples the points on the reference trajectory with designated time interval.
Note that the range of the length of the trajectory is set between min_trajectory_length
and max_trajectory_length
, and the distance between two points is longer than min_trajectory_interval_distance
.
It samples densely up to the distance traveled between resample_time
with the current velocity, then samples sparsely after that.
By sampling according to the velocity, both calculation load and accuracy are achieved since it samples finely at low velocity and coarsely at high velocity.
Calculate initial state
Calculate initial values for velocity planning. The initial values are calculated according to the situation as shown in the following table.
Situation | Initial velocity | Initial acceleration |
---|---|---|
First calculation | Current velocity | 0.0 |
Engaging | engage_velocity |
engage_acceleration |
Deviate between the planned velocity and the current velocity | Current velocity | Previous planned value |
Normal | Previous planned value | Previous planned value |
Smooth velocity
It plans the velocity.
The algorithm of velocity planning is chosen from JerkFiltered
, L2
and Linf
, and it is set in the launch file.
In these algorithms, they use OSQP[1] as the solver of the optimization.
JerkFiltered
It minimizes the sum of the minus of the square of the velocity and the square of the violation of the velocity limit, the acceleration limit and the jerk limit.
L2
It minimizes the sum of the minus of the square of the velocity, the square of the the pseudo-jerk[2] and the square of the violation of the velocity limit and the acceleration limit.
Linf
It minimizes the sum of the minus of the square of the velocity, the maximum absolute value of the the pseudo-jerk[2] and the square of the violation of the velocity limit and the acceleration limit.
Post process
It performs the post-process of the planned velocity.
- Set zero velocity ahead of the stopping point
- Set maximum velocity given in the config named
max_velocity
- Set velocity behind the current pose
- Resample trajectory (
post resampling
) - Output debug data
After the optimization, a resampling called post resampling
is performed before passing the optimized trajectory to the next node. Since the required path interval from optimization may be different from the one for the next module, post resampling
helps to fill this gap. Therefore, in post resampling
, it is necessary to check the path specification of the following module to determine the parameters. Note that if the computational load of the optimization algorithm is high and the path interval is sparser than the path specification of the following module in the first resampling, post resampling
would resample the trajectory densely. On the other hand, if the computational load of the optimization algorithm is small and the path interval is denser than the path specification of the following module in the first resampling, the path is sparsely resampled according to the specification of the following module.
Inputs / Outputs
Input
Name | Type | Description |
---|---|---|
~/input/trajectory |
autoware_planning_msgs/Trajectory |
Reference trajectory |
/planning/scenario_planning/max_velocity |
std_msgs/Float32 |
External velocity limit [m/s] |
/localization/kinematic_state |
nav_msgs/Odometry |
Current odometry |
/tf |
tf2_msgs/TFMessage |
TF |
File truncated at 100 lines see the full file
Changelog for package autoware_velocity_smoother
1.1.0 (2025-05-01)
1.0.0 (2025-03-31)
- chore: update version in package.xml
- feat(autoware_velocity_smoother): port the package from Autoware Universe (#299)
- Contributors: Ryohsuke Mitsudome
Wiki Tutorials
Package Dependencies
System Dependencies
Launch files
- launch/velocity_smoother.launch.xml
-
- common_param_path [default: $(find-pkg-share autoware_velocity_smoother)/config/default_common.param.yaml]
- nearest_search_param_path
- input_trajectory [default: /planning/scenario_planning/scenario_selector/trajectory]
- output_trajectory [default: /planning/scenario_planning/trajectory]
- publish_debug_trajs [default: false]
- velocity_smoother_type [default: JerkFiltered]
- param_path [default: $(find-pkg-share autoware_velocity_smoother)/config/default_velocity_smoother.param.yaml]
- velocity_smoother_param_path [default: $(find-pkg-share autoware_velocity_smoother)/config/$(var velocity_smoother_type).param.yaml]
Messages
Services
Plugins
Recent questions tagged autoware_velocity_smoother at Robotics Stack Exchange
Package Summary
Tags | No category tags. |
Version | 1.1.0 |
License | Apache License 2.0 |
Build type | AMENT_CMAKE |
Use | RECOMMENDED |
Repository Summary
Checkout URI | https://github.com/autowarefoundation/autoware_core.git |
VCS Type | git |
VCS Version | main |
Last Updated | 2025-06-12 |
Dev Status | DEVELOPED |
CI status | No Continuous Integration |
Released | UNRELEASED |
Tags | No category tags. |
Contributing |
Help Wanted (0)
Good First Issues (0) Pull Requests to Review (0) |
Package Description
Additional Links
Maintainers
- Fumiya Watanabe
- Takamasa Horibe
- Makoto Kurihara
- Satoshi Ota
- Go Sakayori
Authors
- Takamasa Horibe
- Fumiya Watanabe
- Yutaka Shimizu
- Makoto Kurihara
Velocity Smoother
Purpose
autoware_velocity_smoother
outputs a desired velocity profile on a reference trajectory.
This module plans a velocity profile within the limitations of the velocity, the acceleration and the jerk to realize both the maximization of velocity and the ride quality.
We call this module autoware_velocity_smoother
because the limitations of the acceleration and the jerk means the smoothness of the velocity profile.
Inner-workings / Algorithms
Flow chart
Extract trajectory
For the point on the reference trajectory closest to the center of the rear wheel axle of the vehicle, it extracts the reference path between extract_behind_dist
behind and extract_ahead_dist
ahead.
Apply external velocity limit
It applies the velocity limit input from the external of autoware_velocity_smoother
.
Remark that the external velocity limit is different from the velocity limit already set on the map and the reference trajectory.
The external velocity is applied at the position that it is able to reach the velocity limit with the deceleration and the jerk constraints set as the parameter.
Apply stop approaching velocity
It applies the velocity limit near the stopping point. This function is used to approach near the obstacle or improve the accuracy of stopping.
Apply lateral acceleration limit
It applies the velocity limit to decelerate at the curve.
It calculates the velocity limit from the curvature of the reference trajectory and the maximum lateral acceleration max_lateral_accel
.
The velocity limit is set as not to fall under min_curve_velocity
.
Note: velocity limit that requests larger than nominal.jerk
is not applied. In other words, even if a sharp curve is planned just in front of the ego, no deceleration is performed.
Apply steering rate limit
It calculates the desired steering angles of trajectory points. and it applies the steering rate limit. If the (steering_angle_rate
> max_steering_angle_rate
), it decreases the velocity of the trajectory point to acceptable velocity.
Resample trajectory
It resamples the points on the reference trajectory with designated time interval.
Note that the range of the length of the trajectory is set between min_trajectory_length
and max_trajectory_length
, and the distance between two points is longer than min_trajectory_interval_distance
.
It samples densely up to the distance traveled between resample_time
with the current velocity, then samples sparsely after that.
By sampling according to the velocity, both calculation load and accuracy are achieved since it samples finely at low velocity and coarsely at high velocity.
Calculate initial state
Calculate initial values for velocity planning. The initial values are calculated according to the situation as shown in the following table.
Situation | Initial velocity | Initial acceleration |
---|---|---|
First calculation | Current velocity | 0.0 |
Engaging | engage_velocity |
engage_acceleration |
Deviate between the planned velocity and the current velocity | Current velocity | Previous planned value |
Normal | Previous planned value | Previous planned value |
Smooth velocity
It plans the velocity.
The algorithm of velocity planning is chosen from JerkFiltered
, L2
and Linf
, and it is set in the launch file.
In these algorithms, they use OSQP[1] as the solver of the optimization.
JerkFiltered
It minimizes the sum of the minus of the square of the velocity and the square of the violation of the velocity limit, the acceleration limit and the jerk limit.
L2
It minimizes the sum of the minus of the square of the velocity, the square of the the pseudo-jerk[2] and the square of the violation of the velocity limit and the acceleration limit.
Linf
It minimizes the sum of the minus of the square of the velocity, the maximum absolute value of the the pseudo-jerk[2] and the square of the violation of the velocity limit and the acceleration limit.
Post process
It performs the post-process of the planned velocity.
- Set zero velocity ahead of the stopping point
- Set maximum velocity given in the config named
max_velocity
- Set velocity behind the current pose
- Resample trajectory (
post resampling
) - Output debug data
After the optimization, a resampling called post resampling
is performed before passing the optimized trajectory to the next node. Since the required path interval from optimization may be different from the one for the next module, post resampling
helps to fill this gap. Therefore, in post resampling
, it is necessary to check the path specification of the following module to determine the parameters. Note that if the computational load of the optimization algorithm is high and the path interval is sparser than the path specification of the following module in the first resampling, post resampling
would resample the trajectory densely. On the other hand, if the computational load of the optimization algorithm is small and the path interval is denser than the path specification of the following module in the first resampling, the path is sparsely resampled according to the specification of the following module.
Inputs / Outputs
Input
Name | Type | Description |
---|---|---|
~/input/trajectory |
autoware_planning_msgs/Trajectory |
Reference trajectory |
/planning/scenario_planning/max_velocity |
std_msgs/Float32 |
External velocity limit [m/s] |
/localization/kinematic_state |
nav_msgs/Odometry |
Current odometry |
/tf |
tf2_msgs/TFMessage |
TF |
File truncated at 100 lines see the full file
Changelog for package autoware_velocity_smoother
1.1.0 (2025-05-01)
1.0.0 (2025-03-31)
- chore: update version in package.xml
- feat(autoware_velocity_smoother): port the package from Autoware Universe (#299)
- Contributors: Ryohsuke Mitsudome
Wiki Tutorials
Package Dependencies
System Dependencies
Launch files
- launch/velocity_smoother.launch.xml
-
- common_param_path [default: $(find-pkg-share autoware_velocity_smoother)/config/default_common.param.yaml]
- nearest_search_param_path
- input_trajectory [default: /planning/scenario_planning/scenario_selector/trajectory]
- output_trajectory [default: /planning/scenario_planning/trajectory]
- publish_debug_trajs [default: false]
- velocity_smoother_type [default: JerkFiltered]
- param_path [default: $(find-pkg-share autoware_velocity_smoother)/config/default_velocity_smoother.param.yaml]
- velocity_smoother_param_path [default: $(find-pkg-share autoware_velocity_smoother)/config/$(var velocity_smoother_type).param.yaml]
Messages
Services
Plugins
Recent questions tagged autoware_velocity_smoother at Robotics Stack Exchange
Package Summary
Tags | No category tags. |
Version | 1.1.0 |
License | Apache License 2.0 |
Build type | AMENT_CMAKE |
Use | RECOMMENDED |
Repository Summary
Checkout URI | https://github.com/autowarefoundation/autoware_core.git |
VCS Type | git |
VCS Version | main |
Last Updated | 2025-06-12 |
Dev Status | DEVELOPED |
CI status | No Continuous Integration |
Released | UNRELEASED |
Tags | No category tags. |
Contributing |
Help Wanted (0)
Good First Issues (0) Pull Requests to Review (0) |
Package Description
Additional Links
Maintainers
- Fumiya Watanabe
- Takamasa Horibe
- Makoto Kurihara
- Satoshi Ota
- Go Sakayori
Authors
- Takamasa Horibe
- Fumiya Watanabe
- Yutaka Shimizu
- Makoto Kurihara
Velocity Smoother
Purpose
autoware_velocity_smoother
outputs a desired velocity profile on a reference trajectory.
This module plans a velocity profile within the limitations of the velocity, the acceleration and the jerk to realize both the maximization of velocity and the ride quality.
We call this module autoware_velocity_smoother
because the limitations of the acceleration and the jerk means the smoothness of the velocity profile.
Inner-workings / Algorithms
Flow chart
Extract trajectory
For the point on the reference trajectory closest to the center of the rear wheel axle of the vehicle, it extracts the reference path between extract_behind_dist
behind and extract_ahead_dist
ahead.
Apply external velocity limit
It applies the velocity limit input from the external of autoware_velocity_smoother
.
Remark that the external velocity limit is different from the velocity limit already set on the map and the reference trajectory.
The external velocity is applied at the position that it is able to reach the velocity limit with the deceleration and the jerk constraints set as the parameter.
Apply stop approaching velocity
It applies the velocity limit near the stopping point. This function is used to approach near the obstacle or improve the accuracy of stopping.
Apply lateral acceleration limit
It applies the velocity limit to decelerate at the curve.
It calculates the velocity limit from the curvature of the reference trajectory and the maximum lateral acceleration max_lateral_accel
.
The velocity limit is set as not to fall under min_curve_velocity
.
Note: velocity limit that requests larger than nominal.jerk
is not applied. In other words, even if a sharp curve is planned just in front of the ego, no deceleration is performed.
Apply steering rate limit
It calculates the desired steering angles of trajectory points. and it applies the steering rate limit. If the (steering_angle_rate
> max_steering_angle_rate
), it decreases the velocity of the trajectory point to acceptable velocity.
Resample trajectory
It resamples the points on the reference trajectory with designated time interval.
Note that the range of the length of the trajectory is set between min_trajectory_length
and max_trajectory_length
, and the distance between two points is longer than min_trajectory_interval_distance
.
It samples densely up to the distance traveled between resample_time
with the current velocity, then samples sparsely after that.
By sampling according to the velocity, both calculation load and accuracy are achieved since it samples finely at low velocity and coarsely at high velocity.
Calculate initial state
Calculate initial values for velocity planning. The initial values are calculated according to the situation as shown in the following table.
Situation | Initial velocity | Initial acceleration |
---|---|---|
First calculation | Current velocity | 0.0 |
Engaging | engage_velocity |
engage_acceleration |
Deviate between the planned velocity and the current velocity | Current velocity | Previous planned value |
Normal | Previous planned value | Previous planned value |
Smooth velocity
It plans the velocity.
The algorithm of velocity planning is chosen from JerkFiltered
, L2
and Linf
, and it is set in the launch file.
In these algorithms, they use OSQP[1] as the solver of the optimization.
JerkFiltered
It minimizes the sum of the minus of the square of the velocity and the square of the violation of the velocity limit, the acceleration limit and the jerk limit.
L2
It minimizes the sum of the minus of the square of the velocity, the square of the the pseudo-jerk[2] and the square of the violation of the velocity limit and the acceleration limit.
Linf
It minimizes the sum of the minus of the square of the velocity, the maximum absolute value of the the pseudo-jerk[2] and the square of the violation of the velocity limit and the acceleration limit.
Post process
It performs the post-process of the planned velocity.
- Set zero velocity ahead of the stopping point
- Set maximum velocity given in the config named
max_velocity
- Set velocity behind the current pose
- Resample trajectory (
post resampling
) - Output debug data
After the optimization, a resampling called post resampling
is performed before passing the optimized trajectory to the next node. Since the required path interval from optimization may be different from the one for the next module, post resampling
helps to fill this gap. Therefore, in post resampling
, it is necessary to check the path specification of the following module to determine the parameters. Note that if the computational load of the optimization algorithm is high and the path interval is sparser than the path specification of the following module in the first resampling, post resampling
would resample the trajectory densely. On the other hand, if the computational load of the optimization algorithm is small and the path interval is denser than the path specification of the following module in the first resampling, the path is sparsely resampled according to the specification of the following module.
Inputs / Outputs
Input
Name | Type | Description |
---|---|---|
~/input/trajectory |
autoware_planning_msgs/Trajectory |
Reference trajectory |
/planning/scenario_planning/max_velocity |
std_msgs/Float32 |
External velocity limit [m/s] |
/localization/kinematic_state |
nav_msgs/Odometry |
Current odometry |
/tf |
tf2_msgs/TFMessage |
TF |
File truncated at 100 lines see the full file
Changelog for package autoware_velocity_smoother
1.1.0 (2025-05-01)
1.0.0 (2025-03-31)
- chore: update version in package.xml
- feat(autoware_velocity_smoother): port the package from Autoware Universe (#299)
- Contributors: Ryohsuke Mitsudome
Wiki Tutorials
Package Dependencies
System Dependencies
Launch files
- launch/velocity_smoother.launch.xml
-
- common_param_path [default: $(find-pkg-share autoware_velocity_smoother)/config/default_common.param.yaml]
- nearest_search_param_path
- input_trajectory [default: /planning/scenario_planning/scenario_selector/trajectory]
- output_trajectory [default: /planning/scenario_planning/trajectory]
- publish_debug_trajs [default: false]
- velocity_smoother_type [default: JerkFiltered]
- param_path [default: $(find-pkg-share autoware_velocity_smoother)/config/default_velocity_smoother.param.yaml]
- velocity_smoother_param_path [default: $(find-pkg-share autoware_velocity_smoother)/config/$(var velocity_smoother_type).param.yaml]
Messages
Services
Plugins
Recent questions tagged autoware_velocity_smoother at Robotics Stack Exchange
Package Summary
Tags | No category tags. |
Version | 1.1.0 |
License | Apache License 2.0 |
Build type | AMENT_CMAKE |
Use | RECOMMENDED |
Repository Summary
Checkout URI | https://github.com/autowarefoundation/autoware_core.git |
VCS Type | git |
VCS Version | main |
Last Updated | 2025-06-12 |
Dev Status | DEVELOPED |
CI status | No Continuous Integration |
Released | UNRELEASED |
Tags | No category tags. |
Contributing |
Help Wanted (0)
Good First Issues (0) Pull Requests to Review (0) |
Package Description
Additional Links
Maintainers
- Fumiya Watanabe
- Takamasa Horibe
- Makoto Kurihara
- Satoshi Ota
- Go Sakayori
Authors
- Takamasa Horibe
- Fumiya Watanabe
- Yutaka Shimizu
- Makoto Kurihara
Velocity Smoother
Purpose
autoware_velocity_smoother
outputs a desired velocity profile on a reference trajectory.
This module plans a velocity profile within the limitations of the velocity, the acceleration and the jerk to realize both the maximization of velocity and the ride quality.
We call this module autoware_velocity_smoother
because the limitations of the acceleration and the jerk means the smoothness of the velocity profile.
Inner-workings / Algorithms
Flow chart
Extract trajectory
For the point on the reference trajectory closest to the center of the rear wheel axle of the vehicle, it extracts the reference path between extract_behind_dist
behind and extract_ahead_dist
ahead.
Apply external velocity limit
It applies the velocity limit input from the external of autoware_velocity_smoother
.
Remark that the external velocity limit is different from the velocity limit already set on the map and the reference trajectory.
The external velocity is applied at the position that it is able to reach the velocity limit with the deceleration and the jerk constraints set as the parameter.
Apply stop approaching velocity
It applies the velocity limit near the stopping point. This function is used to approach near the obstacle or improve the accuracy of stopping.
Apply lateral acceleration limit
It applies the velocity limit to decelerate at the curve.
It calculates the velocity limit from the curvature of the reference trajectory and the maximum lateral acceleration max_lateral_accel
.
The velocity limit is set as not to fall under min_curve_velocity
.
Note: velocity limit that requests larger than nominal.jerk
is not applied. In other words, even if a sharp curve is planned just in front of the ego, no deceleration is performed.
Apply steering rate limit
It calculates the desired steering angles of trajectory points. and it applies the steering rate limit. If the (steering_angle_rate
> max_steering_angle_rate
), it decreases the velocity of the trajectory point to acceptable velocity.
Resample trajectory
It resamples the points on the reference trajectory with designated time interval.
Note that the range of the length of the trajectory is set between min_trajectory_length
and max_trajectory_length
, and the distance between two points is longer than min_trajectory_interval_distance
.
It samples densely up to the distance traveled between resample_time
with the current velocity, then samples sparsely after that.
By sampling according to the velocity, both calculation load and accuracy are achieved since it samples finely at low velocity and coarsely at high velocity.
Calculate initial state
Calculate initial values for velocity planning. The initial values are calculated according to the situation as shown in the following table.
Situation | Initial velocity | Initial acceleration |
---|---|---|
First calculation | Current velocity | 0.0 |
Engaging | engage_velocity |
engage_acceleration |
Deviate between the planned velocity and the current velocity | Current velocity | Previous planned value |
Normal | Previous planned value | Previous planned value |
Smooth velocity
It plans the velocity.
The algorithm of velocity planning is chosen from JerkFiltered
, L2
and Linf
, and it is set in the launch file.
In these algorithms, they use OSQP[1] as the solver of the optimization.
JerkFiltered
It minimizes the sum of the minus of the square of the velocity and the square of the violation of the velocity limit, the acceleration limit and the jerk limit.
L2
It minimizes the sum of the minus of the square of the velocity, the square of the the pseudo-jerk[2] and the square of the violation of the velocity limit and the acceleration limit.
Linf
It minimizes the sum of the minus of the square of the velocity, the maximum absolute value of the the pseudo-jerk[2] and the square of the violation of the velocity limit and the acceleration limit.
Post process
It performs the post-process of the planned velocity.
- Set zero velocity ahead of the stopping point
- Set maximum velocity given in the config named
max_velocity
- Set velocity behind the current pose
- Resample trajectory (
post resampling
) - Output debug data
After the optimization, a resampling called post resampling
is performed before passing the optimized trajectory to the next node. Since the required path interval from optimization may be different from the one for the next module, post resampling
helps to fill this gap. Therefore, in post resampling
, it is necessary to check the path specification of the following module to determine the parameters. Note that if the computational load of the optimization algorithm is high and the path interval is sparser than the path specification of the following module in the first resampling, post resampling
would resample the trajectory densely. On the other hand, if the computational load of the optimization algorithm is small and the path interval is denser than the path specification of the following module in the first resampling, the path is sparsely resampled according to the specification of the following module.
Inputs / Outputs
Input
Name | Type | Description |
---|---|---|
~/input/trajectory |
autoware_planning_msgs/Trajectory |
Reference trajectory |
/planning/scenario_planning/max_velocity |
std_msgs/Float32 |
External velocity limit [m/s] |
/localization/kinematic_state |
nav_msgs/Odometry |
Current odometry |
/tf |
tf2_msgs/TFMessage |
TF |
File truncated at 100 lines see the full file
Changelog for package autoware_velocity_smoother
1.1.0 (2025-05-01)
1.0.0 (2025-03-31)
- chore: update version in package.xml
- feat(autoware_velocity_smoother): port the package from Autoware Universe (#299)
- Contributors: Ryohsuke Mitsudome
Wiki Tutorials
Package Dependencies
System Dependencies
Launch files
- launch/velocity_smoother.launch.xml
-
- common_param_path [default: $(find-pkg-share autoware_velocity_smoother)/config/default_common.param.yaml]
- nearest_search_param_path
- input_trajectory [default: /planning/scenario_planning/scenario_selector/trajectory]
- output_trajectory [default: /planning/scenario_planning/trajectory]
- publish_debug_trajs [default: false]
- velocity_smoother_type [default: JerkFiltered]
- param_path [default: $(find-pkg-share autoware_velocity_smoother)/config/default_velocity_smoother.param.yaml]
- velocity_smoother_param_path [default: $(find-pkg-share autoware_velocity_smoother)/config/$(var velocity_smoother_type).param.yaml]
Messages
Services
Plugins
Recent questions tagged autoware_velocity_smoother at Robotics Stack Exchange
Package Summary
Tags | No category tags. |
Version | 1.1.0 |
License | Apache License 2.0 |
Build type | AMENT_CMAKE |
Use | RECOMMENDED |
Repository Summary
Checkout URI | https://github.com/autowarefoundation/autoware_core.git |
VCS Type | git |
VCS Version | main |
Last Updated | 2025-06-12 |
Dev Status | DEVELOPED |
CI status | No Continuous Integration |
Released | UNRELEASED |
Tags | No category tags. |
Contributing |
Help Wanted (0)
Good First Issues (0) Pull Requests to Review (0) |
Package Description
Additional Links
Maintainers
- Fumiya Watanabe
- Takamasa Horibe
- Makoto Kurihara
- Satoshi Ota
- Go Sakayori
Authors
- Takamasa Horibe
- Fumiya Watanabe
- Yutaka Shimizu
- Makoto Kurihara
Velocity Smoother
Purpose
autoware_velocity_smoother
outputs a desired velocity profile on a reference trajectory.
This module plans a velocity profile within the limitations of the velocity, the acceleration and the jerk to realize both the maximization of velocity and the ride quality.
We call this module autoware_velocity_smoother
because the limitations of the acceleration and the jerk means the smoothness of the velocity profile.
Inner-workings / Algorithms
Flow chart
Extract trajectory
For the point on the reference trajectory closest to the center of the rear wheel axle of the vehicle, it extracts the reference path between extract_behind_dist
behind and extract_ahead_dist
ahead.
Apply external velocity limit
It applies the velocity limit input from the external of autoware_velocity_smoother
.
Remark that the external velocity limit is different from the velocity limit already set on the map and the reference trajectory.
The external velocity is applied at the position that it is able to reach the velocity limit with the deceleration and the jerk constraints set as the parameter.
Apply stop approaching velocity
It applies the velocity limit near the stopping point. This function is used to approach near the obstacle or improve the accuracy of stopping.
Apply lateral acceleration limit
It applies the velocity limit to decelerate at the curve.
It calculates the velocity limit from the curvature of the reference trajectory and the maximum lateral acceleration max_lateral_accel
.
The velocity limit is set as not to fall under min_curve_velocity
.
Note: velocity limit that requests larger than nominal.jerk
is not applied. In other words, even if a sharp curve is planned just in front of the ego, no deceleration is performed.
Apply steering rate limit
It calculates the desired steering angles of trajectory points. and it applies the steering rate limit. If the (steering_angle_rate
> max_steering_angle_rate
), it decreases the velocity of the trajectory point to acceptable velocity.
Resample trajectory
It resamples the points on the reference trajectory with designated time interval.
Note that the range of the length of the trajectory is set between min_trajectory_length
and max_trajectory_length
, and the distance between two points is longer than min_trajectory_interval_distance
.
It samples densely up to the distance traveled between resample_time
with the current velocity, then samples sparsely after that.
By sampling according to the velocity, both calculation load and accuracy are achieved since it samples finely at low velocity and coarsely at high velocity.
Calculate initial state
Calculate initial values for velocity planning. The initial values are calculated according to the situation as shown in the following table.
Situation | Initial velocity | Initial acceleration |
---|---|---|
First calculation | Current velocity | 0.0 |
Engaging | engage_velocity |
engage_acceleration |
Deviate between the planned velocity and the current velocity | Current velocity | Previous planned value |
Normal | Previous planned value | Previous planned value |
Smooth velocity
It plans the velocity.
The algorithm of velocity planning is chosen from JerkFiltered
, L2
and Linf
, and it is set in the launch file.
In these algorithms, they use OSQP[1] as the solver of the optimization.
JerkFiltered
It minimizes the sum of the minus of the square of the velocity and the square of the violation of the velocity limit, the acceleration limit and the jerk limit.
L2
It minimizes the sum of the minus of the square of the velocity, the square of the the pseudo-jerk[2] and the square of the violation of the velocity limit and the acceleration limit.
Linf
It minimizes the sum of the minus of the square of the velocity, the maximum absolute value of the the pseudo-jerk[2] and the square of the violation of the velocity limit and the acceleration limit.
Post process
It performs the post-process of the planned velocity.
- Set zero velocity ahead of the stopping point
- Set maximum velocity given in the config named
max_velocity
- Set velocity behind the current pose
- Resample trajectory (
post resampling
) - Output debug data
After the optimization, a resampling called post resampling
is performed before passing the optimized trajectory to the next node. Since the required path interval from optimization may be different from the one for the next module, post resampling
helps to fill this gap. Therefore, in post resampling
, it is necessary to check the path specification of the following module to determine the parameters. Note that if the computational load of the optimization algorithm is high and the path interval is sparser than the path specification of the following module in the first resampling, post resampling
would resample the trajectory densely. On the other hand, if the computational load of the optimization algorithm is small and the path interval is denser than the path specification of the following module in the first resampling, the path is sparsely resampled according to the specification of the following module.
Inputs / Outputs
Input
Name | Type | Description |
---|---|---|
~/input/trajectory |
autoware_planning_msgs/Trajectory |
Reference trajectory |
/planning/scenario_planning/max_velocity |
std_msgs/Float32 |
External velocity limit [m/s] |
/localization/kinematic_state |
nav_msgs/Odometry |
Current odometry |
/tf |
tf2_msgs/TFMessage |
TF |
File truncated at 100 lines see the full file
Changelog for package autoware_velocity_smoother
1.1.0 (2025-05-01)
1.0.0 (2025-03-31)
- chore: update version in package.xml
- feat(autoware_velocity_smoother): port the package from Autoware Universe (#299)
- Contributors: Ryohsuke Mitsudome
Wiki Tutorials
Package Dependencies
System Dependencies
Launch files
- launch/velocity_smoother.launch.xml
-
- common_param_path [default: $(find-pkg-share autoware_velocity_smoother)/config/default_common.param.yaml]
- nearest_search_param_path
- input_trajectory [default: /planning/scenario_planning/scenario_selector/trajectory]
- output_trajectory [default: /planning/scenario_planning/trajectory]
- publish_debug_trajs [default: false]
- velocity_smoother_type [default: JerkFiltered]
- param_path [default: $(find-pkg-share autoware_velocity_smoother)/config/default_velocity_smoother.param.yaml]
- velocity_smoother_param_path [default: $(find-pkg-share autoware_velocity_smoother)/config/$(var velocity_smoother_type).param.yaml]
Messages
Services
Plugins
Recent questions tagged autoware_velocity_smoother at Robotics Stack Exchange
Package Summary
Tags | No category tags. |
Version | 1.1.0 |
License | Apache License 2.0 |
Build type | AMENT_CMAKE |
Use | RECOMMENDED |
Repository Summary
Checkout URI | https://github.com/autowarefoundation/autoware_core.git |
VCS Type | git |
VCS Version | main |
Last Updated | 2025-06-12 |
Dev Status | DEVELOPED |
CI status | No Continuous Integration |
Released | UNRELEASED |
Tags | No category tags. |
Contributing |
Help Wanted (0)
Good First Issues (0) Pull Requests to Review (0) |
Package Description
Additional Links
Maintainers
- Fumiya Watanabe
- Takamasa Horibe
- Makoto Kurihara
- Satoshi Ota
- Go Sakayori
Authors
- Takamasa Horibe
- Fumiya Watanabe
- Yutaka Shimizu
- Makoto Kurihara
Velocity Smoother
Purpose
autoware_velocity_smoother
outputs a desired velocity profile on a reference trajectory.
This module plans a velocity profile within the limitations of the velocity, the acceleration and the jerk to realize both the maximization of velocity and the ride quality.
We call this module autoware_velocity_smoother
because the limitations of the acceleration and the jerk means the smoothness of the velocity profile.
Inner-workings / Algorithms
Flow chart
Extract trajectory
For the point on the reference trajectory closest to the center of the rear wheel axle of the vehicle, it extracts the reference path between extract_behind_dist
behind and extract_ahead_dist
ahead.
Apply external velocity limit
It applies the velocity limit input from the external of autoware_velocity_smoother
.
Remark that the external velocity limit is different from the velocity limit already set on the map and the reference trajectory.
The external velocity is applied at the position that it is able to reach the velocity limit with the deceleration and the jerk constraints set as the parameter.
Apply stop approaching velocity
It applies the velocity limit near the stopping point. This function is used to approach near the obstacle or improve the accuracy of stopping.
Apply lateral acceleration limit
It applies the velocity limit to decelerate at the curve.
It calculates the velocity limit from the curvature of the reference trajectory and the maximum lateral acceleration max_lateral_accel
.
The velocity limit is set as not to fall under min_curve_velocity
.
Note: velocity limit that requests larger than nominal.jerk
is not applied. In other words, even if a sharp curve is planned just in front of the ego, no deceleration is performed.
Apply steering rate limit
It calculates the desired steering angles of trajectory points. and it applies the steering rate limit. If the (steering_angle_rate
> max_steering_angle_rate
), it decreases the velocity of the trajectory point to acceptable velocity.
Resample trajectory
It resamples the points on the reference trajectory with designated time interval.
Note that the range of the length of the trajectory is set between min_trajectory_length
and max_trajectory_length
, and the distance between two points is longer than min_trajectory_interval_distance
.
It samples densely up to the distance traveled between resample_time
with the current velocity, then samples sparsely after that.
By sampling according to the velocity, both calculation load and accuracy are achieved since it samples finely at low velocity and coarsely at high velocity.
Calculate initial state
Calculate initial values for velocity planning. The initial values are calculated according to the situation as shown in the following table.
Situation | Initial velocity | Initial acceleration |
---|---|---|
First calculation | Current velocity | 0.0 |
Engaging | engage_velocity |
engage_acceleration |
Deviate between the planned velocity and the current velocity | Current velocity | Previous planned value |
Normal | Previous planned value | Previous planned value |
Smooth velocity
It plans the velocity.
The algorithm of velocity planning is chosen from JerkFiltered
, L2
and Linf
, and it is set in the launch file.
In these algorithms, they use OSQP[1] as the solver of the optimization.
JerkFiltered
It minimizes the sum of the minus of the square of the velocity and the square of the violation of the velocity limit, the acceleration limit and the jerk limit.
L2
It minimizes the sum of the minus of the square of the velocity, the square of the the pseudo-jerk[2] and the square of the violation of the velocity limit and the acceleration limit.
Linf
It minimizes the sum of the minus of the square of the velocity, the maximum absolute value of the the pseudo-jerk[2] and the square of the violation of the velocity limit and the acceleration limit.
Post process
It performs the post-process of the planned velocity.
- Set zero velocity ahead of the stopping point
- Set maximum velocity given in the config named
max_velocity
- Set velocity behind the current pose
- Resample trajectory (
post resampling
) - Output debug data
After the optimization, a resampling called post resampling
is performed before passing the optimized trajectory to the next node. Since the required path interval from optimization may be different from the one for the next module, post resampling
helps to fill this gap. Therefore, in post resampling
, it is necessary to check the path specification of the following module to determine the parameters. Note that if the computational load of the optimization algorithm is high and the path interval is sparser than the path specification of the following module in the first resampling, post resampling
would resample the trajectory densely. On the other hand, if the computational load of the optimization algorithm is small and the path interval is denser than the path specification of the following module in the first resampling, the path is sparsely resampled according to the specification of the following module.
Inputs / Outputs
Input
Name | Type | Description |
---|---|---|
~/input/trajectory |
autoware_planning_msgs/Trajectory |
Reference trajectory |
/planning/scenario_planning/max_velocity |
std_msgs/Float32 |
External velocity limit [m/s] |
/localization/kinematic_state |
nav_msgs/Odometry |
Current odometry |
/tf |
tf2_msgs/TFMessage |
TF |
File truncated at 100 lines see the full file
Changelog for package autoware_velocity_smoother
1.1.0 (2025-05-01)
1.0.0 (2025-03-31)
- chore: update version in package.xml
- feat(autoware_velocity_smoother): port the package from Autoware Universe (#299)
- Contributors: Ryohsuke Mitsudome
Wiki Tutorials
Package Dependencies
System Dependencies
Launch files
- launch/velocity_smoother.launch.xml
-
- common_param_path [default: $(find-pkg-share autoware_velocity_smoother)/config/default_common.param.yaml]
- nearest_search_param_path
- input_trajectory [default: /planning/scenario_planning/scenario_selector/trajectory]
- output_trajectory [default: /planning/scenario_planning/trajectory]
- publish_debug_trajs [default: false]
- velocity_smoother_type [default: JerkFiltered]
- param_path [default: $(find-pkg-share autoware_velocity_smoother)/config/default_velocity_smoother.param.yaml]
- velocity_smoother_param_path [default: $(find-pkg-share autoware_velocity_smoother)/config/$(var velocity_smoother_type).param.yaml]
Messages
Services
Plugins
Recent questions tagged autoware_velocity_smoother at Robotics Stack Exchange
Package Summary
Tags | No category tags. |
Version | 1.1.0 |
License | Apache License 2.0 |
Build type | AMENT_CMAKE |
Use | RECOMMENDED |
Repository Summary
Checkout URI | https://github.com/autowarefoundation/autoware_core.git |
VCS Type | git |
VCS Version | main |
Last Updated | 2025-06-12 |
Dev Status | DEVELOPED |
CI status | No Continuous Integration |
Released | UNRELEASED |
Tags | No category tags. |
Contributing |
Help Wanted (0)
Good First Issues (0) Pull Requests to Review (0) |
Package Description
Additional Links
Maintainers
- Fumiya Watanabe
- Takamasa Horibe
- Makoto Kurihara
- Satoshi Ota
- Go Sakayori
Authors
- Takamasa Horibe
- Fumiya Watanabe
- Yutaka Shimizu
- Makoto Kurihara
Velocity Smoother
Purpose
autoware_velocity_smoother
outputs a desired velocity profile on a reference trajectory.
This module plans a velocity profile within the limitations of the velocity, the acceleration and the jerk to realize both the maximization of velocity and the ride quality.
We call this module autoware_velocity_smoother
because the limitations of the acceleration and the jerk means the smoothness of the velocity profile.
Inner-workings / Algorithms
Flow chart
Extract trajectory
For the point on the reference trajectory closest to the center of the rear wheel axle of the vehicle, it extracts the reference path between extract_behind_dist
behind and extract_ahead_dist
ahead.
Apply external velocity limit
It applies the velocity limit input from the external of autoware_velocity_smoother
.
Remark that the external velocity limit is different from the velocity limit already set on the map and the reference trajectory.
The external velocity is applied at the position that it is able to reach the velocity limit with the deceleration and the jerk constraints set as the parameter.
Apply stop approaching velocity
It applies the velocity limit near the stopping point. This function is used to approach near the obstacle or improve the accuracy of stopping.
Apply lateral acceleration limit
It applies the velocity limit to decelerate at the curve.
It calculates the velocity limit from the curvature of the reference trajectory and the maximum lateral acceleration max_lateral_accel
.
The velocity limit is set as not to fall under min_curve_velocity
.
Note: velocity limit that requests larger than nominal.jerk
is not applied. In other words, even if a sharp curve is planned just in front of the ego, no deceleration is performed.
Apply steering rate limit
It calculates the desired steering angles of trajectory points. and it applies the steering rate limit. If the (steering_angle_rate
> max_steering_angle_rate
), it decreases the velocity of the trajectory point to acceptable velocity.
Resample trajectory
It resamples the points on the reference trajectory with designated time interval.
Note that the range of the length of the trajectory is set between min_trajectory_length
and max_trajectory_length
, and the distance between two points is longer than min_trajectory_interval_distance
.
It samples densely up to the distance traveled between resample_time
with the current velocity, then samples sparsely after that.
By sampling according to the velocity, both calculation load and accuracy are achieved since it samples finely at low velocity and coarsely at high velocity.
Calculate initial state
Calculate initial values for velocity planning. The initial values are calculated according to the situation as shown in the following table.
Situation | Initial velocity | Initial acceleration |
---|---|---|
First calculation | Current velocity | 0.0 |
Engaging | engage_velocity |
engage_acceleration |
Deviate between the planned velocity and the current velocity | Current velocity | Previous planned value |
Normal | Previous planned value | Previous planned value |
Smooth velocity
It plans the velocity.
The algorithm of velocity planning is chosen from JerkFiltered
, L2
and Linf
, and it is set in the launch file.
In these algorithms, they use OSQP[1] as the solver of the optimization.
JerkFiltered
It minimizes the sum of the minus of the square of the velocity and the square of the violation of the velocity limit, the acceleration limit and the jerk limit.
L2
It minimizes the sum of the minus of the square of the velocity, the square of the the pseudo-jerk[2] and the square of the violation of the velocity limit and the acceleration limit.
Linf
It minimizes the sum of the minus of the square of the velocity, the maximum absolute value of the the pseudo-jerk[2] and the square of the violation of the velocity limit and the acceleration limit.
Post process
It performs the post-process of the planned velocity.
- Set zero velocity ahead of the stopping point
- Set maximum velocity given in the config named
max_velocity
- Set velocity behind the current pose
- Resample trajectory (
post resampling
) - Output debug data
After the optimization, a resampling called post resampling
is performed before passing the optimized trajectory to the next node. Since the required path interval from optimization may be different from the one for the next module, post resampling
helps to fill this gap. Therefore, in post resampling
, it is necessary to check the path specification of the following module to determine the parameters. Note that if the computational load of the optimization algorithm is high and the path interval is sparser than the path specification of the following module in the first resampling, post resampling
would resample the trajectory densely. On the other hand, if the computational load of the optimization algorithm is small and the path interval is denser than the path specification of the following module in the first resampling, the path is sparsely resampled according to the specification of the following module.
Inputs / Outputs
Input
Name | Type | Description |
---|---|---|
~/input/trajectory |
autoware_planning_msgs/Trajectory |
Reference trajectory |
/planning/scenario_planning/max_velocity |
std_msgs/Float32 |
External velocity limit [m/s] |
/localization/kinematic_state |
nav_msgs/Odometry |
Current odometry |
/tf |
tf2_msgs/TFMessage |
TF |
File truncated at 100 lines see the full file
Changelog for package autoware_velocity_smoother
1.1.0 (2025-05-01)
1.0.0 (2025-03-31)
- chore: update version in package.xml
- feat(autoware_velocity_smoother): port the package from Autoware Universe (#299)
- Contributors: Ryohsuke Mitsudome
Wiki Tutorials
Package Dependencies
System Dependencies
Launch files
- launch/velocity_smoother.launch.xml
-
- common_param_path [default: $(find-pkg-share autoware_velocity_smoother)/config/default_common.param.yaml]
- nearest_search_param_path
- input_trajectory [default: /planning/scenario_planning/scenario_selector/trajectory]
- output_trajectory [default: /planning/scenario_planning/trajectory]
- publish_debug_trajs [default: false]
- velocity_smoother_type [default: JerkFiltered]
- param_path [default: $(find-pkg-share autoware_velocity_smoother)/config/default_velocity_smoother.param.yaml]
- velocity_smoother_param_path [default: $(find-pkg-share autoware_velocity_smoother)/config/$(var velocity_smoother_type).param.yaml]
Messages
Services
Plugins
Recent questions tagged autoware_velocity_smoother at Robotics Stack Exchange
Package Summary
Tags | No category tags. |
Version | 1.1.0 |
License | Apache License 2.0 |
Build type | AMENT_CMAKE |
Use | RECOMMENDED |
Repository Summary
Checkout URI | https://github.com/autowarefoundation/autoware_core.git |
VCS Type | git |
VCS Version | main |
Last Updated | 2025-06-12 |
Dev Status | DEVELOPED |
CI status | No Continuous Integration |
Released | UNRELEASED |
Tags | No category tags. |
Contributing |
Help Wanted (0)
Good First Issues (0) Pull Requests to Review (0) |
Package Description
Additional Links
Maintainers
- Fumiya Watanabe
- Takamasa Horibe
- Makoto Kurihara
- Satoshi Ota
- Go Sakayori
Authors
- Takamasa Horibe
- Fumiya Watanabe
- Yutaka Shimizu
- Makoto Kurihara
Velocity Smoother
Purpose
autoware_velocity_smoother
outputs a desired velocity profile on a reference trajectory.
This module plans a velocity profile within the limitations of the velocity, the acceleration and the jerk to realize both the maximization of velocity and the ride quality.
We call this module autoware_velocity_smoother
because the limitations of the acceleration and the jerk means the smoothness of the velocity profile.
Inner-workings / Algorithms
Flow chart
Extract trajectory
For the point on the reference trajectory closest to the center of the rear wheel axle of the vehicle, it extracts the reference path between extract_behind_dist
behind and extract_ahead_dist
ahead.
Apply external velocity limit
It applies the velocity limit input from the external of autoware_velocity_smoother
.
Remark that the external velocity limit is different from the velocity limit already set on the map and the reference trajectory.
The external velocity is applied at the position that it is able to reach the velocity limit with the deceleration and the jerk constraints set as the parameter.
Apply stop approaching velocity
It applies the velocity limit near the stopping point. This function is used to approach near the obstacle or improve the accuracy of stopping.
Apply lateral acceleration limit
It applies the velocity limit to decelerate at the curve.
It calculates the velocity limit from the curvature of the reference trajectory and the maximum lateral acceleration max_lateral_accel
.
The velocity limit is set as not to fall under min_curve_velocity
.
Note: velocity limit that requests larger than nominal.jerk
is not applied. In other words, even if a sharp curve is planned just in front of the ego, no deceleration is performed.
Apply steering rate limit
It calculates the desired steering angles of trajectory points. and it applies the steering rate limit. If the (steering_angle_rate
> max_steering_angle_rate
), it decreases the velocity of the trajectory point to acceptable velocity.
Resample trajectory
It resamples the points on the reference trajectory with designated time interval.
Note that the range of the length of the trajectory is set between min_trajectory_length
and max_trajectory_length
, and the distance between two points is longer than min_trajectory_interval_distance
.
It samples densely up to the distance traveled between resample_time
with the current velocity, then samples sparsely after that.
By sampling according to the velocity, both calculation load and accuracy are achieved since it samples finely at low velocity and coarsely at high velocity.
Calculate initial state
Calculate initial values for velocity planning. The initial values are calculated according to the situation as shown in the following table.
Situation | Initial velocity | Initial acceleration |
---|---|---|
First calculation | Current velocity | 0.0 |
Engaging | engage_velocity |
engage_acceleration |
Deviate between the planned velocity and the current velocity | Current velocity | Previous planned value |
Normal | Previous planned value | Previous planned value |
Smooth velocity
It plans the velocity.
The algorithm of velocity planning is chosen from JerkFiltered
, L2
and Linf
, and it is set in the launch file.
In these algorithms, they use OSQP[1] as the solver of the optimization.
JerkFiltered
It minimizes the sum of the minus of the square of the velocity and the square of the violation of the velocity limit, the acceleration limit and the jerk limit.
L2
It minimizes the sum of the minus of the square of the velocity, the square of the the pseudo-jerk[2] and the square of the violation of the velocity limit and the acceleration limit.
Linf
It minimizes the sum of the minus of the square of the velocity, the maximum absolute value of the the pseudo-jerk[2] and the square of the violation of the velocity limit and the acceleration limit.
Post process
It performs the post-process of the planned velocity.
- Set zero velocity ahead of the stopping point
- Set maximum velocity given in the config named
max_velocity
- Set velocity behind the current pose
- Resample trajectory (
post resampling
) - Output debug data
After the optimization, a resampling called post resampling
is performed before passing the optimized trajectory to the next node. Since the required path interval from optimization may be different from the one for the next module, post resampling
helps to fill this gap. Therefore, in post resampling
, it is necessary to check the path specification of the following module to determine the parameters. Note that if the computational load of the optimization algorithm is high and the path interval is sparser than the path specification of the following module in the first resampling, post resampling
would resample the trajectory densely. On the other hand, if the computational load of the optimization algorithm is small and the path interval is denser than the path specification of the following module in the first resampling, the path is sparsely resampled according to the specification of the following module.
Inputs / Outputs
Input
Name | Type | Description |
---|---|---|
~/input/trajectory |
autoware_planning_msgs/Trajectory |
Reference trajectory |
/planning/scenario_planning/max_velocity |
std_msgs/Float32 |
External velocity limit [m/s] |
/localization/kinematic_state |
nav_msgs/Odometry |
Current odometry |
/tf |
tf2_msgs/TFMessage |
TF |
File truncated at 100 lines see the full file
Changelog for package autoware_velocity_smoother
1.1.0 (2025-05-01)
1.0.0 (2025-03-31)
- chore: update version in package.xml
- feat(autoware_velocity_smoother): port the package from Autoware Universe (#299)
- Contributors: Ryohsuke Mitsudome
Wiki Tutorials
Package Dependencies
System Dependencies
Launch files
- launch/velocity_smoother.launch.xml
-
- common_param_path [default: $(find-pkg-share autoware_velocity_smoother)/config/default_common.param.yaml]
- nearest_search_param_path
- input_trajectory [default: /planning/scenario_planning/scenario_selector/trajectory]
- output_trajectory [default: /planning/scenario_planning/trajectory]
- publish_debug_trajs [default: false]
- velocity_smoother_type [default: JerkFiltered]
- param_path [default: $(find-pkg-share autoware_velocity_smoother)/config/default_velocity_smoother.param.yaml]
- velocity_smoother_param_path [default: $(find-pkg-share autoware_velocity_smoother)/config/$(var velocity_smoother_type).param.yaml]
Messages
Services
Plugins
Recent questions tagged autoware_velocity_smoother at Robotics Stack Exchange
Package Summary
Tags | No category tags. |
Version | 1.1.0 |
License | Apache License 2.0 |
Build type | AMENT_CMAKE |
Use | RECOMMENDED |
Repository Summary
Checkout URI | https://github.com/autowarefoundation/autoware_core.git |
VCS Type | git |
VCS Version | main |
Last Updated | 2025-06-12 |
Dev Status | DEVELOPED |
CI status | No Continuous Integration |
Released | UNRELEASED |
Tags | No category tags. |
Contributing |
Help Wanted (0)
Good First Issues (0) Pull Requests to Review (0) |
Package Description
Additional Links
Maintainers
- Fumiya Watanabe
- Takamasa Horibe
- Makoto Kurihara
- Satoshi Ota
- Go Sakayori
Authors
- Takamasa Horibe
- Fumiya Watanabe
- Yutaka Shimizu
- Makoto Kurihara
Velocity Smoother
Purpose
autoware_velocity_smoother
outputs a desired velocity profile on a reference trajectory.
This module plans a velocity profile within the limitations of the velocity, the acceleration and the jerk to realize both the maximization of velocity and the ride quality.
We call this module autoware_velocity_smoother
because the limitations of the acceleration and the jerk means the smoothness of the velocity profile.
Inner-workings / Algorithms
Flow chart
Extract trajectory
For the point on the reference trajectory closest to the center of the rear wheel axle of the vehicle, it extracts the reference path between extract_behind_dist
behind and extract_ahead_dist
ahead.
Apply external velocity limit
It applies the velocity limit input from the external of autoware_velocity_smoother
.
Remark that the external velocity limit is different from the velocity limit already set on the map and the reference trajectory.
The external velocity is applied at the position that it is able to reach the velocity limit with the deceleration and the jerk constraints set as the parameter.
Apply stop approaching velocity
It applies the velocity limit near the stopping point. This function is used to approach near the obstacle or improve the accuracy of stopping.
Apply lateral acceleration limit
It applies the velocity limit to decelerate at the curve.
It calculates the velocity limit from the curvature of the reference trajectory and the maximum lateral acceleration max_lateral_accel
.
The velocity limit is set as not to fall under min_curve_velocity
.
Note: velocity limit that requests larger than nominal.jerk
is not applied. In other words, even if a sharp curve is planned just in front of the ego, no deceleration is performed.
Apply steering rate limit
It calculates the desired steering angles of trajectory points. and it applies the steering rate limit. If the (steering_angle_rate
> max_steering_angle_rate
), it decreases the velocity of the trajectory point to acceptable velocity.
Resample trajectory
It resamples the points on the reference trajectory with designated time interval.
Note that the range of the length of the trajectory is set between min_trajectory_length
and max_trajectory_length
, and the distance between two points is longer than min_trajectory_interval_distance
.
It samples densely up to the distance traveled between resample_time
with the current velocity, then samples sparsely after that.
By sampling according to the velocity, both calculation load and accuracy are achieved since it samples finely at low velocity and coarsely at high velocity.
Calculate initial state
Calculate initial values for velocity planning. The initial values are calculated according to the situation as shown in the following table.
Situation | Initial velocity | Initial acceleration |
---|---|---|
First calculation | Current velocity | 0.0 |
Engaging | engage_velocity |
engage_acceleration |
Deviate between the planned velocity and the current velocity | Current velocity | Previous planned value |
Normal | Previous planned value | Previous planned value |
Smooth velocity
It plans the velocity.
The algorithm of velocity planning is chosen from JerkFiltered
, L2
and Linf
, and it is set in the launch file.
In these algorithms, they use OSQP[1] as the solver of the optimization.
JerkFiltered
It minimizes the sum of the minus of the square of the velocity and the square of the violation of the velocity limit, the acceleration limit and the jerk limit.
L2
It minimizes the sum of the minus of the square of the velocity, the square of the the pseudo-jerk[2] and the square of the violation of the velocity limit and the acceleration limit.
Linf
It minimizes the sum of the minus of the square of the velocity, the maximum absolute value of the the pseudo-jerk[2] and the square of the violation of the velocity limit and the acceleration limit.
Post process
It performs the post-process of the planned velocity.
- Set zero velocity ahead of the stopping point
- Set maximum velocity given in the config named
max_velocity
- Set velocity behind the current pose
- Resample trajectory (
post resampling
) - Output debug data
After the optimization, a resampling called post resampling
is performed before passing the optimized trajectory to the next node. Since the required path interval from optimization may be different from the one for the next module, post resampling
helps to fill this gap. Therefore, in post resampling
, it is necessary to check the path specification of the following module to determine the parameters. Note that if the computational load of the optimization algorithm is high and the path interval is sparser than the path specification of the following module in the first resampling, post resampling
would resample the trajectory densely. On the other hand, if the computational load of the optimization algorithm is small and the path interval is denser than the path specification of the following module in the first resampling, the path is sparsely resampled according to the specification of the following module.
Inputs / Outputs
Input
Name | Type | Description |
---|---|---|
~/input/trajectory |
autoware_planning_msgs/Trajectory |
Reference trajectory |
/planning/scenario_planning/max_velocity |
std_msgs/Float32 |
External velocity limit [m/s] |
/localization/kinematic_state |
nav_msgs/Odometry |
Current odometry |
/tf |
tf2_msgs/TFMessage |
TF |
File truncated at 100 lines see the full file
Changelog for package autoware_velocity_smoother
1.1.0 (2025-05-01)
1.0.0 (2025-03-31)
- chore: update version in package.xml
- feat(autoware_velocity_smoother): port the package from Autoware Universe (#299)
- Contributors: Ryohsuke Mitsudome
Wiki Tutorials
Package Dependencies
System Dependencies
Launch files
- launch/velocity_smoother.launch.xml
-
- common_param_path [default: $(find-pkg-share autoware_velocity_smoother)/config/default_common.param.yaml]
- nearest_search_param_path
- input_trajectory [default: /planning/scenario_planning/scenario_selector/trajectory]
- output_trajectory [default: /planning/scenario_planning/trajectory]
- publish_debug_trajs [default: false]
- velocity_smoother_type [default: JerkFiltered]
- param_path [default: $(find-pkg-share autoware_velocity_smoother)/config/default_velocity_smoother.param.yaml]
- velocity_smoother_param_path [default: $(find-pkg-share autoware_velocity_smoother)/config/$(var velocity_smoother_type).param.yaml]
Messages
Services
Plugins
Recent questions tagged autoware_velocity_smoother at Robotics Stack Exchange
Package Summary
Tags | No category tags. |
Version | 1.1.0 |
License | Apache License 2.0 |
Build type | AMENT_CMAKE |
Use | RECOMMENDED |
Repository Summary
Checkout URI | https://github.com/autowarefoundation/autoware_core.git |
VCS Type | git |
VCS Version | main |
Last Updated | 2025-06-12 |
Dev Status | DEVELOPED |
CI status | No Continuous Integration |
Released | UNRELEASED |
Tags | No category tags. |
Contributing |
Help Wanted (0)
Good First Issues (0) Pull Requests to Review (0) |
Package Description
Additional Links
Maintainers
- Fumiya Watanabe
- Takamasa Horibe
- Makoto Kurihara
- Satoshi Ota
- Go Sakayori
Authors
- Takamasa Horibe
- Fumiya Watanabe
- Yutaka Shimizu
- Makoto Kurihara
Velocity Smoother
Purpose
autoware_velocity_smoother
outputs a desired velocity profile on a reference trajectory.
This module plans a velocity profile within the limitations of the velocity, the acceleration and the jerk to realize both the maximization of velocity and the ride quality.
We call this module autoware_velocity_smoother
because the limitations of the acceleration and the jerk means the smoothness of the velocity profile.
Inner-workings / Algorithms
Flow chart
Extract trajectory
For the point on the reference trajectory closest to the center of the rear wheel axle of the vehicle, it extracts the reference path between extract_behind_dist
behind and extract_ahead_dist
ahead.
Apply external velocity limit
It applies the velocity limit input from the external of autoware_velocity_smoother
.
Remark that the external velocity limit is different from the velocity limit already set on the map and the reference trajectory.
The external velocity is applied at the position that it is able to reach the velocity limit with the deceleration and the jerk constraints set as the parameter.
Apply stop approaching velocity
It applies the velocity limit near the stopping point. This function is used to approach near the obstacle or improve the accuracy of stopping.
Apply lateral acceleration limit
It applies the velocity limit to decelerate at the curve.
It calculates the velocity limit from the curvature of the reference trajectory and the maximum lateral acceleration max_lateral_accel
.
The velocity limit is set as not to fall under min_curve_velocity
.
Note: velocity limit that requests larger than nominal.jerk
is not applied. In other words, even if a sharp curve is planned just in front of the ego, no deceleration is performed.
Apply steering rate limit
It calculates the desired steering angles of trajectory points. and it applies the steering rate limit. If the (steering_angle_rate
> max_steering_angle_rate
), it decreases the velocity of the trajectory point to acceptable velocity.
Resample trajectory
It resamples the points on the reference trajectory with designated time interval.
Note that the range of the length of the trajectory is set between min_trajectory_length
and max_trajectory_length
, and the distance between two points is longer than min_trajectory_interval_distance
.
It samples densely up to the distance traveled between resample_time
with the current velocity, then samples sparsely after that.
By sampling according to the velocity, both calculation load and accuracy are achieved since it samples finely at low velocity and coarsely at high velocity.
Calculate initial state
Calculate initial values for velocity planning. The initial values are calculated according to the situation as shown in the following table.
Situation | Initial velocity | Initial acceleration |
---|---|---|
First calculation | Current velocity | 0.0 |
Engaging | engage_velocity |
engage_acceleration |
Deviate between the planned velocity and the current velocity | Current velocity | Previous planned value |
Normal | Previous planned value | Previous planned value |
Smooth velocity
It plans the velocity.
The algorithm of velocity planning is chosen from JerkFiltered
, L2
and Linf
, and it is set in the launch file.
In these algorithms, they use OSQP[1] as the solver of the optimization.
JerkFiltered
It minimizes the sum of the minus of the square of the velocity and the square of the violation of the velocity limit, the acceleration limit and the jerk limit.
L2
It minimizes the sum of the minus of the square of the velocity, the square of the the pseudo-jerk[2] and the square of the violation of the velocity limit and the acceleration limit.
Linf
It minimizes the sum of the minus of the square of the velocity, the maximum absolute value of the the pseudo-jerk[2] and the square of the violation of the velocity limit and the acceleration limit.
Post process
It performs the post-process of the planned velocity.
- Set zero velocity ahead of the stopping point
- Set maximum velocity given in the config named
max_velocity
- Set velocity behind the current pose
- Resample trajectory (
post resampling
) - Output debug data
After the optimization, a resampling called post resampling
is performed before passing the optimized trajectory to the next node. Since the required path interval from optimization may be different from the one for the next module, post resampling
helps to fill this gap. Therefore, in post resampling
, it is necessary to check the path specification of the following module to determine the parameters. Note that if the computational load of the optimization algorithm is high and the path interval is sparser than the path specification of the following module in the first resampling, post resampling
would resample the trajectory densely. On the other hand, if the computational load of the optimization algorithm is small and the path interval is denser than the path specification of the following module in the first resampling, the path is sparsely resampled according to the specification of the following module.
Inputs / Outputs
Input
Name | Type | Description |
---|---|---|
~/input/trajectory |
autoware_planning_msgs/Trajectory |
Reference trajectory |
/planning/scenario_planning/max_velocity |
std_msgs/Float32 |
External velocity limit [m/s] |
/localization/kinematic_state |
nav_msgs/Odometry |
Current odometry |
/tf |
tf2_msgs/TFMessage |
TF |
File truncated at 100 lines see the full file
Changelog for package autoware_velocity_smoother
1.1.0 (2025-05-01)
1.0.0 (2025-03-31)
- chore: update version in package.xml
- feat(autoware_velocity_smoother): port the package from Autoware Universe (#299)
- Contributors: Ryohsuke Mitsudome
Wiki Tutorials
Package Dependencies
System Dependencies
Launch files
- launch/velocity_smoother.launch.xml
-
- common_param_path [default: $(find-pkg-share autoware_velocity_smoother)/config/default_common.param.yaml]
- nearest_search_param_path
- input_trajectory [default: /planning/scenario_planning/scenario_selector/trajectory]
- output_trajectory [default: /planning/scenario_planning/trajectory]
- publish_debug_trajs [default: false]
- velocity_smoother_type [default: JerkFiltered]
- param_path [default: $(find-pkg-share autoware_velocity_smoother)/config/default_velocity_smoother.param.yaml]
- velocity_smoother_param_path [default: $(find-pkg-share autoware_velocity_smoother)/config/$(var velocity_smoother_type).param.yaml]
Messages
Services
Plugins
Recent questions tagged autoware_velocity_smoother at Robotics Stack Exchange
Package Summary
Tags | No category tags. |
Version | 1.1.0 |
License | Apache License 2.0 |
Build type | AMENT_CMAKE |
Use | RECOMMENDED |
Repository Summary
Checkout URI | https://github.com/autowarefoundation/autoware_core.git |
VCS Type | git |
VCS Version | main |
Last Updated | 2025-06-12 |
Dev Status | DEVELOPED |
CI status | No Continuous Integration |
Released | UNRELEASED |
Tags | No category tags. |
Contributing |
Help Wanted (0)
Good First Issues (0) Pull Requests to Review (0) |
Package Description
Additional Links
Maintainers
- Fumiya Watanabe
- Takamasa Horibe
- Makoto Kurihara
- Satoshi Ota
- Go Sakayori
Authors
- Takamasa Horibe
- Fumiya Watanabe
- Yutaka Shimizu
- Makoto Kurihara
Velocity Smoother
Purpose
autoware_velocity_smoother
outputs a desired velocity profile on a reference trajectory.
This module plans a velocity profile within the limitations of the velocity, the acceleration and the jerk to realize both the maximization of velocity and the ride quality.
We call this module autoware_velocity_smoother
because the limitations of the acceleration and the jerk means the smoothness of the velocity profile.
Inner-workings / Algorithms
Flow chart
Extract trajectory
For the point on the reference trajectory closest to the center of the rear wheel axle of the vehicle, it extracts the reference path between extract_behind_dist
behind and extract_ahead_dist
ahead.
Apply external velocity limit
It applies the velocity limit input from the external of autoware_velocity_smoother
.
Remark that the external velocity limit is different from the velocity limit already set on the map and the reference trajectory.
The external velocity is applied at the position that it is able to reach the velocity limit with the deceleration and the jerk constraints set as the parameter.
Apply stop approaching velocity
It applies the velocity limit near the stopping point. This function is used to approach near the obstacle or improve the accuracy of stopping.
Apply lateral acceleration limit
It applies the velocity limit to decelerate at the curve.
It calculates the velocity limit from the curvature of the reference trajectory and the maximum lateral acceleration max_lateral_accel
.
The velocity limit is set as not to fall under min_curve_velocity
.
Note: velocity limit that requests larger than nominal.jerk
is not applied. In other words, even if a sharp curve is planned just in front of the ego, no deceleration is performed.
Apply steering rate limit
It calculates the desired steering angles of trajectory points. and it applies the steering rate limit. If the (steering_angle_rate
> max_steering_angle_rate
), it decreases the velocity of the trajectory point to acceptable velocity.
Resample trajectory
It resamples the points on the reference trajectory with designated time interval.
Note that the range of the length of the trajectory is set between min_trajectory_length
and max_trajectory_length
, and the distance between two points is longer than min_trajectory_interval_distance
.
It samples densely up to the distance traveled between resample_time
with the current velocity, then samples sparsely after that.
By sampling according to the velocity, both calculation load and accuracy are achieved since it samples finely at low velocity and coarsely at high velocity.
Calculate initial state
Calculate initial values for velocity planning. The initial values are calculated according to the situation as shown in the following table.
Situation | Initial velocity | Initial acceleration |
---|---|---|
First calculation | Current velocity | 0.0 |
Engaging | engage_velocity |
engage_acceleration |
Deviate between the planned velocity and the current velocity | Current velocity | Previous planned value |
Normal | Previous planned value | Previous planned value |
Smooth velocity
It plans the velocity.
The algorithm of velocity planning is chosen from JerkFiltered
, L2
and Linf
, and it is set in the launch file.
In these algorithms, they use OSQP[1] as the solver of the optimization.
JerkFiltered
It minimizes the sum of the minus of the square of the velocity and the square of the violation of the velocity limit, the acceleration limit and the jerk limit.
L2
It minimizes the sum of the minus of the square of the velocity, the square of the the pseudo-jerk[2] and the square of the violation of the velocity limit and the acceleration limit.
Linf
It minimizes the sum of the minus of the square of the velocity, the maximum absolute value of the the pseudo-jerk[2] and the square of the violation of the velocity limit and the acceleration limit.
Post process
It performs the post-process of the planned velocity.
- Set zero velocity ahead of the stopping point
- Set maximum velocity given in the config named
max_velocity
- Set velocity behind the current pose
- Resample trajectory (
post resampling
) - Output debug data
After the optimization, a resampling called post resampling
is performed before passing the optimized trajectory to the next node. Since the required path interval from optimization may be different from the one for the next module, post resampling
helps to fill this gap. Therefore, in post resampling
, it is necessary to check the path specification of the following module to determine the parameters. Note that if the computational load of the optimization algorithm is high and the path interval is sparser than the path specification of the following module in the first resampling, post resampling
would resample the trajectory densely. On the other hand, if the computational load of the optimization algorithm is small and the path interval is denser than the path specification of the following module in the first resampling, the path is sparsely resampled according to the specification of the following module.
Inputs / Outputs
Input
Name | Type | Description |
---|---|---|
~/input/trajectory |
autoware_planning_msgs/Trajectory |
Reference trajectory |
/planning/scenario_planning/max_velocity |
std_msgs/Float32 |
External velocity limit [m/s] |
/localization/kinematic_state |
nav_msgs/Odometry |
Current odometry |
/tf |
tf2_msgs/TFMessage |
TF |
File truncated at 100 lines see the full file
Changelog for package autoware_velocity_smoother
1.1.0 (2025-05-01)
1.0.0 (2025-03-31)
- chore: update version in package.xml
- feat(autoware_velocity_smoother): port the package from Autoware Universe (#299)
- Contributors: Ryohsuke Mitsudome
Wiki Tutorials
Package Dependencies
System Dependencies
Launch files
- launch/velocity_smoother.launch.xml
-
- common_param_path [default: $(find-pkg-share autoware_velocity_smoother)/config/default_common.param.yaml]
- nearest_search_param_path
- input_trajectory [default: /planning/scenario_planning/scenario_selector/trajectory]
- output_trajectory [default: /planning/scenario_planning/trajectory]
- publish_debug_trajs [default: false]
- velocity_smoother_type [default: JerkFiltered]
- param_path [default: $(find-pkg-share autoware_velocity_smoother)/config/default_velocity_smoother.param.yaml]
- velocity_smoother_param_path [default: $(find-pkg-share autoware_velocity_smoother)/config/$(var velocity_smoother_type).param.yaml]
Messages
Services
Plugins
Recent questions tagged autoware_velocity_smoother at Robotics Stack Exchange
Package Summary
Tags | No category tags. |
Version | 1.1.0 |
License | Apache License 2.0 |
Build type | AMENT_CMAKE |
Use | RECOMMENDED |
Repository Summary
Checkout URI | https://github.com/autowarefoundation/autoware_core.git |
VCS Type | git |
VCS Version | main |
Last Updated | 2025-06-12 |
Dev Status | DEVELOPED |
CI status | No Continuous Integration |
Released | UNRELEASED |
Tags | No category tags. |
Contributing |
Help Wanted (0)
Good First Issues (0) Pull Requests to Review (0) |
Package Description
Additional Links
Maintainers
- Fumiya Watanabe
- Takamasa Horibe
- Makoto Kurihara
- Satoshi Ota
- Go Sakayori
Authors
- Takamasa Horibe
- Fumiya Watanabe
- Yutaka Shimizu
- Makoto Kurihara
Velocity Smoother
Purpose
autoware_velocity_smoother
outputs a desired velocity profile on a reference trajectory.
This module plans a velocity profile within the limitations of the velocity, the acceleration and the jerk to realize both the maximization of velocity and the ride quality.
We call this module autoware_velocity_smoother
because the limitations of the acceleration and the jerk means the smoothness of the velocity profile.
Inner-workings / Algorithms
Flow chart
Extract trajectory
For the point on the reference trajectory closest to the center of the rear wheel axle of the vehicle, it extracts the reference path between extract_behind_dist
behind and extract_ahead_dist
ahead.
Apply external velocity limit
It applies the velocity limit input from the external of autoware_velocity_smoother
.
Remark that the external velocity limit is different from the velocity limit already set on the map and the reference trajectory.
The external velocity is applied at the position that it is able to reach the velocity limit with the deceleration and the jerk constraints set as the parameter.
Apply stop approaching velocity
It applies the velocity limit near the stopping point. This function is used to approach near the obstacle or improve the accuracy of stopping.
Apply lateral acceleration limit
It applies the velocity limit to decelerate at the curve.
It calculates the velocity limit from the curvature of the reference trajectory and the maximum lateral acceleration max_lateral_accel
.
The velocity limit is set as not to fall under min_curve_velocity
.
Note: velocity limit that requests larger than nominal.jerk
is not applied. In other words, even if a sharp curve is planned just in front of the ego, no deceleration is performed.
Apply steering rate limit
It calculates the desired steering angles of trajectory points. and it applies the steering rate limit. If the (steering_angle_rate
> max_steering_angle_rate
), it decreases the velocity of the trajectory point to acceptable velocity.
Resample trajectory
It resamples the points on the reference trajectory with designated time interval.
Note that the range of the length of the trajectory is set between min_trajectory_length
and max_trajectory_length
, and the distance between two points is longer than min_trajectory_interval_distance
.
It samples densely up to the distance traveled between resample_time
with the current velocity, then samples sparsely after that.
By sampling according to the velocity, both calculation load and accuracy are achieved since it samples finely at low velocity and coarsely at high velocity.
Calculate initial state
Calculate initial values for velocity planning. The initial values are calculated according to the situation as shown in the following table.
Situation | Initial velocity | Initial acceleration |
---|---|---|
First calculation | Current velocity | 0.0 |
Engaging | engage_velocity |
engage_acceleration |
Deviate between the planned velocity and the current velocity | Current velocity | Previous planned value |
Normal | Previous planned value | Previous planned value |
Smooth velocity
It plans the velocity.
The algorithm of velocity planning is chosen from JerkFiltered
, L2
and Linf
, and it is set in the launch file.
In these algorithms, they use OSQP[1] as the solver of the optimization.
JerkFiltered
It minimizes the sum of the minus of the square of the velocity and the square of the violation of the velocity limit, the acceleration limit and the jerk limit.
L2
It minimizes the sum of the minus of the square of the velocity, the square of the the pseudo-jerk[2] and the square of the violation of the velocity limit and the acceleration limit.
Linf
It minimizes the sum of the minus of the square of the velocity, the maximum absolute value of the the pseudo-jerk[2] and the square of the violation of the velocity limit and the acceleration limit.
Post process
It performs the post-process of the planned velocity.
- Set zero velocity ahead of the stopping point
- Set maximum velocity given in the config named
max_velocity
- Set velocity behind the current pose
- Resample trajectory (
post resampling
) - Output debug data
After the optimization, a resampling called post resampling
is performed before passing the optimized trajectory to the next node. Since the required path interval from optimization may be different from the one for the next module, post resampling
helps to fill this gap. Therefore, in post resampling
, it is necessary to check the path specification of the following module to determine the parameters. Note that if the computational load of the optimization algorithm is high and the path interval is sparser than the path specification of the following module in the first resampling, post resampling
would resample the trajectory densely. On the other hand, if the computational load of the optimization algorithm is small and the path interval is denser than the path specification of the following module in the first resampling, the path is sparsely resampled according to the specification of the following module.
Inputs / Outputs
Input
Name | Type | Description |
---|---|---|
~/input/trajectory |
autoware_planning_msgs/Trajectory |
Reference trajectory |
/planning/scenario_planning/max_velocity |
std_msgs/Float32 |
External velocity limit [m/s] |
/localization/kinematic_state |
nav_msgs/Odometry |
Current odometry |
/tf |
tf2_msgs/TFMessage |
TF |
File truncated at 100 lines see the full file
Changelog for package autoware_velocity_smoother
1.1.0 (2025-05-01)
1.0.0 (2025-03-31)
- chore: update version in package.xml
- feat(autoware_velocity_smoother): port the package from Autoware Universe (#299)
- Contributors: Ryohsuke Mitsudome
Wiki Tutorials
Package Dependencies
System Dependencies
Launch files
- launch/velocity_smoother.launch.xml
-
- common_param_path [default: $(find-pkg-share autoware_velocity_smoother)/config/default_common.param.yaml]
- nearest_search_param_path
- input_trajectory [default: /planning/scenario_planning/scenario_selector/trajectory]
- output_trajectory [default: /planning/scenario_planning/trajectory]
- publish_debug_trajs [default: false]
- velocity_smoother_type [default: JerkFiltered]
- param_path [default: $(find-pkg-share autoware_velocity_smoother)/config/default_velocity_smoother.param.yaml]
- velocity_smoother_param_path [default: $(find-pkg-share autoware_velocity_smoother)/config/$(var velocity_smoother_type).param.yaml]