Skip to content

Commit c14101f

Browse files
authored
Merge pull request #1114 from tier4/fix/external_velocity_limit_selector
fix(external_velocity_limit_selector): revert "refactor(external_velocity_limit_selector): rework parameter (autowarefoundation#5238)"
2 parents d9f9132 + 4f7558e commit c14101f

6 files changed

+34
-106
lines changed

planning/external_velocity_limit_selector/README.md

+11-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,17 @@ Example:
5151

5252
## Parameters
5353

54-
{{ json_to_markdown("planning/external_velocity_limit_selector/schema/external_velocity_limit_selector.schema.json") }}
54+
| Parameter | Type | Description |
55+
| ----------------- | ------ | ------------------------------------------ |
56+
| `max_velocity` | double | default max velocity [m/s] |
57+
| `normal.min_acc` | double | minimum acceleration [m/ss] |
58+
| `normal.max_acc` | double | maximum acceleration [m/ss] |
59+
| `normal.min_jerk` | double | minimum jerk [m/sss] |
60+
| `normal.max_jerk` | double | maximum jerk [m/sss] |
61+
| `limit.min_acc` | double | minimum acceleration to be observed [m/ss] |
62+
| `limit.max_acc` | double | maximum acceleration to be observed [m/ss] |
63+
| `limit.min_jerk` | double | minimum jerk to be observed [m/sss] |
64+
| `limit.max_jerk` | double | maximum jerk to be observed [m/sss] |
5565

5666
## Assumptions / Known limits
5767

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/**:
2+
ros__parameters:
3+
# motion state constraints
4+
max_velocity: 20.0 # max velocity limit [m/s]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/**:
2+
ros__parameters:
3+
# constraints param for normal driving
4+
normal:
5+
min_acc: -0.5 # min deceleration [m/ss]
6+
max_acc: 1.0 # max acceleration [m/ss]
7+
min_jerk: -0.5 # min jerk [m/sss]
8+
max_jerk: 1.0 # max jerk [m/sss]
9+
10+
# constraints to be observed
11+
limit:
12+
min_acc: -2.5 # min deceleration limit [m/ss]
13+
max_acc: 1.0 # max acceleration limit [m/ss]
14+
min_jerk: -1.5 # min jerk limit [m/sss]
15+
max_jerk: 1.5 # max jerk limit [m/sss]

planning/external_velocity_limit_selector/config/external_velocity_limit_selector.param.yaml

-18
This file was deleted.

planning/external_velocity_limit_selector/launch/external_velocity_limit_selector.launch.xml

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<launch>
22
<!-- common param -->
3-
<arg name="external_velocity_limit_selector_param_path" default="$(find-pkg-share external_velocity_limit_selector)/config/external_velocity_limit_selector.param.yaml"/>
3+
<arg name="common_param_path" default="$(find-pkg-share external_velocity_limit_selector)/config/default_common.param.yaml"/>
4+
<arg name="param_path" default="$(find-pkg-share external_velocity_limit_selector)/config/default.param.yaml"/>
45

56
<!-- input/output -->
67
<arg name="input_velocity_limit_from_api" default="/planning/scenario_planning/max_velocity_default"/>
@@ -10,7 +11,8 @@
1011
<arg name="output_debug_string" default="/planning/scenario_planning/external_velocity_limit_selector/debug"/>
1112

1213
<node pkg="external_velocity_limit_selector" exec="external_velocity_limit_selector" name="external_velocity_limit_selector" output="screen">
13-
<param from="$(var external_velocity_limit_selector_param_path)"/>
14+
<param from="$(var common_param_path)"/>
15+
<param from="$(var param_path)"/>
1416
<remap from="input/velocity_limit_from_api" to="$(var input_velocity_limit_from_api)"/>
1517
<remap from="input/velocity_limit_from_internal" to="$(var input_velocity_limit_from_internal)"/>
1618
<remap from="input/velocity_limit_clear_command_from_internal" to="$(var input_velocity_limit_clear_command_from_internal)"/>

planning/external_velocity_limit_selector/schema/external_velocity_limit_selector.schema.json

-85
This file was deleted.

0 commit comments

Comments
 (0)