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

fix: get launch context #41

Merged
merged 3 commits into from
Nov 5, 2024
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,8 @@ def output_dummy_result_jsonl(result_json_path: str) -> None:


def check_launch_component(conf: dict) -> dict:
if conf["with_autoware"] != "true":
return {"autoware": "false"}
use_case_launch_arg = driving_log_replayer_v2_config[conf["use_case"]]["disable"]
# update autoware component launch or not
autoware_components = ["sensing", "localization", "perception", "planning", "control"]
Expand Down Expand Up @@ -275,7 +277,7 @@ def launch_autoware(context: LaunchContext) -> list:


def launch_map_height_fitter(context: LaunchContext) -> list:
if context.launch_configurations["localization"] != "true":
if context.launch_configurations.get("localization", "true") != "true":
return [LogInfo(msg="map_height_fitter is not launched because localization is false")]

fitter_launch_file = Path(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def test_scenario() -> None:
}


@pytest.fixture()
@pytest.fixture
def create_obj_metrics() -> ObjectMetrics:
condition = {
"lateral_deviation": DiagValue(
Expand Down
Loading