Skip to content

Commit a38e9bf

Browse files
committed
fix: Hz
1 parent b6e4b43 commit a38e9bf

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

driving_log_replayer/driving_log_replayer/planning_control.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,13 @@ class TimeRangeCondition(BaseModel):
6161

6262

6363
class Conditions(BaseModel):
64+
Hertz: float = Field(gt=0.0)
6465
ControlConditions: list[TimeRangeCondition]
6566

6667

6768
class Evaluation(BaseModel):
6869
UseCaseName: Literal["planning_control"]
6970
UseCaseFormatVersion: Literal["0.1.0"]
70-
Hertz: float = Field(gt=0.0)
7171
Conditions: Conditions
7272

7373

@@ -166,11 +166,11 @@ def update(self) -> tuple[bool, str]:
166166

167167

168168
class PlanningControlResult(ResultBase):
169-
def __init__(self, condition: Conditions, hz: float) -> None:
169+
def __init__(self, condition: Conditions) -> None:
170170
super().__init__()
171171
self.__control_container = ControlClassContainer(
172172
condition=condition.ControlConditions,
173-
hz=hz,
173+
hz=condition.Hertz,
174174
)
175175
# self.__planing_container = PlanningCOntainer(condition=condition.PlanningConditions)
176176

sample/planning_control/scenario.ja.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ LocalMapPath: $HOME/autoware_map/sample-map-planning
88
Evaluation:
99
UseCaseName: planning_control
1010
UseCaseFormatVersion: 0.1.0
11-
Hertz: 10.0 # TimeRange start-end なら (end - start) * Hertz * AllowableRate(=0.9) 以上の topicを受信しないと成功にならない。低レートを弾く。AllowableRateは一旦固定
1211
Conditions:
12+
Hertz: 10.0 # TimeRange start-end なら (end - start) * Hertz * AllowableRate(=0.9) 以上の topicを受信しないと成功にならない。低レートを弾く。AllowableRateは一旦固定
1313
# 以下の3種類のDecisionに応じて評価を行う。今後の拡張でdecision以外のキー対象とする可能性を考慮してモジュールの下にdecisionのキーを置く
1414
# decision.stop: 停止指示が出ていること評価
1515
# decision.slow_down: 減速指示が出ていることの評価

0 commit comments

Comments
 (0)