Skip to content

Commit

Permalink
fix: output dummy result.jsonl
Browse files Browse the repository at this point in the history
Signed-off-by: Hayato Mizushima <[email protected]>
  • Loading branch information
hayato-m126 committed Oct 22, 2024
1 parent 4e38634 commit 8caa3f1
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,13 @@ def create_output_dir(output_dir_str: str, scenario_path: Path) -> Path:
return output_dir


def output_dummy_result_jsonl(result_json_path: str) -> None:
jsonl_path_str = result_json_path + "l"
with Path(jsonl_path_str).open("w") as f:
dummy_str = '{"Result": {"Success": true, "Summary": "RecordOnlyMode"}, "Stamp": {"System": 0.0}, "Frame": {}}'
f.write(dummy_str + "\n")


def check_launch_component(conf: dict) -> dict:
use_case_launch_arg = driving_log_replayer_v2_config[conf["use_case"]]["disable"]
# update autoware component launch or not
Expand Down Expand Up @@ -276,6 +283,8 @@ def launch_map_height_fitter(context: LaunchContext) -> list:
def launch_evaluator_node(context: LaunchContext) -> list:
conf = context.launch_configurations
if conf["record_only"] != "false":
# output dummy result for Evaluator
output_dummy_result_jsonl(conf["result_json_path"])
return [LogInfo(msg="evaluator_node is not launched because record_only is set")]
params = {
"use_sim_time": True,
Expand Down

0 comments on commit 8caa3f1

Please sign in to comment.