Skip to content

Commit

Permalink
refactor: launch const (#95)
Browse files Browse the repository at this point in the history
Signed-off-by: Hayato Mizushima <[email protected]>
  • Loading branch information
hayato-m126 authored Feb 23, 2025
1 parent 236cb19 commit 947b75c
Showing 1 changed file with 5 additions and 10 deletions.
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

0 comments on commit 947b75c

Please sign in to comment.