From 93ed02dd7950e2a4b730ec4b57118ca9c68a2392 Mon Sep 17 00:00:00 2001 From: Steven Palma Date: Tue, 26 Sep 2023 13:03:21 +0200 Subject: [PATCH] Add use_sim_time param to launchfile (#41) --- launch/twist_mux_launch.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/launch/twist_mux_launch.py b/launch/twist_mux_launch.py index c52d2eb..12078c8 100644 --- a/launch/twist_mux_launch.py +++ b/launch/twist_mux_launch.py @@ -48,12 +48,17 @@ def generate_launch_description(): 'cmd_vel_out', default_value='twist_mux/cmd_vel', description='cmd vel output topic'), + DeclareLaunchArgument( + 'use_sim_time', + default_value='False', + description='Use simulation time'), Node( package='twist_mux', executable='twist_mux', output='screen', remappings={('/cmd_vel_out', LaunchConfiguration('cmd_vel_out'))}, parameters=[ + {'use_sim_time': LaunchConfiguration('use_sim_time')}, LaunchConfiguration('config_locks'), LaunchConfiguration('config_topics')] ), @@ -63,6 +68,7 @@ def generate_launch_description(): output='screen', remappings={('/twist', LaunchConfiguration('cmd_vel_out'))}, parameters=[{ + 'use_sim_time': LaunchConfiguration('use_sim_time'), 'frame_id': 'base_link', 'scale': 1.0, 'vertical_position': 2.0}]),