From a136f54e6787fcd1f53f3d8066f5a49b54d24d51 Mon Sep 17 00:00:00 2001 From: Yuki Takagi Date: Wed, 14 Aug 2024 14:05:11 +0900 Subject: [PATCH] rebase to new mode name Signed-off-by: Yuki Takagi --- .../tier4_simulator_launch/launch/simulator.launch.xml | 10 +++++++--- .../launch/simple_planning_simulator.launch.py | 8 ++++++-- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/launch/tier4_simulator_launch/launch/simulator.launch.xml b/launch/tier4_simulator_launch/launch/simulator.launch.xml index 9abf8021b87ff..af7144817ecec 100644 --- a/launch/tier4_simulator_launch/launch/simulator.launch.xml +++ b/launch/tier4_simulator_launch/launch/simulator.launch.xml @@ -154,7 +154,8 @@ - + + @@ -180,7 +181,8 @@ - + + @@ -210,12 +212,14 @@ + + - + diff --git a/simulator/simple_planning_simulator/launch/simple_planning_simulator.launch.py b/simulator/simple_planning_simulator/launch/simple_planning_simulator.launch.py index 9e0f41ba8a85f..092afe782cfc6 100644 --- a/simulator/simple_planning_simulator/launch/simple_planning_simulator.launch.py +++ b/simulator/simple_planning_simulator/launch/simple_planning_simulator.launch.py @@ -65,7 +65,7 @@ def launch_setup(context, *args, **kwargs): ] # Additional remappings - if LaunchConfiguration("launch_localization_for_sim_vehicle").perform(context) == "true": + if LaunchConfiguration("motion_publish_mode").perform(context) == "pose_only": remappings.extend( [ ("output/odometry", "/simulation/debug/localization/kinematic_state"), @@ -73,7 +73,7 @@ def launch_setup(context, *args, **kwargs): ("output/pose", "/localization/pose_estimator/pose_with_covariance"), ] ) - else: + elif LaunchConfiguration("motion_publish_mode").perform(context) == "full_motion": remappings.extend( [ ("output/odometry", "/localization/kinematic_state"), @@ -84,6 +84,10 @@ def launch_setup(context, *args, **kwargs): ), ] ) + else: + raise ValueError( + "Invalid motion_publish_mode specified. Please choose 'pose_only' or 'full_motion'." + ) simple_planning_simulator_node = Node( package="simple_planning_simulator",