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

refactor: launch const #95

Merged
merged 1 commit into from
Feb 23, 2025
Merged
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
15 changes: 5 additions & 10 deletions driving_log_replayer_v2/launch/driving_log_replayer_v2.launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@

from driving_log_replayer_v2.shutdown_once import ShutdownOnce

PACKAGE_SHARE = get_package_share_directory("driving_log_replayer_v2")
QOS_PROFILE_PATH_STR = Path(PACKAGE_SHARE, "config", "qos.yaml").as_posix()


def get_launch_arguments() -> list:
"""
Expand Down Expand Up @@ -424,11 +427,7 @@ def launch_bag_player(
"--clock",
"200",
"--qos-profile-overrides-path",
Path(
get_package_share_directory("driving_log_replayer_v2"),
"config",
"qos.yaml",
).as_posix(),
QOS_PROFILE_PATH_STR,
]
remap_list = ["--remap"]
remap_list.extend(system_defined_remap(conf))
Expand Down Expand Up @@ -459,11 +458,7 @@ def launch_bag_recorder(context: LaunchContext) -> list:
"-o",
conf["result_bag_path"],
"--qos-profile-overrides-path",
Path(
get_package_share_directory("driving_log_replayer_v2"),
"config",
"qos.yaml",
).as_posix(),
QOS_PROFILE_PATH_STR,
"--use-sim-time",
]
if conf["storage"] == "mcap":
Expand Down
Loading