Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(autoware_planning_validator): add collision checking for predicted objects #9143

Open
wants to merge 12 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 13 additions & 6 deletions planning/autoware_planning_validator/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ The following features are supported for trajectory validation and can have thre
- **Distance deviation** : invalid if the ego is too far from the trajectory
- **Longitudinal distance deviation** : invalid if the trajectory is too far from ego in longitudinal direction
- **Forward trajectory length** : invalid if the trajectory length is not enough to stop within a given deceleration
- **Potential collision** : invalid if the planned trajectory is too close to the obstacle in the time horizon

The following features are to be implemented.

Expand All @@ -31,10 +32,11 @@ The following features are to be implemented.

The `autoware_planning_validator` takes in the following inputs:

| Name | Type | Description |
| -------------------- | --------------------------------- | ---------------------------------------------- |
| `~/input/kinematics` | nav_msgs/Odometry | ego pose and twist |
| `~/input/trajectory` | autoware_planning_msgs/Trajectory | target trajectory to be validated in this node |
| Name | Type | Description |
| -------------------- | ----------------------------------------- | ---------------------------------------------- |
| `~/input/kinematics` | nav_msgs/Odometry | ego pose and twist |
| `~/input/trajectory` | autoware_planning_msgs/Trajectory | target trajectory to be validated in this node |
| `~/input/objects` | autoware_perception_msgs/PredictedObjects | obstacles in the environment |

### Outputs

Expand Down Expand Up @@ -83,5 +85,10 @@ The input trajectory is detected as invalid if the index exceeds the following t

For parameters used e.g. to calculate threshold.

| `parameters.forward_trajectory_length_acceleration` | double | This value is used to calculate required trajectory length. | -5.0 |
| `parameters.forward_trajectory_length_margin` | double | A margin of the required trajectory length not to raise an error when the ego slightly exceeds the trajectory end point. | 2.0 |
| Parameter Name | Type | Description | Default Value |
| ---------------------------------------------------- | ------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------- |
| `parameters.forward_trajectory_length_acceleration` | double | This value is used to calculate required trajectory length. | -5.0 |
| `parameters.forward_trajectory_length_margin` | double | A margin of the required trajectory length not to raise an error when the ego slightly exceeds the trajectory end point. | 2.0 |
| `parameters.trajectory_to_object_distance_threshold` | double | A threshold for filtering objects to improve computational efficiency of collision checking. Only objects within this distance [m] from their nearest point on the trajectory are considered for collision checking. | 30.0 |
| `parameters.ego_to_object_distance_threshold` | double | A threshold for filtering objects to improve computational efficiency of collision checking. Only objects within this distance [m] from the current ego position are considered for collision checking. | 50.0 |
| `parameters.time_tolerance_threshold` | double | Time tolerance threshold [s] for collision detection between ego and object trajectories. Collision check is performed only when the time difference between ego and object predicted positions is within this threshold to detect temporal-spatial intersections. | 0.1 |
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,18 @@
# Setting it to 0 means an error will occur if even slightly exceeding the end of the path,
# therefore, a certain margin is necessary.
forward_trajectory_length_margin: 2.0

# Threshold to filter out objects that are far from the trajectory.
# Only objects within this distance [m] from their nearest point on the trajectory
# are considered for collision checking to improve computational efficiency.
trajectory_to_object_distance_threshold: 30.0

# Threshold to filter out objects that are far from the ego vehicle.
# Only objects within this distance [m] from the current ego position
# are considered for collision checking to improve computational efficiency.
ego_to_object_distance_threshold: 50.0

# Time tolerance threshold [s] for collision detection between ego and object trajectories.
# Collision check is performed only when the time difference between ego and object
# predicted positions is within this threshold to detect temporal-spatial intersections.
time_tolerance_threshold: 0.1
Loading
Loading